/* =====================================================
   Invoice Master — Beetee DA
   Monochrome · Oswald + Inter · Pill buttons · Airy
   ===================================================== */

/* --- CSS Variables --- */
:root {
    --sidebar-width: 260px;
    --topbar-height: 66px;

    /* Sidebar (dark, beetee-style #0a0a0a) */
    --sidebar-bg: #0a0a0a;
    --sidebar-text: rgba(255,255,255,0.45);
    --sidebar-text-active: #ffffff;
    --sidebar-hover: rgba(255,255,255,0.06);
    --sidebar-active-bg: rgba(255,255,255,0.1);
    --sidebar-active-color: #ffffff;
    --sidebar-border: rgba(255,255,255,0.07);

    /* App surface (beetee light: #f5f5f5) */
    --bg: #f5f5f5;
    --surface: #ffffff;
    --border: #e0e0e0;
    --border-dark: #c8c8c8;

    /* Brand — monochrome */
    --primary: #0c0c0c;
    --primary-hover: #333333;
    --primary-light: #f0f0f0;
    --primary-ring: rgba(12,12,12,0.12);

    /* Semantic */
    --success: #18a05a;
    --success-light: #d4f5e3;
    --success-text: #0a5c32;
    --danger: #e03030;
    --danger-light: #fde8e8;
    --danger-text: #8b1a1a;
    --warning: #d97706;
    --warning-light: #fef3c7;
    --warning-text: #7c4a00;

    /* Text */
    --text-primary: #0c0c0c;
    --text-secondary: #555555;
    --text-muted: #999999;

    /* Type */
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Oswald', 'Inter', sans-serif;

    /* Shape — more generous radius (beetee: 20px cards, 30px buttons) */
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 20px;
    --radius-xl: 24px;
    --radius-btn: 30px;
    --radius-full: 9999px;

    /* Elevation */
    --shadow-xs: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.07);
    --shadow: 0 4px 16px rgba(0,0,0,0.09);
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; }

html {
    font-size: 14px;
    height: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text-primary);
    min-height: 100vh;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

/* =====================================================
   APP LAYOUT
   ===================================================== */
.app-layout {
    display: flex;
    min-height: 100vh;
}

/* =====================================================
   SIDEBAR
   ===================================================== */
.sidebar {
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 100;
    overflow-y: auto;
    overflow-x: hidden;
    border-right: 1px solid var(--sidebar-border);
}

.sidebar-header {
    padding: 28px 24px 22px;
    border-bottom: 1px solid var(--sidebar-border);
    flex-shrink: 0;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.sidebar-logo-text {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 500;
    color: #ffffff;
    letter-spacing: 2px;
    text-transform: uppercase;
    white-space: nowrap;
}

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

.nav-section {
    margin-bottom: 8px;
}

.nav-section-label {
    display: block;
    padding: 12px 24px 6px;
    font-family: var(--font-heading);
    font-size: 9px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.2);
}

.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 24px;
    color: var(--sidebar-text);
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.3px;
    position: relative;
    transition: background 0.2s, color 0.2s;
}

.nav-item:hover {
    background: var(--sidebar-hover);
    color: var(--sidebar-text-active);
    text-decoration: none;
}

.nav-item.active {
    background: var(--sidebar-active-bg);
    color: var(--sidebar-active-color);
}

.nav-item.active::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: #ffffff;
    border-radius: 0 2px 2px 0;
}

.nav-icon {
    flex-shrink: 0;
    opacity: 0.5;
    transition: opacity 0.2s;
}

.nav-item:hover .nav-icon,
.nav-item.active .nav-icon {
    opacity: 1;
}

.sidebar-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--sidebar-border);
    flex-shrink: 0;
}

.sidebar-footer-text {
    font-size: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.2);
}

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

/* =====================================================
   TOPBAR
   ===================================================== */
.topbar {
    height: var(--topbar-height);
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 36px;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: var(--shadow-xs);
}

.topbar-left { display: flex; align-items: center; gap: 16px; }

.page-title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 500;
    color: var(--text-primary);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin: 0;
}

.topbar-right { display: flex; align-items: center; gap: 10px; }

