:root {
    --bg-light: #E9EDF2;
    --bg-panel: #FFFFFF;
    --border: rgba(0, 0, 0, 0.15);
    --primary: #2387E5;
    --primary-text: #FFFFFF;
    --secondary-bg: #DDE2E8;
    --text-main: #111111;
    --text-muted: #6E6E73;
    --danger: #FF3B30;
    --success: #34C759;
    --warning: #FFCC00;
    --accent: #007AFF;
    color-scheme: light;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'SF Pro Display', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    letter-spacing: -0.015em;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.02em;
}

::-webkit-scrollbar { display: none; }
body { -ms-overflow-style: none; scrollbar-width: none; }

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.logo{
    width: 32px;
    height: auto;
}

.glass-panel {
    background: var(--bg-panel);
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 24px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.08), 0 3px 10px rgba(0, 0, 0, 0.04);
}

/* --- NAVBAR --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    margin: 0;
    flex-wrap: wrap;
    gap: 1.5rem;
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(35, 135, 229, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-brand { display: flex; align-items: center; gap: 0.75rem; }
.nav-brand h1 { font-size: 1.4rem; font-weight: 800; letter-spacing: -0.04em; color: white; }

.nav-tabs {
    display: flex;
    gap: 0.3rem;
    background: rgba(255, 255, 255, 0.15);
    padding: 0.35rem;
    border-radius: 999px;
}

.tab-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.5rem 1.1rem;
    border-radius: 999px;
    transition: all 0.2s ease;
    white-space: nowrap;
    font-family: inherit;
}
.tab-btn.active {
    background: #FFFFFF;
    color: var(--primary);
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.tab-btn:hover:not(.active) { color: white; background: rgba(255,255,255,0.1); }

.nav-user { display: flex; align-items: center; gap: 1rem; }
.user-badge {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

/* --- BUTTONS --- */
.btn {
    padding: 0.75rem 1.4rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    font-family: inherit;
    letter-spacing: -0.01em;
}
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(35, 135, 229, 0.3); }
.btn-outline {
    background: #FFFFFF;
    border: 1px solid var(--border);
    color: var(--text-main);
}
.btn-outline:hover { background: #F9FAFB; border-color: #D1D5DB; }
.btn-sm { padding: 0.45rem 1rem; font-size: 0.82rem; }
.btn-danger { color: var(--danger); background: rgba(255, 69, 58, 0.1); border: none; }
.btn-danger:hover { background: rgba(255, 69, 58, 0.2); }
.btn-success { color: var(--success); background: rgba(50, 215, 75, 0.1); border: none; }
.btn-success:hover { background: rgba(50, 215, 75, 0.2); }

/* --- TAB CONTENT --- */
.tab-content { display: none; animation: fadeIn 0.35s ease; }
.tab-content.active { display: block; }
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* --- HEADER ACTIONS --- */
.header-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 0 0.5rem;
}
.header-actions h2 {
    font-weight: 700;
    font-size: 2.2rem;
    letter-spacing: -0.04em;
    color: var(--text-main);
}
.action-buttons { display: flex; gap: 0.5rem; align-items: center; flex-wrap: nowrap; }

/* --- SEGMENTED CONTROL --- */
.segmented-control {
    display: flex;
    background: #E8EDF5;
    padding: 0.25rem;
    border-radius: 12px;
    gap: 0.2rem;
}
.segment-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 0.45rem 1rem;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}
.segment-btn.active {
    background: #FFFFFF;
    color: var(--primary);
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}
.segment-btn:hover:not(.active) { color: var(--text-main); }

/* --- SEARCH BAR --- */
.search-bar-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    padding: 0 0.5rem;
}
.search-input-wrap {
    position: relative;
    flex: 1;
    max-width: 380px;
}
.search-input-wrap svg {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}
#search-input {
    width: 100%;
    background: #FFFFFF;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 0.65rem 1rem 0.65rem 2.8rem;
    color: var(--text-main);
    font-size: 0.9rem;
    font-family: inherit;
    outline: none;
    transition: all 0.2s;
}
#search-input:focus {
    border-color: rgba(255,255,255,0.25);
    background: rgba(255,255,255,0.08);
}
#search-input::placeholder { color: var(--text-muted); }

