/* ===================================
   Meal Management System - Styles
   Created by Hasan Talukder
   =================================== */

:root {
    --primary: #2563eb;
    --primary-light: #3b82f6;
    --primary-dark: #1d4ed8;
    --secondary: #64748b;
    --success: #059669;
    --success-light: #10b981;
    --danger: #dc2626;
    --danger-light: #ef4444;
    --warning: #d97706;
    --warning-light: #f59e0b;
    --info: #0891b2;
    --info-light: #0ea5e9;
    --neutral-50: #f8fafc;
    --neutral-100: #f1f5f9;
    --neutral-200: #e2e8f0;
    --neutral-300: #cbd5e1;
    --neutral-400: #94a3b8;
    --neutral-500: #64748b;
    --neutral-600: #475569;
    --neutral-700: #334155;
    --neutral-800: #1e293b;
    --neutral-900: #0f172a;
    --sidebar-width: 240px;
    --sidebar-collapsed: 68px;
    --navbar-height: 64px;
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: var(--neutral-700);
    background-color: var(--neutral-100);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

.wrapper {
    display: flex;
    min-height: 100vh;
}

/* ===== Sidebar ===== */
.sidebar {
    width: var(--sidebar-width);
    background: #111827;
    color: #fff;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    transition: var(--transition);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    box-shadow: none;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar.collapsed {
    width: var(--sidebar-collapsed);
}

.sidebar-brand {
    padding: 18px 16px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sidebar-brand a {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    letter-spacing: -0.01em;
}

.sidebar-brand i {
    font-size: 20px;
    color: var(--primary-light);
}

.sidebar.collapsed .sidebar-brand span,
.sidebar.collapsed .sidebar-nav .nav-link span,
.sidebar.collapsed .sidebar-nav .nav-header,
.sidebar.collapsed .sidebar-footer small {
    display: none;
}

.sidebar.collapsed .sidebar-brand a {
    justify-content: center;
}

.sidebar-nav {
    flex: 1;
    padding: 8px 0;
    overflow-y: auto;
}

.sidebar-nav::-webkit-scrollbar {
    width: 3px;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.sidebar-nav .nav-header {
    padding: 12px 16px 6px;
    font-size: 10px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.3);
    font-weight: 600;
    letter-spacing: 0.05em;
}

.sidebar-nav .nav-link {
    color: rgba(255, 255, 255, 0.6);
    padding: 8px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    font-size: 13.5px;
    position: relative;
    margin: 1px 8px;
    border-radius: var(--radius-md);
    font-weight: 400;
}

.sidebar-nav .nav-link:hover {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.9);
}

.sidebar-nav .nav-link.active {
    background: rgba(37, 99, 235, 0.15);
    color: #60a5fa;
    font-weight: 500;
}

.sidebar-nav .nav-link.active i {
    color: #60a5fa;
}

.sidebar-nav .nav-link i {
    width: 18px;
    text-align: center;
    font-size: 14px;
    transition: var(--transition);
    flex-shrink: 0;
}

.nav-dropdown-toggle {
    justify-content: space-between;
}

.dropdown-arrow {
    font-size: 9px;
    transition: transform 0.2s ease;
    margin-left: auto;
    opacity: 0.5;
}

.nav-dropdown-toggle[aria-expanded="true"] .dropdown-arrow {
    transform: rotate(180deg);
    opacity: 0.8;
}

.sub-menu {
    background: rgba(0, 0, 0, 0.15);
    border-radius: var(--radius-md);
    margin: 2px 12px 2px 12px;
    padding: 4px 0;
}

.sub-menu .nav-link {
    padding: 7px 14px 7px 32px;
    font-size: 13px;
    margin: 1px 4px;
}

.sub-menu .nav-link i {
    width: 16px;
    font-size: 12px;
}

.sub-menu .nav-link.active {
    background: rgba(96, 165, 250, 0.1);
    color: #60a5fa;
    font-weight: 500;
}

.sidebar.collapsed .nav-dropdown-toggle .dropdown-arrow,
.sidebar.collapsed .sub-menu,
.sidebar.collapsed .sidebar-nav .nav-dropdown-toggle span {
    display: none !important;
}

.sidebar.collapsed .sidebar-nav .nav-dropdown-toggle {
    justify-content: center;
    padding: 8px 10px;
}

.sidebar.collapsed .sidebar-nav .nav-link {
    justify-content: center;
    padding: 8px 10px;
}

.sidebar-footer {
    padding: 12px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
    color: rgba(255, 255, 255, 0.3);
    font-size: 11px;
}

/* ===== Main Content ===== */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    transition: var(--transition);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.sidebar.collapsed ~ .main-content {
    margin-left: var(--sidebar-collapsed);
}

/* ===== Top Navbar ===== */
.top-navbar {
    height: var(--navbar-height);
    background: #fff;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 999;
    border-bottom: 1px solid var(--neutral-200);
}

.navbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-toggle {
    background: none;
    border: none;
    font-size: 16px;
    color: var(--neutral-500);
    cursor: pointer;
    padding: 6px;
    border-radius: var(--radius-md);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-toggle:hover {
    background: var(--neutral-100);
    color: var(--neutral-700);
}

.navbar-left h5 {
    font-size: 15px;
    font-weight: 600;
    color: var(--neutral-800);
    letter-spacing: -0.01em;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-icon {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-md);
    border: 1px solid var(--neutral-200);
    background: #fff;
    color: var(--neutral-500);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 13px;
}

.btn-icon:hover {
    background: var(--neutral-50);
    color: var(--neutral-700);
    border-color: var(--neutral-300);
}

.user-dropdown .dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--neutral-700);
    font-size: 13.5px;
    padding: 4px 8px;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.user-dropdown .dropdown-toggle:hover {
    background: var(--neutral-50);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-md);
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 13px;
}

