:root {
    --bg-primary: #0a0d0a;
    --bg-secondary: #141814;
    --bg-card: rgba(20, 24, 20, 0.6);
    --bg-card-hover: rgba(20, 24, 20, 0.8);
    --bg-sidebar: #0f120f;
    --text-primary: #e8e6d5;
    --text-secondary: #a8a68f;
    --text-muted: #6b6952;
    --accent-primary: #8b8a5c;
    --accent-secondary: #b5a879;
    --accent-gold: #c4b896;
    --military-green: #4a5240;
    --military-green-light: #6a7258;
    --military-olive: #5a5d42;
    --border-color: rgba(139, 138, 92, 0.1);
    --success: #6a7258;
    --warning: #b5a879;
    --danger: #8b5a5a;
    --gradient-military: linear-gradient(135deg, #8b8a5c 0%, #b5a879 100%);
    --gradient-tactical: linear-gradient(135deg, rgba(139, 138, 92, 0.1) 0%, rgba(181, 168, 121, 0.1) 100%);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    display: flex;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    /* Anti-FOUC: hide until auth completes */
    opacity: 0;
    transition: opacity 0.15s ease-in;
}

body.loaded {
    opacity: 1;
}

body::before,
body::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    pointer-events: none;
    z-index: 0;
}

body::before {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(139, 138, 92, 0.25) 0%, transparent 70%);
    top: -200px;
    left: -200px;
    animation: floatBubble1 25s ease-in-out infinite;
}

body::after {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(74, 82, 64, 0.2) 0%, transparent 70%);
    bottom: -150px;
    right: -150px;
    animation: floatBubble2 20s ease-in-out infinite;
}

.main-content::before {
    content: '';
    position: fixed;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(106, 114, 88, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: floatBubble3 30s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes floatBubble1 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(100px, 150px) scale(1.1);
    }
    66% {
        transform: translate(-50px, 100px) scale(0.9);
    }
}

@keyframes floatBubble2 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(-120px, -100px) scale(1.15);
    }
}

@keyframes floatBubble3 {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
    }
    25% {
        transform: translate(-45%, -55%) scale(1.05);
    }
    50% {
        transform: translate(-55%, -50%) scale(0.95);
    }
    75% {
        transform: translate(-50%, -45%) scale(1.02);
    }
}

/* Sidebar */
.sidebar {
    width: clamp(220px, 15vw, 240px);
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    padding: 20px 14px;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
}

.sidebar::-webkit-scrollbar {
    width: 6px;
}

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

.sidebar::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
    padding: 20px 16px;
    background: linear-gradient(135deg, rgba(139, 138, 92, 0.1) 0%, rgba(74, 82, 64, 0.1) 100%);
    border: 1.5px solid rgba(139, 138, 92, 0.3);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(196, 184, 150, 0.1);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.logo:hover {
    border-color: rgba(139, 138, 92, 0.5);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(196, 184, 150, 0.2);
    transform: translateY(-2px);
}

.logo::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(196, 184, 150, 0.08), transparent);
    animation: logoShine 4s ease-in-out infinite;
}

@keyframes logoShine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(0deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(0deg);
    }
}

.logo-icon {
    width: 68px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 2px 8px rgba(139, 138, 92, 0.5));
}