/* --- ADVANCED FILTERS (STICKER MODE) --- */
.advanced-filters-panel {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 340px;
    padding: 1.5rem;
    border-radius: 24px;
    z-index: 500;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(28, 28, 30, 0.95);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    animation: slideDown 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: top right;
}
.advanced-filters-panel.active { display: block; }

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.filters-grid-sticker {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.filter-group { display: flex; flex-direction: column; gap: 0.5rem; }
.filter-actions { display: flex; gap: 0.75rem; }

/* --- DROPDOWN --- */
.dropdown { position: relative; display: inline-block; }
.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: 110%;
    background: var(--bg-panel);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    min-width: 190px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.5);
    border: 1px solid var(--border);
    border-radius: 18px;
    z-index: 100;
    overflow: hidden;
}
.dropdown-content a,
.dropdown-content button {
    color: var(--text-main);
    padding: 11px 16px;
    text-decoration: none;
    display: block;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.92rem;
    font-weight: 500;
    font-family: inherit;
    transition: background 0.15s;
}
.dropdown-content a:hover,
.dropdown-content button:hover { background: rgba(255,255,255,0.09); }
.dropdown-content .text-danger { color: var(--danger); font-weight: 600; }
.dropdown.active .dropdown-content { display: block; animation: fadeIn 0.15s ease; }
.dropdown-divider { border: none; border-top: 1px solid var(--border); margin: 0.3rem 0; }

/* --- BENTO GRID --- */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}
.bento-card { border-radius: 32px; padding: 2rem; display: flex; flex-direction: column; }
.col-span-2 { grid-column: span 2; }
.col-span-3 { grid-column: span 3; }
.col-span-4 { grid-column: span 4; }

@media (max-width: 1024px) {
    .bento-grid { grid-template-columns: repeat(2, 1fr); }
    .col-span-4, .col-span-3 { grid-column: span 2; }
}
@media (max-width: 768px) {
    .bento-grid { grid-template-columns: 1fr; }
    .col-span-2, .col-span-3, .col-span-4 { grid-column: span 1; }
}

.bento-subtitle {
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.4rem;
    display: block;
}
.bento-title { font-size: 1.7rem; font-weight: 800; color: var(--text-main); letter-spacing: -0.04em; margin-top: 0.4rem; font-family: 'Outfit', sans-serif; }
.bento-stat-label { color: var(--text-muted); font-size: 0.88rem; font-weight: 500; }
.bento-stat-value { font-size: 2.4rem; font-weight: 800; color: var(--primary); letter-spacing: -0.04em; margin-top: 0.4rem; font-family: 'Outfit', sans-serif; }

.icon-box {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    background: rgba(255, 255, 255, 0.1);
}