.topbar-user {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px 6px 8px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.topbar-user:hover {
    border-color: var(--primary);
    background: #ffffff;
}

.user-avatar {
    width: 28px; height: 28px;
    background: var(--primary);
    color: white;
    border-radius: var(--radius-full);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1px;
}

/* =====================================================
   PAGE CONTENT
   ===================================================== */
.page-content {
    flex: 1;
    padding: 32px 36px 48px;
}

/* =====================================================
   HEADINGS
   ===================================================== */
h1, h2, h3, h4, h5 {
    font-family: var(--font-heading);
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-primary);
    line-height: 1.3;
}

h2 {
    font-size: 20px;
    margin-bottom: 28px;
    margin-top: 0;
}

h3 {
    font-size: 15px;
    margin-bottom: 16px;
    margin-top: 0;
}

/* =====================================================
   CARDS
   ===================================================== */
.card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-xs);
    padding: 28px;
    margin-bottom: 28px;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border);
}

.card-title {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-primary);
    margin: 0;
}

/* =====================================================
   STATS GRID
   ===================================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 18px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px 26px;
    box-shadow: var(--shadow-xs);
    transition: box-shadow 0.2s, transform 0.2s;
}

.stat-card:hover {
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

.stat-label {
    font-family: var(--font-heading);
    font-size: 9px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.03em;
    line-height: 1;
}

.stat-value.positive { color: var(--success); }
.stat-value.negative { color: var(--danger); }

/* =====================================================
   ACTION BAR
   ===================================================== */
.action-bar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 28px;
    align-items: center;
}

/* =====================================================
   BUTTONS — beetee pill style
   ===================================================== */
.uk-button,
a.uk-button {
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
    padding: 9px 22px !important;
    border-radius: var(--radius-btn) !important;
    font-family: var(--font-heading) !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    letter-spacing: 1.5px !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    text-decoration: none !important;
    border: 1px solid transparent !important;
    transition: all 0.25s ease !important;
    white-space: nowrap !important;
    line-height: 1.4 !important;
    width: auto !important;
}

.uk-button:hover, a.uk-button:hover {
    text-decoration: none !important;
    transform: translateY(-2px) !important;
}

.uk-button-primary {
    background: var(--primary) !important;
    color: white !important;
    border-color: var(--primary) !important;
}
.uk-button-primary:hover {
    background: var(--primary-hover) !important;
    border-color: var(--primary-hover) !important;
    color: white !important;
    opacity: 0.9 !important;
}

.uk-button-secondary {
    background: transparent !important;
    color: var(--text-primary) !important;
    border-color: var(--border-dark) !important;
}
.uk-button-secondary:hover {
    background: var(--primary) !important;
    color: white !important;
    border-color: var(--primary) !important;
}

.uk-button-danger {
    background: var(--danger) !important;
    color: white !important;
    border-color: var(--danger) !important;
}
.uk-button-danger:hover {
    background: #c02020 !important;
    color: white !important;
}

/* Bootstrap button overrides */
.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    border-radius: var(--radius-btn);
    font-family: var(--font-heading);
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 9px 22px;
    color: white;
    transition: all 0.25s ease;
}
.btn-primary:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    color: white;
    transform: translateY(-2px);
}
.btn-primary:focus,
.btn-primary:active:focus {
    box-shadow: 0 0 0 3px var(--primary-ring);
}

/* Icon ghost buttons in forms */
button[style*="background:none"],
button[style*="background: none"] {
    background: transparent !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius) !important;
    padding: 5px 8px !important;
    cursor: pointer;
    color: var(--text-muted);
    transition: all 0.2s;
}

button[style*="background:none"]:hover,
button[style*="background: none"]:hover {
    background: var(--danger-light) !important;
    color: var(--danger) !important;
    border-color: #f5a5a5 !important;
}

/* =====================================================
   TABLE
   ===================================================== */
.table-wrapper {
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-xs);
    overflow: hidden;
    margin-bottom: 28px;
}

.uk-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin: 0 !important;
}

.uk-table thead {
    background: #fafafa;
}

.uk-table thead tr {
    border-bottom: 1px solid var(--border) !important;
    background: transparent !important;
}

.uk-table th {
    padding: 13px 18px !important;
    text-align: left !important;
    font-family: var(--font-heading) !important;
    font-size: 9px !important;
    font-weight: 500 !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    color: var(--text-muted) !important;
    background: transparent !important;
    white-space: nowrap;
}