.logo-text {
    font-size: 16px;
    font-weight: 700;
    background: var(--gradient-military);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 12px;
    font-weight: 500;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.nav-item.active {
    background: var(--gradient-military);
    color: #0a0d0a;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(139, 138, 92, 0.3);
}

.nav-item svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.nav-divider {
    margin: 16px 0 8px 0;
    padding: 0 16px;
}

.nav-divider span {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.help-center {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    position: relative;
}

.help-icon {
    width: 32px;
    height: 32px;
    background: var(--gradient-military);
    color: #0a0d0a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(139, 138, 92, 0.3);
}

.help-icon svg {
    width: 18px;
    height: 18px;
}

.help-content h4 {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
}

.help-content p {
    font-size: 11px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 4px;
}

.help-link {
    color: var(--accent-secondary);
    cursor: pointer;
}

.contact-btn {
    width: 100%;
    padding: 12px;
    background: var(--gradient-military);
    border: none;
    border-radius: 10px;
    color: #0a0d0a;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(139, 138, 92, 0.4);
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: clamp(220px, 15vw, 240px);
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

/* Header */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-bottom: 2px solid rgba(139, 138, 92, 0.2);
    background: linear-gradient(180deg, rgba(10, 13, 10, 0.95) 0%, rgba(20, 24, 20, 0.9) 100%);
    backdrop-filter: blur(20px);
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    gap: 20px;
}

.header-title-section {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.header-title {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.header-subtitle {
    font-size: 22px;
    font-weight: 700;
    background: var(--gradient-military);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

/* Desktop - center title */
@media (min-width: 769px) {
    .header-title-section {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        align-items: center;
        text-align: center;
    }
}

.search-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 11px 16px;
    width: 350px;
    transition: all 0.3s ease;
}

.search-bar:focus-within {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(139, 138, 92, 0.15);
}

.search-bar svg {
    width: 20px;
    height: 20px;
    color: var(--text-muted);
}

.search-bar input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 14px;
}

.search-bar input::placeholder {
    color: var(--text-muted);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logout-btn {
    height: 44px;
    padding: 0 18px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-primary);
}

.logout-btn svg {
    flex-shrink: 0;
}

.logout-text {
    font-size: 14px;
    font-weight: 600;
}

.logout-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: #ef4444;
    color: #ef4444;
    transform: translateY(-2px);
}

.logout-btn:hover svg {
    animation: logout-slide 0.6s ease-in-out;
}

@keyframes logout-slide {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(4px); }
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.user-profile:hover {
    border-color: var(--accent-primary);
}

.user-profile img {
    width: 36px;
    height: 36px;
    border-radius: 10px;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.user-role {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Dashboard & Page Content */
.dashboard-content,
.page-content {
    flex: 1;
    padding: 20px 24px;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    z-index: 1;
    max-width: 100%;
    width: 100%;
}

/* Stats Row */
.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.stat-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 18px;
    transition: all 0.3s ease;
    min-height: 240px;
}

.stat-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(139, 138, 92, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

.stat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.stat-title {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-title svg {
    width: 16px;
    height: 16px;
}

.time-filter,
.filter-select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 6px 12px;
    color: var(--text-primary);
    font-size: 12px;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
}

.time-filter:hover,
.filter-select:hover {
    border-color: var(--accent-primary);
}

.stat-actions {
    display: flex;
    gap: 8px;
}

.icon-btn {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.icon-btn:hover {
    background: rgba(139, 138, 92, 0.15);
    border-color: var(--accent-primary);
    color: var(--accent-gold);
}

.stat-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.project-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.project-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.project-details {
    flex: 1;
}

.project-name {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 4px;
    display: block;
}

.project-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.project-subvalue {
    font-size: 11px;
    color: var(--text-muted);
}

.mini-chart {
    margin-top: 8px;
}

/* Balance Card */
.balance-card {
    display: flex;
    flex-direction: column;
}

.balance-value {
    margin-bottom: 20px;
}

.balance-value h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 6px;
}

.balance-change {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
}

.balance-change.positive {
    color: var(--success);
}

.balance-change.negative {
    color: var(--danger);
}

.balance-change svg {
    width: 12px;
    height: 12px;
}

.donut-chart {
    display: flex;
    justify-content: center;
    margin-top: auto;
}

/* Models List */
.models-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.model-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.model-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 12px;
    flex-shrink: 0;
}

.model-info {
    flex: 1;
    min-width: 0;
}

.model-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    display: block;
    margin-bottom: 6px;
}

.model-progress {
    display: flex;
    align-items: center;
    gap: 8px;
}

.progress-bar {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.model-percentage {
    font-size: 11px;
    color: var(--text-muted);
    min-width: 32px;
}

.model-stats {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.model-value {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

.model-change {
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 4px;
}

.model-change.positive {
    color: var(--success);
    background: rgba(74, 222, 128, 0.1);
}

.model-change.negative {
    color: var(--danger);
    background: rgba(239, 68, 68, 0.1);
}

/* Charts Row */
.charts-row {
    display: grid;
    grid-template-columns: 1.7fr 1fr;
    gap: 16px;
}

.chart-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 18px;
    transition: all 0.3s ease;
}

.chart-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(139, 138, 92, 0.4);
}

.chart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.chart-header h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.chart-tabs {
    display: flex;
    gap: 8px;
    background: rgba(255, 255, 255, 0.03);
    padding: 4px;
    border-radius: 10px;
}

.tab-btn {
    padding: 6px 12px;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    color: var(--text-primary);
}

.tab-btn.active {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.see-all-btn {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.see-all-btn:hover {
    background: rgba(139, 138, 92, 0.15);
    border-color: var(--accent-primary);
    color: var(--accent-gold);
}

.chart-container {
    margin-bottom: 20px;
}

.chart-legend {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.legend-label {
    color: var(--text-secondary);
}

.legend-value {
    font-weight: 600;
    color: var(--text-primary);
}

/* Agents List */
.agents-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
}

.agent-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    transition: all 0.3s ease;
}

.agent-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-primary);
    transform: translateX(4px);
}

.agent-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.agent-info {
    flex: 1;
    min-width: 0;
}

.agent-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    display: block;
    margin-bottom: 4px;
}

.agent-status {
    font-size: 10px;
    color: var(--text-muted);
}

.agent-stats {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.agent-requests {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

.agent-badge {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
}

.agent-badge.success {
    background: rgba(74, 222, 128, 0.1);
    color: var(--success);
}

.agent-badge.warning {
    background: rgba(251, 191, 36, 0.1);
    color: var(--warning);
}

.create-agent-btn {
    width: 100%;
    padding: 11px;
    background: var(--gradient-military);
    border: none;
    border-radius: 10px;
    color: #0a0d0a;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.create-agent-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(139, 138, 92, 0.5);
}

.create-agent-btn svg {
    width: 20px;
    height: 20px;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Desktop large */
@media (max-width: 1600px) {
    .charts-row {
        grid-template-columns: 1fr;
    }
}

/* Tablet landscape */
@media (max-width: 1200px) {
    .stats-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .charts-row {
        grid-template-columns: 1fr;
    }
}

/* Tablet portrait */
@media (max-width: 992px) {
    .stats-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-card {
        padding: 20px;
    }

    .stat-value {
        font-size: 28px;
    }

    .stat-label {
        font-size: 12px;
    }
}

/* Mobile landscape / Small tablet */
@media (max-width: 768px) {
    /* Sidebar - hide by default on mobile */
    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        height: 100vh;
        z-index: 1000;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .sidebar.active {
        transform: translateX(0);
    }

    /* Main content */
    .main-content {
        margin-left: 0;
        width: 100%;
    }

    /* Header */
    .header {
        padding: 12px 16px;
        flex-wrap: wrap;
        gap: 12px;
    }

    .header-title-section {
        flex: 1;
        min-width: 150px;
    }

    .header-title {
        font-size: 10px;
        letter-spacing: 1.5px;
    }

    .header-subtitle {
        font-size: 18px;
    }

    .search-bar {
        width: 100%;
        max-width: 100%;
        order: 3;
    }

    .header-actions {
        gap: 8px;
    }

    .user-profile {
        padding: 6px 10px;
        gap: 8px;
    }

    #userAvatar {
        width: 32px;
        height: 32px;
    }

    .user-info {
        display: none;
    }

    .logout-btn {
        padding: 0 12px;
        height: 38px;
    }

    .logout-text {
        display: none;
    }

    /* Dashboard content */
    .dashboard-content {
        padding: 16px;
    }

    .stats-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .stats-card {
        padding: 18px;
    }

    .stat-icon {
        width: 48px;
        height: 48px;
    }

    .stat-value {
        font-size: 24px;
    }

    .stat-label {
        font-size: 11px;
    }

    .charts-row {
        gap: 16px;
    }

    .chart-card {
        padding: 20px;
    }

    .chart-header h3 {
        font-size: 16px;
    }

    /* Quick actions */
    .quick-actions {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .action-card {
        padding: 16px;
    }

    /* Activity feed */
    .activity-feed {
        padding: 16px;
    }

    .activity-item {
        padding: 12px;
    }

    /* Fuel cards */
    .fuel-card-grid {
        grid-template-columns: 1fr;
    }

    /* Dashboard Events Carousel - Mobile */
    .dashboard-events-container.dashboard-events-full-bleed {
        width: 100vw;
        position: relative;
        left: 50%;
        right: 50%;
        margin-left: -50vw;
        margin-right: -50vw;
        padding-left: 0;
        padding-right: 0;
        min-height: 200px;
        overflow: hidden;
    }

    .dashboard-events-container.dashboard-events-full-bleed::after {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        bottom: 20px;
        width: 80px;
        background: linear-gradient(to left,
            rgba(10, 13, 10, 1) 0%,
            rgba(10, 13, 10, 0.95) 20%,
            rgba(10, 13, 10, 0.7) 50%,
            rgba(10, 13, 10, 0) 100%);
        pointer-events: none;
        z-index: 2;
        display: block;
        opacity: 1;
    }

    .dashboard-events-scroll {
        gap: 12px;
        padding: 8px 16px 20px 16px;
        min-height: 180px;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
    }

    .dashboard-event-card {
        min-width: 85%;
        max-width: 85%;
        width: 85%;
        padding: 18px;
        flex-shrink: 0;
        scroll-snap-align: start;
    }

    .dashboard-event-card:first-child {
        margin-left: 0;
    }

    .dashboard-event-card:last-child {
        margin-right: 0;
    }

    .dashboard-event-title {
        font-size: 13px;
        line-height: 1.3;
    }

    .dashboard-event-date-value {
        font-size: 12px;
    }

    .dashboard-event-date-single .day {
        font-size: 28px;
    }

    .dashboard-event-date-single .month-year {
        font-size: 12px;
    }
}

/* Mobile portrait */
@media (max-width: 480px) {
    .header {
        padding: 10px 12px;
    }

    .header-subtitle {
        font-size: 16px;
    }

    .dashboard-content {
        padding: 12px;
    }

    .stats-card {
        padding: 16px;
    }

    .stat-icon {
        width: 40px;
        height: 40px;
    }

    .stat-value {
        font-size: 20px;
    }

    .chart-card {
        padding: 16px;
    }

    .chart-header h3 {
        font-size: 14px;
    }

    .action-card h3 {
        font-size: 14px;
    }

    .action-card p {
        font-size: 11px;
    }

    /* Modal adjustments */
    .modal-content {
        width: 95%;
        margin: 20px;
        padding: 20px;
    }

    .logout-btn svg {
        width: 18px;
        height: 18px;
    }

    /* Dashboard Events Carousel - Small Mobile */
    .dashboard-events-container.dashboard-events-full-bleed {
        width: 100vw;
        position: relative;
        left: 50%;
        right: 50%;
        margin-left: -50vw;
        margin-right: -50vw;
        min-height: 220px;
        overflow: hidden;
    }

    .dashboard-events-container.dashboard-events-full-bleed::after {
        width: 60px;
        background: linear-gradient(to left,
            rgba(10, 13, 10, 1) 0%,
            rgba(10, 13, 10, 0.9) 30%,
            rgba(10, 13, 10, 0.5) 60%,
            rgba(10, 13, 10, 0) 100%);
    }

    .dashboard-events-scroll {
        gap: 16px;
        padding: 8px 12px 20px 12px;
        min-height: 200px;
    }

    .dashboard-event-card {
        min-width: 90%;
        max-width: 90%;
        width: 90%;
        padding: 16px;
        flex-shrink: 0;
    }

    .dashboard-event-card:first-child {
        margin-left: 0;
    }

    .dashboard-event-card:last-child {
        margin-right: 0;
    }

    .dashboard-event-title {
        font-size: 13px;
        line-height: 1.4;
    }

    .dashboard-event-status {
        font-size: 9px;
        padding: 4px 8px;
    }

    .dashboard-event-date-label {
        font-size: 10px;
    }

    .dashboard-event-date-value {
        font-size: 12px;
    }

    .dashboard-event-date-single {
        padding: 16px 0;
    }

    .dashboard-event-date-single .day {
        font-size: 32px;
    }

    .dashboard-event-date-single .month-year {
        font-size: 12px;
    }

    .dashboard-event-progress-header {
        font-size: 11px;
    }

    .dashboard-event-progress-bar {
        height: 6px;
    }
}

/* Mobile hamburger menu */
.mobile-menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-primary);
}

.mobile-menu-toggle:hover {
    background: rgba(180, 165, 91, 0.1);
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
}

/* Overlay for mobile sidebar */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

/* Scrollbar */
.dashboard-content::-webkit-scrollbar {
    width: 8px;
}

.dashboard-content::-webkit-scrollbar-track {
    background: transparent;
}

.dashboard-content::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

.dashboard-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fuel liquid shimmer effect */
@keyframes shimmer {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

/* Diesel liquid - estático com reflexo */
.fuel-liquid-diesel {
    position: relative;
    overflow: hidden;
}

.fuel-liquid-diesel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        110deg,
        transparent 0%,
        transparent 40%,
        rgba(255, 255, 255, 0.15) 50%,
        transparent 60%,
        transparent 100%
    );
    background-size: 200% 100%;
    animation: shimmer 4s linear infinite;
    pointer-events: none;
}

/* Gasolina liquid - estático com reflexo */
.fuel-liquid-gasolina {
    position: relative;
    overflow: hidden;
}

.fuel-liquid-gasolina::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        110deg,
        transparent 0%,
        transparent 40%,
        rgba(255, 255, 255, 0.2) 50%,
        transparent 60%,
        transparent 100%
    );
    background-size: 200% 100%;
    animation: shimmer 4s linear infinite;
    pointer-events: none;
}