.user-name {
    font-weight: 500;
}

/* ===== Content Wrapper ===== */
.content-wrapper {
    flex: 1;
    padding: 24px;
}

/* ===== Footer ===== */
.main-footer {
    background: #fff;
    padding: 16px 24px;
    border-top: 1px solid var(--neutral-200);
    font-size: 12px;
    color: var(--neutral-500);
}

/* ===== Cards ===== */
.card {
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-lg);
    box-shadow: none;
    margin-bottom: 16px;
    background: #fff;
    transition: var(--transition);
    overflow: hidden;
}

.card:hover {
    box-shadow: var(--shadow-sm);
}

.card-header {
    background: #fff;
    border-bottom: 1px solid var(--neutral-200);
    padding: 14px 18px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0 !important;
}

.card-header h6 {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    color: var(--neutral-800);
    letter-spacing: -0.01em;
}

.card-header.bg-primary h6,
.card-header.bg-success h6,
.card-header.bg-danger h6,
.card-header.bg-info h6,
.card-header.bg-warning h6 {
    color: #fff;
}

.card-body {
    padding: 16px 18px;
}

/* ===== Stat Cards ===== */
.stat-card {
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: none;
    transition: var(--transition);
    overflow: hidden;
}

.stat-card:hover {
    box-shadow: var(--shadow-sm);
}

.stat-card .border-start {
    border-width: 3px !important;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

/* ===== Tables ===== */
.table {
    margin-bottom: 0;
}

.table thead th {
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--neutral-500);
    border-bottom-width: 1px;
    padding: 12px 14px;
    background: var(--neutral-50);
    border-color: var(--neutral-200);
}

.table tbody td {
    padding: 12px 14px;
    vertical-align: middle;
    font-size: 13.5px;
    color: var(--neutral-700);
    border-color: var(--neutral-100);
}

.table.table-sm tbody td,
.table.table-sm thead th {
    padding: 8px 12px;
    font-size: 13px;
}

.table-hover tbody tr {
    transition: background-color 0.15s ease;
}

.table-hover tbody tr:hover {
    background-color: var(--neutral-50);
}

/* ===== Badges ===== */
.badge {
    padding: 4px 8px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    font-size: 11px;
    line-height: 1.3;
}