.uk-table td {
    padding: 14px 18px !important;
    color: var(--text-primary) !important;
    border-bottom: 1px solid var(--border) !important;
    vertical-align: middle;
    font-size: 13px;
}

.uk-table tbody tr:last-child td {
    border-bottom: none !important;
}

.uk-table-striped tbody tr:nth-of-type(odd) {
    background: transparent !important;
}

.uk-table-striped tbody tr:nth-of-type(even) {
    background: #fafafa !important;
}

.uk-table tbody tr {
    transition: background 0.15s;
}

.uk-table tbody tr:hover {
    background: #f5f5f5 !important;
}

/* =====================================================
   BADGES
   ===================================================== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-family: var(--font-heading);
    font-size: 9px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    white-space: nowrap;
}

.badge-success { background: var(--success-light); color: var(--success-text); }
.badge-danger  { background: var(--danger-light);  color: var(--danger-text); }
.badge-warning { background: var(--warning-light); color: var(--warning-text); }
.badge-primary { background: var(--primary);       color: #ffffff; }
.badge-neutral { background: #ebebeb; color: #555555; }

/* =====================================================
   ALERTS (UIKit overrides)
   ===================================================== */
.uk-alert {
    border-radius: var(--radius) !important;
    padding: 14px 18px !important;
    margin-bottom: 22px !important;
    border: 1px solid transparent !important;
    font-size: 13px !important;
}

.uk-alert-success {
    background: var(--success-light) !important;
    color: var(--success-text) !important;
    border-color: #a3dfc0 !important;
    border-left: 4px solid var(--success) !important;
}

.uk-alert-danger {
    background: var(--danger-light) !important;
    color: var(--danger-text) !important;
    border-color: #f5a5a5 !important;
    border-left: 4px solid var(--danger) !important;
}

.uk-alert-warning {
    background: var(--warning-light) !important;
    color: var(--warning-text) !important;
    border-color: #fcd34d !important;
    border-left: 4px solid var(--warning) !important;
}

/* =====================================================
   FORMS
   ===================================================== */
label,
.uk-form-label {
    display: block;
    margin-bottom: 6px;
    font-family: var(--font-heading) !important;
    font-size: 10px !important;
    font-weight: 500 !important;
    letter-spacing: 1.5px !important;
    text-transform: uppercase !important;
    color: var(--text-secondary) !important;
}

input[type="text"],
input[type="email"],
input[type="number"],
input[type="password"],
input[type="date"],
input[type="search"],
select,
textarea,
.uk-input,
.uk-select,
.uk-textarea {
    width: 100% !important;
    padding: 10px 14px !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius) !important;
    font-size: 13px !important;
    color: var(--text-primary) !important;
    background: var(--surface) !important;
    font-family: var(--font-body) !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
    outline: none !important;
    line-height: 1.5 !important;
}

input:focus,
select:focus,
textarea:focus,
.uk-input:focus,
.uk-select:focus,
.uk-textarea:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px var(--primary-ring) !important;
}

.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 3px var(--primary-ring);
    border-color: var(--primary);
}

/* =====================================================
   LINKS
   ===================================================== */
a {
    color: var(--text-primary);
    text-decoration: none;
}

a:hover {
    color: var(--text-secondary);
    text-decoration: underline;
}

/* =====================================================
   UIKit container override
   ===================================================== */
.uk-container {
    max-width: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* =====================================================
   FOCUS RING (accessibility)
   ===================================================== */
:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* =====================================================
   SCROLLBAR
   ===================================================== */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #d0d0d0; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #aaaaaa; }

/* =====================================================
   UTILITY
   ===================================================== */
.text-muted   { color: var(--text-muted) !important; }
.text-success { color: var(--success) !important; }
.text-danger  { color: var(--danger) !important; }

/* =====================================================
   INVOICE DETAIL PAGE
   ===================================================== */

/* Full-bleed dark header (extends outside page-content padding) */
.invoice-header {
    background: var(--primary);
    color: white;
    padding: 36px 36px 40px;
    margin: -32px -36px 36px;
}

.invoice-title {
    font-family: var(--font-heading);
    font-size: 30px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: white;
    margin: 0 0 8px;
    line-height: 1.2;
}

.invoice-subtitle {
    font-family: var(--font-body);
    font-size: 12px;
    color: rgba(255,255,255,0.55);
    margin: 0;
    letter-spacing: 0.5px;
}

/* Status badges on dark bg */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 7px 18px;
    border-radius: var(--radius-full);
    font-family: var(--font-heading);
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    white-space: nowrap;
}