.stat-card,
.chart-card {
    animation: slideIn 0.5s ease forwards;
}

.stat-card:nth-child(1) {
    animation-delay: 0.1s;
}

.stat-card:nth-child(2) {
    animation-delay: 0.2s;
}

.stat-card:nth-child(3) {
    animation-delay: 0.3s;
}

/* Selection */
::selection {
    background: rgba(139, 138, 92, 0.3);
    color: #e8e6d5;
}

/* Operations Page Specifics */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.page-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}
.events-carousel-container {
    margin-bottom: 32px;
    position: relative;
    width: 100%;
}
.carousel-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.events-carousel {
    display: flex;
    gap: 16px;
    overflow-x: scroll;
    overflow-y: hidden;
    flex-wrap: nowrap;
    padding: 4px 4px 20px 4px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-primary) transparent;
    width: 100%;
}
.tabs-container {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 18px;
    animation: slideIn 0.5s ease forwards;
}
.tab-header {
    display: flex;
    gap: 8px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 16px;
    background: rgba(10, 13, 10, 0.5);
    padding: 6px;
    border-radius: 10px;
}
.tab-content {
    padding: 8px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}
.tab-pane {
    display: none;
    animation: slideIn 0.4s ease forwards;
    width: 100%;
    max-width: 100%;
}
.tab-pane.active {
    display: block;
}
.tab-pane h2 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}
.tab-pane p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}
.carousel-header { /* This class is no longer used, but keeping for safety in case of partial updates */
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.events-carousel::-webkit-scrollbar {
    height: 8px;
}

.events-carousel::-webkit-scrollbar-track {
    background: rgba(139, 138, 92, 0.1);
    border-radius: 4px;
    margin: 0 4px;
}

.events-carousel::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 4px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.events-carousel::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(90deg, var(--accent-secondary), var(--accent-gold));
    background-clip: padding-box;
}