.badge.rounded-pill {
    font-size: 11px;
    padding: 4px 10px;
}

.badge.bg-light {
    color: var(--neutral-600);
}

/* ===== Member Avatar ===== */
.member-avatar {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-md);
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 12px;
    flex-shrink: 0;
}

/* ===== Profile Avatar ===== */
.profile-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 36px;
    margin: 0 auto;
}

/* ===== Meal Input ===== */
.meal-input-card {
    background: var(--neutral-50);
    padding: 12px;
    border-radius: var(--radius-md);
    text-align: center;
    border: 1px solid var(--neutral-200);
    transition: var(--transition);
}

.meal-input-card:hover {
    border-color: var(--primary);
}

.meal-input-card label {
    font-size: 11px;
    font-weight: 500;
    color: var(--neutral-500);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.meal-input-card input {
    text-align: center;
    font-weight: 600;
    font-size: 18px;
    border-radius: var(--radius-sm);
    border-color: var(--neutral-200);
}

body.dark-mode .meal-input-card {
    background: var(--neutral-800);
    border-color: var(--neutral-700);
}

/* ===== Summary Item ===== */
.summary-item {
    text-align: center;
    padding: 16px;
    background: var(--neutral-50);
    border-radius: var(--radius-md);
    border: 1px solid var(--neutral-200);
}

.summary-item i {
    font-size: 18px;
    margin-bottom: 6px;
    color: var(--primary);
}

.summary-item .label {
    display: block;
    font-size: 11px;
    font-weight: 500;
    color: var(--neutral-500);
    margin-bottom: 4px;
}

.summary-item .value {
    font-size: 18px;
    font-weight: 600;
    color: var(--neutral-800);
}

/* ===== Balance Card ===== */
.balance-card {
    text-align: center;
    padding: 20px;
}

.balance-due {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* ===== Calc Item ===== */
.calc-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--neutral-100);
}

.calc-item:last-child {
    border-bottom: none;
}

.calc-item span {
    color: var(--neutral-500);
}

.calc-item strong {
    font-weight: 600;
    color: var(--neutral-800);
}

/* ===== Activity List ===== */
.activity-list .list-group-item {
    padding: 10px 12px;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.activity-item i {
    width: 30px;
    height: 30px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.activity-item.expense i {
    background: #fef2f2;
    color: var(--danger);
}

.activity-item.deposit i {
    background: #ecfdf5;
    color: var(--success);
}

.activity-content {
    flex: 1;
}

.activity-content span {
    display: block;
    font-weight: 500;
    font-size: 13px;
    color: var(--neutral-800);
}

.activity-content small {
    color: var(--neutral-500);
    font-size: 12px;
}

.activity-amount {
    font-weight: 600;
    font-size: 13px;
}

/* ===== Form Styles ===== */
.form-control, .form-select {
    border-radius: var(--radius-md);
    border: 1px solid var(--neutral-200);
    padding: 9px 12px;
    font-size: 13.5px;
    color: var(--neutral-800);
    transition: var(--transition);
    background: #fff;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    outline: none;
}

.form-control-sm, .form-select-sm {
    padding: 6px 10px;
    font-size: 13px;
    border-radius: var(--radius-sm);
}

.form-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--neutral-700);
    margin-bottom: 4px;
}

.form-text {
    font-size: 11px;
    color: var(--neutral-500);
}

.input-group-text {
    background: var(--neutral-50);
    border-color: var(--neutral-200);
    font-size: 13px;
    color: var(--neutral-500);
}

/* ===== Buttons ===== */
.btn {
    border-radius: var(--radius-md);
    padding: 8px 16px;
    font-weight: 500;
    font-size: 13.5px;
    transition: var(--transition);
    border: 1px solid transparent;
}

.btn:hover {
    transform: none;
}

.btn:active {
    transform: none;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12.5px;
    border-radius: var(--radius-sm);
}

.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-success {
    background: var(--success);
    border-color: var(--success);
}

.btn-success:hover {
    background: #047857;
    border-color: #047857;
}

.btn-danger {
    background: var(--danger);
    border-color: var(--danger);
}