.status-completed  { background: rgba(24,160,90,0.2);  color: #6ee7b7; border: 1px solid rgba(24,160,90,0.3); }
.status-processing { background: rgba(217,119,6,0.2);  color: #fcd34d; border: 1px solid rgba(217,119,6,0.3); }
.status-pending    { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.7); border: 1px solid rgba(255,255,255,0.15); }

/* Section dividers */
.section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 14px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.section-header h3 {
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 0;
}

/* Info cards grid */
.info-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px 22px;
    margin-bottom: 16px;
    transition: box-shadow 0.2s;
}

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

.info-label {
    font-family: var(--font-heading);
    font-size: 9px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin: 0 0 6px;
}

.info-value {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.4;
}

/* Order block */
.order-section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 20px;
}

.order-title {
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.order-badge {
    background: var(--primary);
    color: white;
    padding: 4px 14px;
    border-radius: var(--radius-full);
    font-size: 10px;
    letter-spacing: 1px;
}

/* Address block inside order */
.address-section {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 18px 20px;
    margin-top: 20px;
}

.address-title {
    font-family: var(--font-heading);
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin: 0 0 12px;
}

/* Totals block */
.totals-summary {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px 28px;
    margin: 32px 0;
}

.total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
}

.total-row:last-child { border-bottom: none; }

.total-label {
    font-family: var(--font-heading);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
}

.total-amount {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.grand-total .total-label {
    font-size: 11px;
    color: var(--text-primary);
}

.grand-total .total-amount {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 500;
    letter-spacing: 1px;
}

/* Tracking */
.tracking-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 18px 22px;
    margin-bottom: 12px;
    transition: box-shadow 0.2s;
}

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

.tracking-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-heading);
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-primary) !important;
    text-decoration: none !important;
    padding: 7px 18px;
    border: 1px solid var(--primary);
    border-radius: var(--radius-btn);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.tracking-link:hover {
    background: var(--primary) !important;
    color: white !important;
    transform: translateY(-1px);
    text-decoration: none !important;
}

/* Action buttons row */
.action-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

/* =====================================================
   INVOICE FORM SECTIONS
   ===================================================== */

/* Visual section within a card */
.form-section {
    margin-bottom: 32px;
}

.form-section:last-child { margin-bottom: 0; }

.form-section-title {
    font-family: var(--font-heading);
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

/* Products block inside form */
.product-block {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 10px;
    position: relative;
}

/* Totals strip at bottom of form */
.invoice-totals-strip {
    background: var(--primary);
    color: white;
    border-radius: var(--radius-lg);
    padding: 24px 28px;
    margin-top: 8px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: center;
}

.invoice-totals-strip label,
.invoice-totals-strip .uk-form-label {
    color: rgba(255,255,255,0.6) !important;
}

.invoice-totals-strip input,
.invoice-totals-strip .uk-input {
    background: rgba(255,255,255,0.08) !important;
    border-color: rgba(255,255,255,0.15) !important;
    color: white !important;
    font-size: 16px !important;
    font-weight: 600 !important;
}

/* =====================================================
   HAMBURGER BUTTON
   ===================================================== */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 38px;
    height: 38px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    transition: background 0.2s, border-color 0.2s;
}

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

.hamburger-line {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
    transform-origin: center;
}

/* Animation croix quand actif */
.hamburger-btn.is-active .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.hamburger-btn.is-active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.hamburger-btn.is-active .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* =====================================================
   SIDEBAR OVERLAY (mobile)
   ===================================================== */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 99;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.sidebar-overlay.active {
    opacity: 1;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 900px) {
    .hamburger-btn {
        display: flex;
    }

    .sidebar-overlay {
        display: block;
    }

    .sidebar {
        transform: translateX(-100%) !important;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        z-index: 200 !important;
    }

    .sidebar.open {
        transform: translateX(0) !important;
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.25);
    }

    .main-content { margin-left: 0; }
    .page-content { padding: 18px; }
    .topbar { padding: 0 18px; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
    h2 { font-size: 17px; }
}