.mini-card {
    flex: 0 0 180px;
    min-width: 180px;
    padding: 16px;
    background: linear-gradient(135deg, rgba(20, 24, 20, 0.9) 0%, rgba(10, 13, 10, 0.95) 100%);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.mini-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-military);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mini-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-gold);
    box-shadow: 0 8px 20px rgba(139, 138, 92, 0.15);
}

.mini-card:hover::before {
    opacity: 1;
}

.mini-card.active {
    border-color: var(--accent-secondary);
    box-shadow: 0 0 20px rgba(181, 168, 121, 0.3), 0 4px 12px rgba(139, 138, 92, 0.2);
    background: linear-gradient(135deg, rgba(139, 138, 92, 0.15) 0%, rgba(20, 24, 20, 0.95) 100%);
}

.mini-card.active::before {
    opacity: 1;
}

.mini-card-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 10px;
    line-height: 1.3;
}

.mini-card-date {
    font-size: 10px;
    font-weight: 600;
    color: var(--accent-gold);
    letter-spacing: 0.3px;
}

.mini-card.completed {
    opacity: 0.6;
    background: linear-gradient(135deg, rgba(74, 82, 64, 0.2) 0%, rgba(10, 13, 10, 0.9) 100%);
}

.mini-card.completed::before {
    background: linear-gradient(90deg, #4ade80, #22c55e);
    opacity: 1;
}

.mini-card.completed .mini-card-title {
    color: var(--text-muted);
    text-decoration: line-through;
}

.mini-card.completed .mini-card-date {
    color: #4ade80;
}

/* Add Event Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transform: scale(0.95);
    transition: all 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
    font-size: 18px;
    color: var(--text-primary);
}

.close-modal-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 28px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.close-modal-btn:hover {
    color: var(--text-primary);
}

.modal-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-group input {
    width: 100%;
    padding: 12px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    transition: all 0.2s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(139, 138, 92, 0.15);
}

/* Document Cards */
.document-card {
    padding: 18px;
    background: linear-gradient(135deg, rgba(20, 24, 20, 0.6) 0%, rgba(10, 13, 10, 0.8) 100%);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    overflow: hidden;
    min-height: 160px;
}

.document-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-military);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.document-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent-gold);
    box-shadow: 0 6px 20px rgba(139, 138, 92, 0.2);
}

