/* =========================================================================
   PALET WARNA BARU: CERIA, SEGAR, DAN ELEGANT (WAROENG BAMBOE PREMIUM)
   ========================================================================= */
:root {
    /* Perpaduan Gradasi Latar Belakang (Ceria & Fresh) */
    --bg-gradient: linear-gradient(135deg, #f0f7f4 0%, #e8f3ec 50%, #e3eff5 100%);
    
    /* Warna Komponen Utama */
    --primary: #1e7e34;          /* Hijau Daun Segar (Energetik) */
    --primary-dark: #115c21;     /* Hijau Botol Mewah */
    --primary-light: #e8f5e9;    /* Sorotan Hijau Lembut */
    
    /* Warna Aksen Ceria & Hangat */
    --accent-warm: #ff9f1c;      /* Oranye Senja (Membangkitkan Selera Makan / Ceria) */
    --accent-gold: #dca742;      /* Emas Champagne (Elegant) */
    --accent-teal: #06b6d4;      /* Teal Toska (Segar untuk Variasi) */
    
    /* Warna Teks & Kartu */
    --text-main: #0f172a;        /* Slate Dark Premium */
    --text-muted: #475569;       /* Abu-abu Medium */
    --bg-card: #ffffff;          /* Putih Kristal */
    --bg-card-alt: #fffdf9;      /* Krem Champagne Hangat untuk Area Khusus */
    
    /* Batas & Efek Visual Mewah */
    --border-luxury: #cbd5e1;
    --radius-lg: 20px;           /* Sudut lebih membulat halus modern */
    --radius-md: 12px;
    
    /* Bayangan 3D Lembut */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.02);
    --shadow-md: 0 10px 20px -5px rgba(24, 76, 43, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 25px 30px -10px rgba(15, 23, 42, 0.12);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =========================================================================
   RESET & DASAR HALAMAN (BACKGROUND TIDAK POLOS LAGI)
   ========================================================================= */
* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
    font-smoothing: antialiased;
}

body { 
    font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif; 
    background: var(--bg-gradient); /* Menggunakan gradasi alam yang ceria */
    background-attachment: fixed;
    color: var(--text-main); 
    padding: 20px;
    line-height: 1.6;
}

.container { 
    max-width: 1320px; 
    margin: 0 auto; 
}

.grid-2 { 
    display: grid; 
    grid-template-columns: 1fr; 
    gap: 24px; 
}

/* =========================================================================
   NAVIGATION BAR (GAYA MODERN KONTRASTING)
   ========================================================================= */
.navbar { 
    background: linear-gradient(90deg, var(--primary-dark) 0%, var(--primary) 100%);
    padding: 18px 28px; 
    border-radius: var(--radius-lg); 
    display: flex; 
    flex-direction: column; 
    gap: 16px; 
    margin-bottom: 28px; 
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255,255,255,0.1);
}

.navbar-brand { 
    font-size: 24px; 
    font-weight: 800; 
    color: #ffffff; /* Putih kontras di atas hijau */
    letter-spacing: -0.5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.navbar-user { 
    font-size: 13.5px; 
    color: #e2e8f0; 
}

.navbar-user b {
    color: var(--accent-warm); /* Highlight warna ceria */
    font-weight: 700;
}

/* =========================================================================
   SIDEBAR NAVIGASI BERWARNA-WARNI KREATIF
   ========================================================================= */
.dashboard-layout { 
    display: flex; 
    flex-direction: column; 
}

.sidebar { 
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: 20px 16px; 
    border-radius: var(--radius-lg); 
    display: flex; 
    flex-direction: row; 
    gap: 10px; 
    overflow-x: auto; 
    margin-bottom: 24px; 
    border: 1px solid rgba(255,255,255,0.6);
    box-shadow: var(--shadow-md);
}

.sidebar-btn { 
    background: #ffffff; 
    border: 1px solid var(--border-luxury); 
    color: var(--text-muted); 
    padding: 12px 22px; 
    font-size: 14px; 
    font-weight: 700; 
    cursor: pointer; 
    border-radius: var(--radius-md); 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    white-space: nowrap; 
    transition: var(--transition); 
    box-shadow: var(--shadow-sm);
}

/* Variasi Warna Menarik Saat Hover/Active di Tombol Sidebar */
.sidebar-btn:hover { 
    transform: translateY(-2px);
    color: var(--text-main);
    background: var(--bg-card-alt);
}

/* Tab 1: Menu Hidangan - Sentuhan Hijau Segar */
.sidebar p+button, .sidebar-btn:nth-child(1).active { 
    background: var(--primary); 
    color: white; 
    border-color: var(--primary-dark);
    box-shadow: 0 6px 15px rgba(30, 126, 52, 0.3);
}

/* Tab 2: Control Panel - Sentuhan Emas Elegant */
.sidebar-btn:nth-child(2).active { 
    background: var(--accent-gold); 
    color: white; 
    border-color: #bfa054;
    box-shadow: 0 6px 15px rgba(220, 167, 66, 0.3);
}

/* Tab 3: Manajer Karyawan - Sentuhan Teal Ceria */
.sidebar-btn:nth-child(3).active { 
    background: var(--accent-teal); 
    color: white; 
    border-color: #0891b2;
    box-shadow: 0 6px 15px rgba(6, 182, 212, 0.3);
}

.main-content { 
    flex: 1; 
}

/* =========================================================================
   KARTU (CARD COMPONENT) YANG HANGAT DAN BERKELAS
   ========================================================================= */
.card { 
    background: var(--bg-card); 
    padding: 32px; 
    border-radius: var(--radius-lg); 
    box-shadow: var(--shadow-md); 
    border: 1px solid rgba(255, 255, 255, 0.7); 
    margin-bottom: 24px; 
    position: relative;
    overflow: hidden;
}

/* Garis hiasan atas kartu biar mewah tidak polosan */
.card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; height: 5px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent-warm) 50%, var(--accent-gold) 100%);
}

