/* PROJECT: ChickRice Bowl 
    AUTHOR: Irvan Stepanus (IBT Pelita Indonesia)
    VERSION: 3.0 (Full Features + Mobile Optimized)
*/

/* 1. IMPORT & VARIABLES */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700;800&display=swap');

:root {
    --primary: #FF6B00; 
    --secondary: #E64A19;
    --dark: #222222;
    --light: #FFFFFF;
    --gray: #F8F9FA;
    --text-muted: #6C757D;
    --soft-shadow: 0 10px 30px rgba(0,0,0,0.08);
    --primary-gradient: linear-gradient(135deg, #FF6B00 0%, #E64A19 100%);
}

/* 2. RESET & GLOBAL */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--gray);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* 3. HEADER & NAVIGATION */
header {
    background: var(--light);
    box-shadow: var(--soft-shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    align-items: center;
}

nav ul li a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    font-size: 0.9rem;
    transition: 0.3s;
}

nav ul li a:hover {
    color: var(--primary);
}

/* 4. HERO SECTION */
.hero {
    background: var(--primary-gradient);
    color: white;
    padding: 60px 20px;
    text-align: center;
    border-bottom-left-radius: 40px;
    border-bottom-right-radius: 40px;
    margin-bottom: 30px;
}

.hero img {
    width: 120px;
    height: auto;
    background: white;
    padding: 8px;
    border-radius: 50%;
    margin-bottom: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* 5. CONTAINER & GRID */
.container {
    width: 92%;
    max-width: 1100px;
    margin: 0 auto;
    padding-bottom: 60px;
}

.menu-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

/* 6. KARTU PRODUK (Presisi Tinggi) */
.card {
    background: var(--light);
    border-radius: 25px;
    overflow: hidden;
    box-shadow: var(--soft-shadow);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.3s ease;
}

.card:hover { transform: translateY(-8px); }

.card img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}

.card-body {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-body h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.card-body p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    text-align: justify;
    /* Limit 4 baris teks */
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 5.1em;
}

.price-tag {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-top: auto; /* Memaksa ke bawah */
    border-top: 1px dashed #eee;
    padding-top: 15px;
    margin-bottom: 15px;
}

/* 7. TOMBOL */
.btn-pesan {
    display: block;
    width: 100%;
    background: var(--primary-gradient);
    color: white;
    text-align: center;
    padding: 16px;
    text-decoration: none;
    border-radius: 15px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: 0.2s;
}

.btn-pesan:hover { filter: brightness(1.1); box-shadow: 0 5px 15px rgba(255,107,0,0.3); }

/* 8. PROGRES TRACKING (Fitur Tambahan) */
.progress-track {
    background: #eee;
    height: 8px;
    border-radius: 10px;
    margin-top: 10px;
    overflow: hidden;
}

.progress-fill {
    background: var(--primary-gradient);
    height: 100%;
    transition: 0.8s ease;
}

/* 9. ADMIN UI & TABLES */
.admin-header {
    background: #1a1a1a;
    color: white;
    padding: 25px 0;
    border-bottom: 4px solid var(--primary);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 20px;
    box-shadow: var(--soft-shadow);
    text-align: center;
    border-top: 5px solid var(--primary);
}

.table-container {
    background: white;
    border-radius: 20px;
    padding: 25px;
    box-shadow: var(--soft-shadow);
    overflow-x: auto; /* Penting untuk Mobile */
}

table { width: 100%; border-collapse: collapse; }

th {
    text-align: left;
    padding: 15px;
    color: #888;
    font-size: 0.75rem;
    text-transform: uppercase;
    border-bottom: 2px solid #f1f1f1;
}

td { padding: 15px; border-bottom: 1px solid #f9f9f9; }

/* 10. STATUS BADGES */
.badge {
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}
.bg-wait { background: #FFF3E0; color: #E65100; }
.bg-success { background: #E8F5E9; color: #2E7D32; }

/* 11. FORM INPUTS */
input, textarea, select {
    width: 100%;
    padding: 14px 18px;
    border: 1.5px solid #E0E0E0;
    border-radius: 12px;
    font-size: 1rem;
    margin-bottom: 15px;
    outline: none;
}

input:focus { border-color: var(--primary); }

/* 12. MEDIA QUERIES (Handphone Fix) */
@media (max-width: 768px) {
    header .container { flex-direction: column; gap: 15px; }
    nav ul { gap: 10px; font-size: 0.8rem; }
    .hero { padding: 40px 15px; }
    .menu-wrapper, .stats-grid { grid-template-columns: 1fr; }
    table { min-width: 500px; }
    input, textarea, select { font-size: 16px; }
}

/* 13. FOOTER */
footer {
    text-align: center;
    padding: 50px 20px;
    color: #BBB;
    font-size: 0.8rem;
}