.document-card:hover::before {
    opacity: 1;
}

.document-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 2px;
}

.document-header svg {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
}

.document-header span {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    line-height: 1.3;
}

.document-card p {
    font-size: 11px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
    flex: 1;
}

.btn-upload {
    margin-top: auto;
    padding: 9px 14px;
    background: rgba(139, 138, 92, 0.1);
    border: 1px solid var(--accent-primary);
    border-radius: 7px;
    color: var(--accent-gold);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    white-space: nowrap;
}

.btn-upload:hover {
    background: var(--gradient-military);
    border-color: var(--accent-gold);
    color: var(--bg-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 138, 92, 0.3);
}

.btn-upload svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
    background: rgba(10, 13, 10, 0.5);
    border-bottom-left-radius: 14px;
    border-bottom-right-radius: 14px;
}

/* Events Scroll Container - Novo Carrossel */
.events-scroll-container {
    margin-bottom: 32px;
    width: 100%;
    max-width: calc(100vw - 280px - 48px);
    overflow: hidden;
    position: relative;
}

.events-scroll {
    display: flex;
    flex-direction: row;
    gap: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 8px 4px 20px 4px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    cursor: grab;
    user-select: none;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.events-scroll:active {
    cursor: grabbing;
}

.events-scroll::-webkit-scrollbar {
    height: 6px;
}

.events-scroll::-webkit-scrollbar-track {
    background: rgba(139, 138, 92, 0.1);
    border-radius: 3px;
}

.events-scroll::-webkit-scrollbar-thumb {
    background: var(--gradient-military);
    border-radius: 3px;
}

.events-scroll::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #c4b15a 0%, #a89c5c 100%);
}