.btn-danger:hover {
    background: #b91c1c;
    border-color: #b91c1c;
}

.btn-warning {
    background: var(--warning);
    border-color: var(--warning);
}

.btn-warning:hover {
    background: #b45309;
    border-color: #b45309;
}

.btn-info {
    background: var(--info);
    border-color: var(--info);
}

.btn-info:hover {
    background: #0e7490;
    border-color: #0e7490;
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--neutral-200);
}

.btn-outline-primary:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.btn-outline-success:hover {
    background: var(--success);
    border-color: var(--success);
    color: #fff;
}

.btn-outline-danger:hover {
    background: var(--danger);
    border-color: var(--danger);
    color: #fff;
}

.btn-outline-warning:hover {
    background: var(--warning);
    border-color: var(--warning);
    color: #fff;
}

.btn-outline-info:hover {
    background: var(--info);
    border-color: var(--info);
    color: #fff;
}

/* ===== DataTables ===== */
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
    padding: 12px 16px;
    font-size: 13px;
}

.dataTables_wrapper .dataTables_filter input {
    border-radius: var(--radius-md);
    border: 1px solid var(--neutral-200);
    padding: 6px 12px;
    font-size: 13px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    border-radius: var(--radius-sm);
    border: 1px solid var(--neutral-200);
    margin: 0 2px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover:not(.current) {
    background: var(--neutral-50);
    border-color: var(--neutral-300);
}

body.dark-mode .dataTables_wrapper .dataTables_filter input {
    background: var(--neutral-800);
    border-color: var(--neutral-700);
    color: #e5e7eb;
}

body.dark-mode .dataTables_wrapper .dataTables_paginate .paginate_button {
    background: var(--neutral-800);
    border-color: var(--neutral-700);
    color: #e5e7eb !important;
}

body.dark-mode .dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: var(--primary);
    border-color: var(--primary);
}

/* ===== Dark Mode ===== */
body.dark-mode {
    background-color: #0b0f19;
    color: #cbd5e1;
}

body.dark-mode .card,
body.dark-mode .top-navbar,
body.dark-mode .main-footer {
    background: #111827;
    color: #cbd5e1;
}

body.dark-mode .card-header {
    background: #111827;
    border-color: #1f2937;
}

body.dark-mode .card-header h6 {
    color: #e2e8f0;
}

body.dark-mode .table {
    color: #cbd5e1;
}

body.dark-mode .table thead th {
    color: #94a3b8;
    background: #0f172a;
    border-color: #1f2937;
}

body.dark-mode .table tbody td {
    border-color: #1f2937;
    color: #cbd5e1;
}

body.dark-mode .table-hover tbody tr:hover {
    background-color: #1f2937;
}

body.dark-mode .form-control,
body.dark-mode .form-select {
    background: #0f172a;
    border-color: #334155;
    color: #e2e8f0;
}

body.dark-mode .input-group-text {
    background: #0f172a;
    border-color: #334155;
    color: #94a3b8;
}

body.dark-mode .top-navbar {
    border-color: #1f2937;
}

body.dark-mode .navbar-left h5 {
    color: #e2e8f0;
}

body.dark-mode .user-dropdown .dropdown-toggle {
    color: #cbd5e1;
}

body.dark-mode .btn-icon {
    background: #1f2937;
    color: #94a3b8;
    border-color: #334155;
}

body.dark-mode .btn-icon:hover {
    background: #334155;
    color: #e2e8f0;
}

body.dark-mode .sidebar-toggle {
    color: #94a3b8;
}

body.dark-mode .sidebar-toggle:hover {
    background: #1f2937;
    color: #e2e8f0;
}

body.dark-mode .modal-content {
    background: #111827;
    color: #e2e8f0;
}

body.dark-mode .sidebar {
    background: #0b0f19;
}

body.dark-mode .form-label {
    color: #cbd5e1;
}

body.dark-mode .form-text {
    color: #94a3b8;
}

body.dark-mode .stat-card {
    background: #111827;
    border-color: #1f2937;
}

