/* --- 1. MODERN VARIABLES & RESET --- */
:root {
    --primary-gradient: linear-gradient(135deg, #1c4d8d 0%, #0f172a 100%);
    --primary: #1c4d8d;
    --primary-light: #2a6bbd;
    --accent: #58a45c;
    --bg-light: #f8fafc;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --danger: #ef4444;
    --white: #ffffff;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --radius: 12px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
}

h2 {
    color: var(--primary); font-size: 1.5rem; font-weight: 500; margin-bottom: 20px;
}

h3 {
    color: var(--primary); font-size: 1.1rem; font-weight: 600;
}
/* --- 2. LAYOUT & CARDS --- */
body.auth-page {
    background: var(--primary-gradient);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

.responsive-container {
    padding: 30px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    background: var(--white);
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid #eef2f6;
    width: 100%;
    animation: slideUp 0.4s ease-out;
}

.card-large {
    max-width: 850px;
    margin: 0 auto;
}

.card-header {
    margin-bottom: 15px; border-bottom: 1px solid #f1f5f9; padding-bottom: 10px;
}

h2, .card-title { font-size: 1.5rem; font-weight: 700; color: var(--primary); margin-bottom: 5px;}
.card-subtitle { font-size: 0.9rem; color: var(--text-muted); margin-bottom:15px; }


@keyframes slideUp {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Logo Styling */
.logo-container { text-align: center; margin-bottom: 25px; }
.center-logo {
    width: 90px; height: 90px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.3);
    background: white;
    object-fit: contain;
    padding: 5px;
}

/* Legal Notice (Index/Login) */
.login-container {background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-width: 450px;
    animation: slideUp 0.5s ease-out;}

.login-title { font-size: 1.5rem; font-weight: 800; color: var(--primary); text-align: center; margin-bottom: 20px; }

.legal-notice { margin-top: 25px; padding-top: 20px; border-top: 1px dashed #e2e8f0; }
.notice-title { font-size: 0.75rem; font-weight: 800; color: var(--primary); text-transform: uppercase; text-align: center; margin-bottom: 12px; }
.notice-box {
    background: #f1f5f9; padding: 15px; border-radius: 10px; border-left: 4px solid var(--primary);
    font-size: 0.75rem; color: var(--text-main); text-align: justify; font-style: italic; margin-bottom: 10px;
}
.notice-footer { font-size: 0.7rem; color: var(--text-muted); text-align: center; }

/* --- 3. NAVIGATION (TOP BAR) --- */
.top-bar {
    background: var(--primary-gradient);
    width: 100%;
    height: 70px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand { display: flex; align-items: center; gap: 12px; }
.nav-logo { height: 40px; border-radius: 50%; border: 2px solid white; background: white; }
.app-name { font-weight: 700; color: white; font-size: 1.1rem; }

.user-menu-wrapper { position: relative; }
.user-avatar {
    font-size: 1.4rem; cursor: pointer; background: rgba(255, 255, 255, 0.2);
    color: white; width: 42px; height: 42px; display: flex;
    align-items: center; justify-content: center; border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Dropdown Menu */
.dropdown-content {
    display: none; position: absolute; right: 0; top: 60px;
    background: var(--white); min-width: 240px; border-radius: var(--radius);
    box-shadow: var(--shadow-md); border: 1px solid #e2e8f0; overflow: hidden;
    z-index: 1001; animation: dropdownFade 0.3s ease;
}
.dropdown-content.active { display: block; }
@keyframes dropdownFade { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

.dropdown-header { padding: 15px; background: #f8fafc; display: flex; align-items: center; gap: 12px; }
.profile-preview-img { width: 40px; height: 40px; background: var(--primary-light); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; }
.dropdown-links a { display: flex; align-items: center; gap: 10px; padding: 12px 15px; text-decoration: none; color: var(--text-main); font-size: 0.9rem; }
.dropdown-links a:hover { background: #f1f5f9; }

/* --- 4. DASHBOARD GRID SYSTEM --- */
.dashboard-grid {
    display: grid;
    grid-template-areas:
        "graph logs"
        "recipes recipes";
    grid-template-columns: 1.5fr 1fr;
    gap: 25px;
}

.chart-section { grid-area: graph; }
.log-section { grid-area: logs; }
.recipes-section { grid-area: recipes; }

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e2e8f0;

}

/* Dynamic Row */
.dynamic-row {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    align-items: center;
    background: #f8fafc;
    padding: 12px;
    border-radius: 8px;

}

.step-num{
    background: var(--primary); color: white; width: 28px; height: 28px;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 0.75rem; font-weight: 700;
}
#menuList {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

/* --- 11. INGREDIENT ROW WITH 1000 PORTIONS --- */
.ingredient-row {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #ffffff;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 12px;
    border: 1px solid #e2e8f0;
    position: relative;
}

.ing-section-single, .ing-section-bulk {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Warna pembeda untuk porsi besar */
.ing-section-bulk {
    background: var(--primary);
    padding: 10px;
    border-radius: 8px;
}

.ing-group-qty {
    display: flex;
    gap: 8px;
}

.col-qty { flex: 2; }
.col-unit { flex: 1; }

.label-porsi { color: #64748b; font-weight: 700; text-transform: uppercase; }
.label-bulk {  color: #ffffff; font-weight: 700; text-transform: uppercase; }

.ing-divider {
    font-size: 1.2rem;
    color: #cbd5e1;
    font-weight: bold;
}


/* --- 5. LOGS & ACTIVITY --- */
.log-container { list-style: none; max-height: 300px; overflow-y: auto; }
.log-item { padding: 12px; border-bottom: 1px solid #f1f5f9; font-size: 0.85rem; }
.log-header { display: flex; justify-content: space-between; margin-bottom: 4px; }
.log-user { color: var(--primary); font-weight: 700; }
.log-time { color: var(--text-muted); font-size: 0.75rem; }

/* --- 6. RECIPE CARDS --- */
.recipe-card {
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid #eef2f6;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-sm);
    height: 100%;
}

.recipe-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--primary-light); }

.recipe-thumb-container { width: 100%; height: 200px; background: #f8fafc; overflow: hidden; }
.recipe-thumb-container img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.recipe-thumb-content{
    padding: 20px; display: flex; flex-direction: column; flex: 1;
}
.recipe-card:hover img { transform: scale(1.05); }

.recipe-badge{
    position: absolute; top: 15px; left: 15px; padding: 6px 12px;
    border-radius: 30px; font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
    background: var(--accent); color: white; z-index: 2;
}

.recipe-info-mini{
    padding: 15px; display: flex; gap: 10px; font-size: 0.75rem; color: var(--text-muted);
}



.recipe-description {
    margin: 10px 0; color: var(--text-muted); font-size: 0.85rem; line-height: 1.5;
    display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

h4{
    margin: 0; font-size: 1.1rem; color: #1e293b; font-weight: 800;
}

.recipe-actions {
    margin-top: auto; /* KUNCI: Mendorong tombol ke paling bawah kartu */
    padding-top: 15px;
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 8px;
}

.status-badge {
    position: absolute; top: 15px; right: 15px; padding: 6px 12px;
    border-radius: 30px; font-size: 0.7rem; font-weight: 800; text-transform: uppercase; z-index: 2;
}
.status-badge.approved { background: #d1fae5; color: #065f46; }
.status-badge.waiting { background: #fffbeb; color: #92400e; }

/* --- 7. FORM ELEMENTS & BUTTONS --- */
.form-actions{
    margin-top: 30px; display: flex; gap: 15px;
}
.input-label {color: var(--primary); font-size: 1.1rem; font-weight: 600;}
.input-field {
    width: 100%; padding: 12px 16px; margin-bottom: 20px; border-radius: 8px;
    border: 1px solid #e2e8f0; font-size: 1rem; background: white;
}

#uploadStatus {
    font-size: 0.8rem; color: #666; margin-top: 5px;
}


/* BUTTON */
input, select, textarea { width: 100%; padding: 12px 16px; margin-bottom: 20px; border-radius: 8px; border: 1px solid #e2e8f0; font-size: 1rem; }
.submit-btn {
    background-color: var(--primary); color: white; padding: 20px 20px;
    border-radius: 8px; border: none; cursor: pointer; font-weight: 700;
    box-shadow: 0 4px 6px rgba(28, 77, 141, 0.2); text-align: center; width: 100%;
}

.submit-btn:hover { background-color: var(--primary-light); transform: scale(1.02); }
.cancel-btn {
    background-color: transparent; color: var(--text-muted); border: 2px solid #e2e8f0;
    padding: 20px 20px; border-radius: 8px; cursor: pointer; font-weight: 700;
    transition: background 0.2s, color 0.2s, border-color 0.2s; width: 100%;
}
.cancel-btn:hover {
    background-color: #f1f5f9; color: var(--primary); border-color: var(--primary);
}  

.add-btn {
    background-color: var(--primary); color: white; width: 40px; height: 40px;
    border-radius: 10px; border: none; cursor: pointer; display: flex;
    align-items: center; justify-content: center; box-shadow: 0 4px 6px rgba(28, 77, 141, 0.2);
}
.add-btn:hover { background-color: var(--primary-light); transform: scale(1.1); }

.action-btn { 
    display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; 
    border-radius: 8px; font-size: 0.8rem; font-weight: 700; border: none; cursor: pointer; 
}
.view-btn { background: #f0f9ff; color: #0369a1; }
.edit-btn { background: #f7fee7; color: #4d7c0f; }
.delete-btn { background: transparent; color: var(--text-muted); }
.delete-btn:hover { color: var(--danger); background: #fef2f2; }

.delete-row-btn {
    background: #fee2e2;
    color: #ef4444;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: bold;
}

/* Container Utama Modal */
.modal-content {
    border-radius: 20px;
    padding: 0;
    overflow: hidden;
    border: none;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal-header-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    background: #f8fafc;
}

.modal-body-padding {
    padding: 25px;
}

/* Tombol Close Modern */
.close-modal {
    position: absolute;
    right: 20px;
    top: 20px;
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: 0.3s;
}

.close-modal:hover {
    background: #ef4444;
    color: white;
}

/* Badge Posisi Nampan */
.tray-badge {
    background: #e0e7ff;
    color: #4338ca;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 800;
    display: inline-block;
    margin-bottom: 15px;
}

/* Box Informasi Gizi */
.nutrition-summary-box {
    background: #f0fdf4;
    padding: 15px;
    border-radius: 12px;
    border-left: 5px solid #22c55e;
    margin-bottom: 20px;
}

/* Styling Tabel Bahan */
.view-ing-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.view-ing-table th {
    text-align: left;
    background: #f8fafc;
    padding: 10px;
    font-size: 0.75rem;
    color: #64748b;
    text-transform: uppercase;
    border-bottom: 2px solid #e2e8f0;
}

.view-ing-table td {
    padding: 12px 10px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.9rem;
}

.qty-1000-text {
    color: #c2410c;
    font-weight: 700;
    font-size: 0.85rem;
}

/* Prosedur List */
#viewProceduresList {
    padding-left: 20px;
}

#viewProceduresList li {
    margin-bottom: 10px;
    color: #334155;
    line-height: 1.5;
}


/* NUTRITION CALCULATOR */
.nutrition-display{
    font-size: 0.75rem; color: #166534; margin-top: 4px; min-height: 1em;
}

/* Nutrition Grid di dalam Card */
.nutrition-grid-mini {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    background: #f8fafc;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 15px;
    border: 1px solid #edf2f7;
}

.nutri-item {
    display: flex;
    flex-direction: column;
}

.nutri-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    font-weight: 800;
    color: #94a3b8;
    margin-bottom: 2px;
}

.nutri-value {
    font-size: 0.85rem;
    font-weight: 700;
    color: #334155;
}

#grandTotalNutrition {
    transition: all 0.3s ease;
}
#grandTotalNutrition span[id^="total"] {
    font-family: 'Courier New', Courier, monospace; /* Gaya angka gizi */
}


/* --- 8. FOOD TRAY STYLING --- */
.food-tray-container { background: #ededed; padding: 20px; border-radius: 20px; border: 4px solid #fefefe; max-width: 500px; margin: 0 auto 25px; box-shadow: inset 0 4px 10px rgba(0,0,0,0.05); }
.tray-layout { display: grid; grid-template-areas: "s1 s2 s2 s3" "s4 s4 s4 s5"; gap: 15px; height: 280px; }
.tray-slot { background: #e3e3e3; border: 2px dashed #cbd5e1; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; }
.tray-slot.selected { background: var(--primary); border-color: var(--primary); color: white; transform: scale(0.98); }
.tray-slot[data-slot="1"] { grid-area: s1; }
.tray-slot[data-slot="2"] { grid-area: s2; }
.tray-slot[data-slot="3"] { grid-area: s3; }
.tray-slot[data-slot="4"] { grid-area: s4; }
.tray-slot[data-slot="5"] { grid-area: s5; border-radius: 100%; }



/* --- 9. MODAL VIEW --- */
.modal { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); overflow-y: auto; }
.modal-content { background: white; margin: 5% auto; padding: 25px; width: 90%; max-width: 700px; border-radius: 12px; position: relative; }

/* Khusus tray di dalam modal */
#viewModal .food-tray-container {
    pointer-events: none; /* Agar tidak bisa diklik */
    margin-bottom: 10px;
}

/* Warna untuk slot yang terisi */
#viewModal .tray-slot.selected {
    background: var(--primary) !important; /* Biru Navy */
    color: white !important;
    border-color: var(--primary);
    box-shadow: 0 4px 10px rgba(28, 77, 141, 0.4);
}

/* Pastikan slot di modal tidak bisa diklik manual oleh Planner */
#viewModal .tray-slot {
    pointer-events: none; 
    border: 2px solid #e2e8f0;
}

/* --- 10. RESPONSIVENESS --- */
@media (max-width: 992px) { .dashboard-grid { grid-template-areas: "graph" "logs" "recipes"; grid-template-columns: 1fr; } }
@media (max-width: 768px) {
    .dynamic-row { flex-direction: column; align-items: stretch; }
    .nav-content { padding: 0 10px; }
    .app-name { font-size: 0.9rem; }
    .ingredient-row { flex-direction: column; align-items: stretch; }
    .ing-divider { text-align: center; transform: rotate(90deg); margin: 5px 0; }
}


/* --- 12. SIDEBAR NAVIGATION (Navy Theme) --- */
.sidebar {
    width: 260px;
    height: 100vh;
    background: #002868; /* Navy sesuai mockup */
    color: var(--white);
    position: fixed;
    left: 0;
    top: 0;
    padding: 25px 0;
    z-index: 1001;
    display: flex;
    flex-direction: column;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 25px 40px;
    font-weight: 800;
    font-size: 1.2rem;
}

.sidebar-brand img {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    padding: 3px;
}

.sidebar-nav .nav-item {
    padding: 15px 25px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: 0.3s;
    border-left: 4px solid transparent;
}

.sidebar-nav .nav-item:hover, 
.sidebar-nav .nav-item.active {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-left: 4px solid white;
}

.sidebar-nav hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 20px 25px;
}

/* --- 13. MAIN CONTENT LAYOUT --- */
.main-content {
    margin-left: 260px; /* KRUSIAL: Agar konten tidak tertutup sidebar */
    padding: 40px;
    background-color: var(--bg-light);
    min-height: 100vh;
    width: calc(100% - 260px);
}

.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.search-input {
    background: var(--white);
    border: 1px solid #e2e8f0;
    padding: 12px 20px;
    border-radius: 10px;
    width: 300px;
    outline: none;
}

.avatar-circle {
    width: 40px;
    height: 40px;
    background: #e2e8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

/* --- 14. CALENDAR & REPORT SYSTEM --- */

.calendar-double-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Membagi dua kolom sama besar */
    gap: 20px;
    margin-bottom: 30px;
}

/* Perkecil sedikit padding di double mode agar tidak terlalu memakan tempat */
.calendar-double-wrapper .calendar-card {
    padding: 20px;
}

.calendar-double-wrapper .day-cell {
    min-height: 60px; /* Lebih pendek sedikit agar proporsional */
}

/* Responsif: Jika layar kecil (HP), tumpuk kembali ke bawah */
@media (max-width: 1200px) {
    .calendar-double-wrapper {
        grid-template-columns: 1fr;
    }
}

.calendar-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 30px;
}

.calendar-grid-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-weight: 700;
    color: var(--text-muted);
    padding-bottom: 15px;
    border-bottom: 1px solid #f1f5f9;
}

.calendar-days-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: #e2e8f0;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 20px;
}

.calendar-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-bottom: 30px;
}

.calendar-controls h3 {
    font-size: 1.4rem;
    font-weight: 800;
    min-width: 200px;
    text-align: center;
}

.day-cell {
    background: var(--white);
    min-height: 90px;
    padding: 12px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    transition: 0.2s;
    position: relative;
}

.day-cell:hover { background: #f8fafc; }
.day-cell.active { background: #eff6ff; border: 2px solid var(--primary); z-index: 1; }
.day-cell.today { background: #fffbeb; }
.day-cell.prev-date, .day-cell.next-date { background: #f8fafc; color: #cbd5e1; cursor: default; }

/* Report Table matching the Mockup Blue Header */
.report-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.report-table th {
    background: #dbeafe !important; /* Biru muda sesuai mockup */
    color: var(--primary);
    padding: 12px;
    text-align: left;
    border: 1px solid #cbd5e1;
}

.report-table td {
    padding: 10px;
    border: 1px solid #cbd5e1;
}

/* Tambahkan di bawah bagian Report Table */
.report-table tbody tr:hover {
    background-color: #f8fafc;
}

.report-table tbody tr:hover .table-input {
    background-color: #fff;
}

.footer-total {
    background: #f8fafc;
    font-weight: 800;
}

/* Footer Actions di Menu Planner */
.planner-footer-actions {
    margin-top: 40px;
    padding: 25px;
    background: #f1f5f9;
    border-radius: var(--radius);
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.status-selector {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

/* --- 15. PLANNER HEADER & BUTTONS --- */
.planner-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.back-btn {
    background: var(--white);
    border: 1px solid #e2e8f0;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-weight: bold;
}

.back-btn:hover {
    background: #f1f5f9;
}

/* Detail Header & Action Group */
.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    border-bottom: 2px solid #f1f5f9;
    margin-bottom: 20px;
}

.action-group {
    display: flex;
    gap: 10px;
}

.add-menu-btn {
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid #e2e8f0;
    background: var(--white);
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
}

.add-menu-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
    border-color: var(--primary);
}

/* --- 16. REPORT GRID INPUTS --- */
.report-section {
    margin-top: 35px;
    animation: fadeIn 0.5s ease;
}

.section-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 12px;
    padding-left: 5px;
    border-left: 4px solid var(--primary);
}

/* Input styling inside tables */
.table-input {
    width: 100%;
    padding: 8px;
    border: 1px solid transparent;
    border-radius: 4px;
    font-size: 0.85rem;
    background: transparent;
    transition: 0.2s;
}

.table-input:focus {
    background: var(--white);
    border-color: var(--primary-light);
    outline: none;
    box-shadow: 0 0 0 3px rgba(28, 77, 141, 0.1);
}

.qty-input {
    text-align: center;
    font-weight: 600;
    width: 80px;
}

.price-input {
    text-align: right;
    font-weight: 600;
}

/* Indikator Status di Kalender */
.status-dot-container {
    display: flex;
    gap: 4px;
    justify-content: center;
    margin-top: 5px;
    width: 100%;
}

/* Indikator Status di Kalender */
.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    position: absolute;
    bottom: 8px;
    left: 8px; 
    border: 2px solid var(--white); /* Gunakan variabel white */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 2;
    display: block; /* Pastikan muncul */
}

/* Warna berdasarkan status */
.dot-pending {
    background-color: #f59e0b !important; /* Amber/Yellow */
    box-shadow: 0 0 5px rgba(245, 158, 11, 0.5);
}

.dot-exported {
    background-color: #22c55e !important; /* Green */
    box-shadow: 0 0 5px rgba(34, 197, 94, 0.5);
}

/* Buttons for adding/removing rows */
.btn-add-row {
    width: 100%;
    margin-top: 10px;
    padding: 10px;
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    color: #64748b;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

.btn-add-row:hover {
    background: #f1f5f9;
    border-color: var(--primary);
    color: var(--primary);
}

/* Row Total Highlight */
.row-total {
    font-weight: 800;
    color: var(--primary);
    text-align: center;
    background: #f1f5f9;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive Fix */
@media (max-width: 1024px) {
    .sidebar { width: 80px; }
    .sidebar-brand span, .sidebar-nav .nav-item span { display: none; }
    .main-content { margin-left: 80px; width: calc(100% - 80px); }
}




@media (max-width: 768px) {
    .sidebar { display: none; } /* Mobile hide sidebar, use top bar instead */
    .main-content { margin-left: 0; padding: 15px; }
    .calendar-grid-header span:nth-child(n+6) { display: none; } /* Sembunyikan Weekend di HP */
    .calendar-days-grid { grid-template-columns: repeat(5, 1fr); }
}