/* Event Mini Cards - Novo Design */
.event-mini-card {
    flex: 0 0 200px;
    min-width: 200px;
    max-width: 200px;
    padding: 14px;
    background: linear-gradient(135deg, rgba(20, 24, 20, 0.8) 0%, rgba(10, 13, 10, 0.9) 100%);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.event-mini-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-military);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 10px 10px 0 0;
}

.event-mini-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-gold);
    box-shadow: 0 8px 20px rgba(139, 138, 92, 0.25);
}

.event-mini-card:hover::before {
    opacity: 1;
}

.event-mini-card.today {
    border-color: var(--accent-gold);
    box-shadow: 0 0 20px rgba(181, 168, 121, 0.3);
}

.event-mini-card.today::before {
    opacity: 1;
}

.event-mini-card.completed {
    opacity: 0.7;
    background: linear-gradient(135deg, rgba(74, 82, 64, 0.3) 0%, rgba(10, 13, 10, 0.9) 100%);
}

.event-mini-card.completed::before {
    background: linear-gradient(90deg, #4ade80, #22c55e);
    opacity: 1;
}

.event-mini-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
}

.event-mini-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-primary);
    line-height: 1.3;
    flex: 1;
}

.event-mini-actions {
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.event-mini-card:hover .event-mini-actions {
    opacity: 1;
}

.event-action-btn {
    padding: 4px;
    background: rgba(139, 138, 92, 0.15);
    border: 1px solid rgba(139, 138, 92, 0.3);
    border-radius: 4px;
    color: var(--accent-gold);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.event-action-btn:hover {
    background: var(--accent-primary);
    border-color: var(--accent-gold);
    transform: scale(1.1);
}

.event-mini-date {
    font-size: 10px;
    font-weight: 600;
    color: var(--accent-gold);
    letter-spacing: 0.3px;
}

.event-mini-progress {
    display: flex;
    align-items: center;
    gap: 6px;
}

.event-progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(139, 138, 92, 0.2);
    border-radius: 2px;
    overflow: hidden;
    margin: 6px 0;
}

.event-progress-fill {
    height: 100%;
    background: var(--gradient-military);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.event-mini-footer {
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid rgba(139, 138, 92, 0.15);
}

.event-dashboard-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 9px;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.event-dashboard-toggle:hover {
    color: var(--text-secondary);
}

.event-dashboard-toggle input[type="checkbox"] {
    width: 14px;
    height: 14px;
    cursor: pointer;
    accent-color: var(--accent-gold);
}

.toggle-label {
    white-space: nowrap;
    user-select: none;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 10px;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.checkbox-label:hover {
    background: rgba(139, 138, 92, 0.1);
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--accent-gold);
}

.btn-primary,
.btn-secondary {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: var(--gradient-military);
    color: var(--bg-primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 138, 92, 0.4);
}

.btn-secondary {
    background: rgba(139, 138, 92, 0.1);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.btn-secondary:hover {
    background: rgba(139, 138, 92, 0.2);
    color: var(--text-primary);
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--gradient-military);
    color: var(--bg-primary);
}

.btn-primary:hover {
    box-shadow: 0 4px 15px rgba(139, 138, 92, 0.3);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--bg-card-hover);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

/* ===== DASHBOARD EVENTS CAROUSEL ===== */
.dashboard-events-container {
    margin-bottom: 32px;
    width: calc(100vw - 280px - 48px);
    position: relative;
    min-height: 250px;
}

/* Gradient overlay to indicate scrollable content */
.dashboard-events-container::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 20px;
    width: 60px;
    background: linear-gradient(to left, rgba(10, 13, 10, 1) 0%, rgba(10, 13, 10, 0) 100%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.dashboard-events-container.has-scroll::after {
    opacity: 1;
}

.dashboard-events-scroll {
    display: flex;
    flex-direction: row;
    gap: 20px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 8px 4px 20px 4px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    cursor: grab;
    user-select: none;
    -ms-overflow-style: none;
    scrollbar-width: none;
    min-height: 200px;
}

.dashboard-events-scroll:active {
    cursor: grabbing;
}

.dashboard-events-scroll::-webkit-scrollbar {
    display: none;
}





















.dashboard-events-scroll::-webkit-scrollbar {
    height: 6px;
}

.dashboard-events-scroll::-webkit-scrollbar-track {
    background: rgba(139, 138, 92, 0.1);
    border-radius: 3px;
}

.dashboard-events-scroll::-webkit-scrollbar-thumb {
    background: var(--gradient-military);
    border-radius: 3px;
}

.dashboard-event-card {
    flex: 0 0 auto;
    min-width: 280px;
    max-width: 280px;
    width: 280px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(20, 24, 20, 0.8) 0%, rgba(10, 13, 10, 0.9) 100%);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
    vertical-align: top;
    box-sizing: border-box;
}

.dashboard-event-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-gold);
    box-shadow: 0 8px 20px rgba(139, 138, 92, 0.25);
}