.filters-bar { display: flex; gap: 0.8rem; align-items: center; flex-wrap: wrap; margin-top: 1.5rem; }
.filters-bar select, .filters-bar input[type="date"] {
    background: #FFFFFF;
    border: 1px solid rgba(0,0,0,0.15);
    color: var(--text-main);
    padding: 0.7rem 1rem;
    border-radius: 14px;
    outline: none;
    font-family: inherit;
    font-size: 0.9rem;
    transition: border-color 0.2s;
}
.filters-bar select:focus, .filters-bar input[type="date"]:focus { border-color: rgba(255,255,255,0.28); }
select option { background-color: #1c1c1e; color: white; }

.chart-card { height: 400px; }
.chart-header { margin-bottom: 1.5rem; }
.chart-container { flex: 1; position: relative; width: 100%; min-height: 0; }

/* --- TABLES --- */
/* Dropdown Menu */
.dropdown { position: relative; display: inline-block; }
.dropdown-content {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    background: rgba(28, 28, 30, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 16px;
    min-width: 200px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    z-index: 1000;
    display: none;
    padding: 8px;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.dropdown.active .dropdown-content {
    display: block;
    transform: translateY(0);
}
.dropdown-content button {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 12px 16px;
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background 0.2s;
}
.dropdown-content button:hover { background: rgba(255,255,255,0.08); }
.dropdown-content button.text-danger:hover { background: rgba(255, 69, 58, 0.15); color: var(--danger); }
.dropdown-divider { height: 1px; background: var(--border); margin: 6px 8px; }

.table-container { padding: 0.75rem; overflow-x: auto; border-radius: 32px; }
table { width: 100%; border-collapse: collapse; }
th {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 1rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
td {
    padding: 1rem 1rem;
    border-bottom: 1px solid #F0F2F5;
    font-size: 0.92rem;
    white-space: nowrap;
    color: var(--text-main);
}
tbody tr:last-child td { border-bottom: none; }
tbody tr { cursor: pointer; transition: background 0.1s; }
tbody tr:hover td { background: #F9FAFB; }
tbody tr.selected td { background: #EBF5FF; }

@media (max-width: 768px) {
    th, td { padding: 0.75rem 0.5rem; font-size: 0.82rem; }
}

@media (max-width: 414px) {
    th, td { padding: 0.6rem 0.4rem; font-size: 0.72rem; }
}

/* --- SKELETON LOADING --- */
@keyframes shimmer {
    0%   { background-position: -500px 0; }
    100% { background-position: 500px 0; }
}
.skeleton-cell {
    height: 16px;
    border-radius: 8px;
    background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 75%);
    background-size: 1000px 100%;
    animation: shimmer 1.4s infinite linear;
    width: 80%;
}
.skeleton-row td { padding: 1.1rem 1rem; }

/* --- PAGINATION --- */
.pagination-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border);
    margin-top: 0;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.pagination-info { color: var(--text-muted); font-size: 0.85rem; }
.pagination-controls { display: flex; gap: 0.4rem; align-items: center; }
.page-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.05);
    color: var(--text-main);
    cursor: pointer;
    font-size: 0.85rem;
    font-family: inherit;
    font-weight: 500;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.page-btn:hover { background: rgba(255,255,255,0.12); }
.page-btn.active { background: var(--accent); border-color: var(--accent); font-weight: 700; }
.page-btn:disabled { opacity: 0.3; cursor: not-allowed; }

/* --- MODAL --- */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}
.modal.active { display: flex; animation: fadeIn 0.2s ease; }
.modal-content {
    width: 100%;
    max-width: 820px;
    max-height: 90vh;
    padding: 2.5rem;
    overflow-y: auto;
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}
.modal-header h3 { font-size: 1.8rem; font-weight: 700; letter-spacing: -0.04em; color: var(--text-main); }
.close-btn, .close-btn-mot, .close-btn-abast, .close-btn-export {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.2s;
    border: none;
    color: var(--text-main);
    flex-shrink: 0;
}
.close-btn:hover, .close-btn-mot:hover, .close-btn-abast:hover, .close-btn-export:hover { background: rgba(255,255,255,0.2); }

.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1.25rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
label { font-size: 0.82rem; color: var(--text-muted); font-weight: 500; }

input, select, textarea {
    background: #FFFFFF;
    border: 1px solid #D1D5DB;
    border-radius: 12px;
    padding: 0.8rem 1rem;
    color: var(--text-main);
    font-size: 0.95rem;
    transition: all 0.2s;
    font-family: inherit;
    width: 100%;
}
input:focus, select:focus {
    outline: none;
    border-color: var(--primary);
    ring: 2px solid rgba(35, 135, 229, 0.1);
}
input::placeholder { color: var(--text-muted); }
input[type="file"] { padding: 0.6rem 1rem; border-style: dashed; cursor: pointer; }

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

/* --- TOAST NOTIFICATIONS --- */
#toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 9999;
    display: flex;
    flex-direction: column-reverse;
    gap: 0.75rem;
    pointer-events: none;
}
.toast {
    background: rgba(40, 40, 45, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 18px;
    padding: 1rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-main);
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    max-width: 360px;
    pointer-events: auto;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast-success { border-left: 3px solid var(--success); }
.toast-error   { border-left: 3px solid var(--danger); }
.toast-warning { border-left: 3px solid var(--warning); }
.toast-info    { border-left: 3px solid var(--accent); }
.toast-icon { font-size: 1.1rem; flex-shrink: 0; }

/* --- MOTORISTA AUTOCOMPLETE --- */
datalist { font-family: inherit; }
.motorista-select-wrap { position: relative; }

/* --- EMPTY STATE --- */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
}
.empty-state-icon { font-size: 3rem; margin-bottom: 1rem; opacity: 0.5; }
.empty-state p { font-size: 0.95rem; }

/* --- EXPORT MODAL --- */
.export-table-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}
.export-option {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 1rem 1.2rem;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-family: inherit;
}
.export-option:hover { background: rgba(255,255,255,0.1); color: white; border-color: rgba(255,255,255,0.2); }
.export-option.selected { background: rgba(10,132,255,0.2); border-color: var(--accent); color: white; }