body.dark-mode .summary-item {
    background: #0f172a;
    border-color: #1f2937;
}

body.dark-mode .summary-item .value {
    color: #e2e8f0;
}

body.dark-mode .member-avatar {
    background: var(--primary);
}

/* ===== Utility Classes ===== */
.fw-400 { font-weight: 400; }
.fw-500 { font-weight: 500; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }

.text-xs { font-size: 11px; }
.text-sm { font-size: 13px; }
.text-base { font-size: 14px; }

.text-muted {
    color: var(--neutral-500) !important;
}

body.dark-mode .text-muted {
    color: #94a3b8 !important;
}

/* ===== Responsive ===== */
@media (max-width: 991px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .content-wrapper {
        padding: 16px;
    }
    
    .top-navbar {
        padding: 0 16px;
    }
}

@media (max-width: 767px) {
    .content-wrapper {
        padding: 12px;
    }
    
    .stat-card {
        padding: 14px;
    }
    
    .stat-icon {
        width: 46px;
        height: 46px;
        font-size: 18px;
    }
    
    .stat-content h3 {
        font-size: 18px;
    }
    
    .info-row {
        flex-direction: column;
    }
    
    .info-box {
        width: 100%;
        margin-bottom: 14px;
    }
}

/* ===== Print Styles ===== */
@media print {
    .no-print { display: none !important; }
    .sidebar, .top-navbar, .main-footer { display: none; }
    .main-content { margin-left: 0; }
    .content-wrapper { padding: 0; }
    .card { box-shadow: none; border: 1px solid #ddd; }
}

/* ===== Animations ===== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.card {
    animation: fadeIn 0.3s ease;
}

/* ===== Alerts ===== */
.alert {
    border-radius: var(--radius-md);
    border-width: 0;
    padding: 12px 16px;
    font-size: 13.5px;
}

/* ===== Modals ===== */
.modal-content {
    border-radius: var(--radius-lg);
    border: none;
    box-shadow: var(--shadow-lg);
}

.modal-header {
    border-bottom: 1px solid var(--neutral-200);
    padding: 16px 20px;
}

.modal-footer {
    border-top: 1px solid var(--neutral-200);
    padding: 14px 20px;
}

body.dark-mode .modal-header {
    border-color: #1f2937;
}

body.dark-mode .modal-footer {
    border-color: #1f2937;
}

/* ===== DataTables Sorting Arrows ===== */
table.dataTable thead .sorting:before,
table.dataTable thead .sorting:after,
table.dataTable thead .sorting_asc:before,
table.dataTable thead .sorting_asc:after,
table.dataTable thead .sorting_desc:before,
table.dataTable thead .sorting_desc:after {
    font-size: 10px;
    opacity: 0.4;
}

table.dataTable thead .sorting:hover:before,
table.dataTable thead .sorting:hover:after {
    opacity: 0.7;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--neutral-300);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--neutral-400);
}

body.dark-mode ::-webkit-scrollbar-thumb {
    background: #334155;
}

body.dark-mode ::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

/* ===== Meal Rate Trend ===== */
.trend-bar {
    transition: all 0.25s ease;
    min-height: 10px;
}

.trend-bar:hover {
    filter: brightness(1.1);
}

/* ===== Quick Links ===== */
.btn-outline-secondary:hover {
    background: var(--neutral-500);
    border-color: var(--neutral-500);
    color: #fff;
}

.btn-outline-dark:hover {
    background: var(--neutral-800);
    border-color: var(--neutral-800);
    color: #fff;
}

.dashboard-card {
    min-height: 370px;
}

.dashboard-card-sm {
    min-height: 247px;
}

.dashboard-card .card-body.d-flex {
    flex: 1;
}

.dashboard-card .table-responsive {
    max-height: 290px;
    overflow-y: auto;
}

.dashboard-card-sm .table-responsive {
    max-height: 170px;
}

.dashboard-card .summary-scroll {
    flex: 1;
    overflow-y: auto;
    max-height: 290px;
}

.dashboard-card-sm .summary-scroll {
    max-height: 170px;
}