.dashboard-event-card.today {
    border-color: var(--accent-gold);
    box-shadow: 0 0 20px rgba(181, 168, 121, 0.3);
}

.dashboard-event-card.completed {
    opacity: 0.7;
    background: linear-gradient(135deg, rgba(74, 82, 64, 0.3) 0%, rgba(10, 13, 10, 0.9) 100%);
}

.dashboard-event-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 16px;
}

.dashboard-event-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex: 1;
}

.dashboard-event-status {
    font-size: 9px;
    padding: 4px 8px;
    background: rgba(74, 205, 128, 0.2);
    border-radius: 6px;
    color: #4ade80;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dashboard-event-dates {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.dashboard-event-date-item {
    text-align: center;
}

.dashboard-event-date-label {
    font-size: 10px;
    color: var(--text-muted);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dashboard-event-date-value {
    font-size: 13px;
    color: var(--accent-gold);
    font-weight: 600;
}

.dashboard-event-date-single {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
}

.dashboard-event-date-single .day {
    font-size: 32px;
    color: var(--military-green-light);
    font-weight: 700;
    margin-bottom: 4px;
}

.dashboard-event-date-single .month-year {
    font-size: 13px;
    color: var(--military-green-light);
    font-weight: 600;
    text-transform: uppercase;
}

.dashboard-event-progress {
    margin-top: 16px;
}

.dashboard-event-progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
}

.dashboard-event-progress-label {
    font-size: 11px;
    color: var(--text-secondary);
}

.dashboard-event-progress-value {
    font-size: 13px;
    color: var(--accent-gold);
    font-weight: 700;
}

.dashboard-event-progress-bar {
    height: 8px;
    background: rgba(139, 138, 92, 0.15);
    border-radius: 4px;
    overflow: hidden;
}