h3 { 
    font-size: 22px; 
    margin-bottom: 20px; 
    color: var(--primary-dark); 
    font-weight: 800; 
    letter-spacing: -0.3px;
}

/* Container Atas Tabel */
.flex-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

/* =========================================================================
   TABEL BERSIH DENGAN WARNA BARIS HIGHLIGHT
   ========================================================================= */
.table-responsive { 
    width: 100%; 
    overflow-x: auto; 
    border-radius: var(--radius-md); 
    border: 1px solid var(--border-luxury); 
    box-shadow: var(--shadow-sm);
}

table { 
    width: 100%; 
    border-collapse: collapse; 
    font-size: 14.5px; 
    background: white; 
}

table th { 
    background: #f1f5f9; 
    color: var(--text-muted); 
    font-weight: 800; 
    font-size: 12px; 
    text-transform: uppercase; 
    letter-spacing: 0.5px;
    padding: 16px 20px;
    border-bottom: 2px solid var(--border-luxury);
}

table td {
    padding: 16px 20px;
    border-bottom: 1px solid #f1f5f9;
    color: var(--text-main);
}

/* Highlight Baris Selang-Seling Agar Ceria */
table tr:nth-child(even) {
    background-color: #fbfdfb;
}

table tr:hover {
    background-color: var(--primary-light) !important; /* Sorotan hijau saat kursor lewat */
}

/* =========================================================================
   TOMBOL DENGAN WARNA-WARNI TEGAS DAN JELAS (HIGH UX)
   ========================================================================= */
.btn { 
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px; 
    border: none; 
    border-radius: var(--radius-md); 
    font-size: 14px; 
    font-weight: 700; 
    cursor: pointer; 
    text-decoration: none; 
    transition: var(--transition);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary { 
    background: var(--primary); 
    color: white; 
}
.btn-primary:hover { 
    background: var(--primary-dark); 
    box-shadow: 0 6px 15px rgba(30, 126, 52, 0.25);
}

.btn-success { 
    background: var(--accent-warm); 
    color: white; 
}
.btn-success:hover { 
    background: #e68a00; 
    box-shadow: 0 6px 15px rgba(255, 159, 28, 0.3);
}

.btn-danger { 
    background: #ffeaec; 
    color: #d9383a; 
    border: 1px solid #fca5a5;
}
.btn-danger:hover { 
    background: #d9383a; 
    color: white; 
    box-shadow: 0 6px 15px rgba(217, 56, 58, 0.25);
}

/* =========================================================================
   FORM INPUT ELEGAN
   ========================================================================= */
.form-group { margin-bottom: 20px; }
.form-group label { 
    display: block; 
    font-weight: 700; 
    margin-bottom: 8px; 
    font-size: 13.5px; 
    color: var(--text-main); 
}

input[type="text"], input[type="number"], input[type="password"], select { 
    width: 100%; 
    padding: 12px 16px; 
    border: 1.5px solid var(--border-luxury); 
    border-radius: var(--radius-md); 
    font-size: 15px; 
    background-color: #fafafa;
    transition: var(--transition);
}

input[type="text"]:focus, input[type="number"]:focus, input[type="password"]:focus, select:focus {
    outline: none;
    border-color: var(--primary);
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(30, 126, 52, 0.15);
}

/* Jendela Popup Modal */
.modal-overlay { 
    position: fixed; top:0; left:0; width:100%; height:100%; 
    background: rgba(15, 23, 42, 0.6); 
    backdrop-filter: blur(5px); 
    display: none; justify-content: center; align-items: center; 
    z-index: 9999; padding: 16px; 
}

.modal-box { 
    background: white; 
    padding: 36px; 
    border-radius: var(--radius-lg); 
    width: 100%; 
    max-width: 500px; 
    box-shadow: var(--shadow-lg); 
    border-top: 6px solid var(--primary);
}

/* =========================================================================
   RESPONSIVE LAYOUT BREAKPOINT
   ========================================================================= */
@media (min-width: 768px) {
    body { padding: 30px; }
    .navbar { flex-direction: row; justify-content: space-between; align-items: center; padding: 22px 36px; }
    .sidebar { flex-direction: column; width: 280px; height: fit-content; overflow-x: visible; margin-bottom: 0; padding: 24px 18px; gap: 12px; }
    .sidebar-btn { width: 100%; }
    .dashboard-layout { flex-direction: row; gap: 30px; }
    .grid-2 { grid-template-columns: 1fr 1fr; gap: 30px; }
}