/* --- ANALYTICS BENTO --- */
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.justify-between { justify-content: space-between; }

/* --- RESPONSIVENESS --- */
@media (max-width: 1024px) {
    .navbar { margin: 1rem; }
    .container { padding: 1.5rem; }
}

@media (max-width: 768px) {
    .navbar {
        margin: 0.5rem;
        padding: 0.8rem 1.2rem;
        border-radius: 24px;
        flex-direction: column;
        gap: 1rem;
        top: 0.5rem;
    }
    
    .nav-tabs {
        width: 100%;
        order: 3;
        background: rgba(255,255,255,0.04);
        display: flex;
        padding: 0.35rem;
    }
    
    .tab-btn {
        flex: 1;
        text-align: center;
        padding: 0.6rem 0.5rem;
        font-size: 0.8rem;
    }
    
    .nav-user {
        width: 100%;
        justify-content: space-between;
        border-top: 1px solid rgba(255,255,255,0.05);
        padding-top: 0.8rem;
    }

    .header-actions {
        flex-direction: column;
        align-items: center;
        gap: 1.2rem;
        text-align: center;
    }
    
    .header-actions h2 { 
        font-size: 1.8rem;
        margin-bottom: 0.2rem;
    }

    .segmented-control {
        width: 100%;
        max-width: 100%;
        margin: 0.5rem 0;
        padding: 0.35rem;
        display: flex;
        justify-content: flex-start;
        border-radius: 14px;
        -webkit-overflow-scrolling: touch;
        overflow-x: auto;
    }
    
    .segment-btn {
        flex: 1;
        min-width: fit-content;
        text-align: center;
        padding: 0.6rem 0.9rem;
        font-size: 0.8rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .action-buttons {
        width: 100%;
        justify-content: center;
        gap: 0.8rem;
    }
    
    .search-input-wrap {
        max-width: 100%;
    }
    
    .container { padding: 1rem; }
}

/* Specific adjustments for small mobile (iPhone X/11/12/13/14/15 375px to 414px) */
@media (max-width: 414px) {
    html { font-size: 14px; } /* Global scaling down to "decrease DPI" feel */

    .container { padding: 0.75rem; }
    
    .navbar { 
        margin: 0.5rem 0.5rem 1rem; 
        padding: 0.6rem 1rem; 
        border-radius: 20px;
    }
    
    .nav-brand h1 { font-size: 1.1rem; }
    .logo { width: 28px; }
    
    .header-actions h2 { font-size: 1.5rem; }
    
    .glass-panel { border-radius: 20px; }
    
    .btn { padding: 0.6rem 1.1rem; font-size: 0.85rem; }
    
    input, select, textarea { padding: 0.75rem 1rem; font-size: 0.9rem; }
    
    .bento-card { padding: 1.25rem; border-radius: 24px; }
    .bento-stat-value { font-size: 1.7rem; }
    .bento-title { font-size: 1.4rem; }
    
    .tab-btn { padding: 0.5rem 0.6rem; font-size: 0.75rem; }
    
    .user-info { display: none; }
    
    .search-input-wrap svg { left: 0.75rem; }
    #search-input { padding-left: 2.4rem; }

    /* Login Page Specific Overrides */
    .login-container { 
        padding: 2rem 1.25rem !important;
        max-width: 92% !important;
        margin: 0 auto;
    }
    .login-title {
        font-size: 1.8rem !important;
    }
    
    /* Table specific */
    .table-container { padding: 0.5rem; border-radius: 20px; }
    
    /* Pagination */
    .page-btn { width: 30px; height: 30px; font-size: 0.75rem; }
    .pagination-wrap { padding: 0.75rem 1rem; }
}

/* --- FOOTER --- */
.footer {
    background: #FFFFFF;
    border-top: 1px solid var(--border);
    padding: 1.5rem 2rem;
    margin-top: 4rem;
}
.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.footer-user { display: flex; align-items: center; gap: 0.8rem; }
.btn-logout {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--danger);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.6rem 1.2rem;
    border-radius: 12px;
    transition: all 0.2s;
    background: rgba(255, 59, 48, 0.08);
}
.btn-logout:hover {
    background: rgba(255, 59, 48, 0.12);
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .navbar { padding: 1rem; gap: 1rem; }
    .footer-content { flex-direction: column; gap: 1.5rem; text-align: center; }
    .footer-user { flex-direction: column; gap: 0.5rem; }
}