.dashboard-event-progress-fill {
    height: 100%;
    background: var(--gradient-military);
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* ===== LOGOUT DIALOG ===== */
.logout-dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.logout-dialog-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.logout-dialog {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
    max-width: 420px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.logout-dialog-overlay.active .logout-dialog {
    transform: scale(1) translateY(0);
}

.logout-dialog-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(139, 90, 90, 0.2) 0%, rgba(181, 168, 121, 0.1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.logout-dialog-icon svg {
    width: 32px;
    height: 32px;
    color: var(--danger);
}

.logout-dialog-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 12px;
}

.logout-dialog-message {
    font-size: 15px;
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.6;
    margin-bottom: 28px;
}

.logout-dialog-actions {
    display: flex;
    gap: 12px;
}

.logout-dialog-btn {
    flex: 1;
    padding: 14px 24px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.logout-dialog-btn-cancel {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.logout-dialog-btn-cancel:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

.logout-dialog-btn-confirm {
    background: var(--danger);
    color: var(--text-primary);
    border: 1px solid transparent;
}

.logout-dialog-btn-confirm:hover {
    background: #9d6565;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 90, 90, 0.3);
}

.logout-dialog-btn:active {
    transform: translateY(0);
}

/* ===== CHART ANIMATIONS ===== */
@keyframes chartFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

/* Canvas smooth rendering */
canvas {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    animation: chartFadeIn 0.6s ease;
}

/* Stat cards sem animação (apenas aparecem) */
.stat-card {
    opacity: 1;
}

/* Progress bars animation */
.progress-fill {
    transition: width 1.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    will-change: width;
}

/* Hover effects for interactive charts */
.stat-card:hover canvas {
    transform: scale(1.02);
    transition: transform 0.3s ease;
}

/* Number counter animation */
.stat-card [id*="total-"],
.stat-card [id*="-pronto"],
.stat-card [id*="-ferias"],
.stat-card [id*="-afastamento"] {
    animation: numberCountUp 0.6s ease;
    display: inline-block;
}


/* ===== ANIMAÇÕES AVANÇADAS DE GRÁFICOS ===== */

/* Rotação + entrada para canvas */
@keyframes rotateInChart {
    from {
        opacity: 0;
        transform: rotate(-180deg) scale(0.3);
    }
    60% {
        transform: rotate(10deg) scale(1.1);
    }
    to {
        opacity: 1;
        transform: rotate(0deg) scale(1);
    }
}

/* Fragmentos se unindo */
@keyframes fragmentsUnite {
    0% {
        opacity: 0;
        transform: scale(0.2) rotate(90deg);
        filter: blur(15px);
    }
    60% {
        transform: scale(1.15) rotate(-10deg);
        filter: blur(0px);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
        filter: blur(0px);
    }
}

/* Gráficos canvas com rotação */
canvas[id*='chart'] {
    animation: rotateInChart 1.2s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

/* Cards sem animação extra - removido */

/* Hover nos gráficos - rotação */
.stat-card:hover canvas {
    transform: rotate(3deg) scale(1.05);
    transition: transform 0.5s ease;
}

/* Custom scrollbar for vehicle/equipment lists */
#viaturas-leves-list,
#viaturas-pesadas-list,
#equipamentos-list {
    scrollbar-width: thin;
    scrollbar-color: var(--accent-gold) rgba(139, 138, 92, 0.1);
}

#viaturas-leves-list::-webkit-scrollbar,
#viaturas-pesadas-list::-webkit-scrollbar,
#equipamentos-list::-webkit-scrollbar {
    width: 6px;
}

#viaturas-leves-list::-webkit-scrollbar-track,
#viaturas-pesadas-list::-webkit-scrollbar-track,
#equipamentos-list::-webkit-scrollbar-track {
    background: rgba(139, 138, 92, 0.1);
    border-radius: 3px;
}

#viaturas-leves-list::-webkit-scrollbar-thumb,
#viaturas-pesadas-list::-webkit-scrollbar-thumb,
#equipamentos-list::-webkit-scrollbar-thumb {
    background: var(--accent-gold);
    border-radius: 3px;
}

#viaturas-leves-list::-webkit-scrollbar-thumb:hover,
#viaturas-pesadas-list::-webkit-scrollbar-thumb:hover,
#equipamentos-list::-webkit-scrollbar-thumb:hover {
    background: rgba(196, 184, 150, 0.8);
}

/* Viatura item hover */
.viatura-item:hover {
    background: rgba(139, 138, 92, 0.05);
}

/* Viatura Tooltip */
.viatura-tooltip {
    position: fixed;
    z-index: 9999;
    background: var(--bg-secondary);
    border: 1px solid var(--accent-gold);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 12px;
    color: var(--text-primary);
    line-height: 1.6;
    max-width: 320px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.viatura-tooltip.visible {
    opacity: 1;
}

.viatura-tooltip strong {
    color: var(--accent-gold);
}


