/* =========================================
   CSS STYLES
   ========================================= */

/* ===== CSS Variables & Theme ===== */
:root {
    /* Brand Colors */
    --green-primary: #0A8A40;
    --green-light: #E8F5EC;
    --green-dark: #065A2A;
    --orange-primary: #FF7A00;
    --orange-light: #FFF3E6;
    --orange-dark: #CC6200;
    
    /* Neutral Colors */
    --bg-light: #F5F5F5;
    --bg-white: #FFFFFF;
    --text-dark: #2C2C2C;
    --text-gray: #6B7280;
    --text-light: #9CA3AF;
    --border-color: #E5E7EB;
    
    /* Status Colors */
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    --info: #3B82F6;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Layout */
    --sidebar-width: 260px;
    --sidebar-collapsed: 70px;
    --topbar-height: 70px;
    --border-radius: 12px;
    --border-radius-sm: 8px;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== Sidebar ===== */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: linear-gradient(180deg, var(--green-primary) 0%, var(--green-dark) 100%);
    color: white;
    z-index: 1000;
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
}

.sidebar.collapsed {
    width: var(--sidebar-collapsed);
}

.sidebar-header {
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 700;
}

.logo i {
    font-size: 1.8rem;
    color: var(--orange-primary);
}

.sidebar.collapsed .logo span {
    display: none;
}

.sidebar-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.sidebar-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
}

.sidebar-nav {
    flex: 1;
    padding: 20px 12px;
    overflow-y: auto;
}

.nav-section {
    margin-bottom: 24px;
}

.nav-section-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.5);
    padding: 0 12px;
    margin-bottom: 8px;
}

.sidebar.collapsed .nav-section-title {
    display: none;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--border-radius-sm);
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition-fast);
    margin-bottom: 4px;
    cursor: pointer;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.nav-item.active {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-weight: 500;
}

.nav-item i {
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}

.nav-item span {
    white-space: nowrap;
}

.sidebar.collapsed .nav-item span {
    display: none;
}

.nav-item .badge {
    margin-left: auto;
    background: var(--orange-primary);
    color: white;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
}

.sidebar.collapsed .nav-item .badge {
    display: none;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.role-switcher {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.role-switcher label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
}

.sidebar.collapsed .role-switcher label {
    display: none;
}

.role-switcher select {
    padding: 8px 12px;
    border-radius: var(--border-radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 0.875rem;
    cursor: pointer;
}

.role-switcher select option {
    background: var(--green-primary);
    color: white;
}

/* ===== Main Content ===== */
.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    transition: var(--transition-normal);
}

.sidebar.collapsed + .main-content {
    margin-left: var(--sidebar-collapsed);
}

/* ===== Top Bar ===== */
.topbar {
    position: sticky;
    top: 0;
    height: var(--topbar-height);
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--text-dark);
    cursor: pointer;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-light);
    padding: 10px 16px;
    border-radius: 25px;
    min-width: 280px;
}

.search-box i {
    color: var(--text-light);
}

.search-box input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 0.875rem;
    width: 100%;
    color: var(--text-dark);
}

.search-box input::placeholder {
    color: var(--text-light);
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.language-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-gray);
}

.language-selector select {
    border: none;
    background: transparent;
    font-size: 0.875rem;
    color: var(--text-dark);
    cursor: pointer;
    outline: none;
}

.notifications {
    position: relative;
}

.notification-btn {
    position: relative;
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--text-gray);
    cursor: pointer;
    padding: 8px;
    transition: var(--transition-fast);
}

.notification-btn:hover {
    color: var(--green-primary);
}

.notification-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: var(--danger);
    color: white;
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 600;
}

.notification-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 360px;
    background: var(--bg-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-xl);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition-fast);
    max-height: 400px;
    overflow-y: auto;
}

.notification-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
}

.notification-header h4 {
    font-size: 1rem;
    font-weight: 600;
}

.mark-all-read {
    background: none;
    border: none;
    color: var(--green-primary);
    font-size: 0.8rem;
    cursor: pointer;
    font-weight: 500;
}

.notification-list {
    padding: 8px;
}

.notification-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: var(--transition-fast);
}

.notification-item:hover {
    background: var(--bg-light);
}

.notification-item.unread {
    background: var(--green-light);
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notification-icon.success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.notification-icon.warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.notification-icon.info {
    background: rgba(59, 130, 246, 0.1);
    color: var(--info);
}

.notification-content {
    flex: 1;
}

.notification-content p {
    font-size: 0.875rem;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.notification-content span {
    font-size: 0.75rem;
    color: var(--text-light);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: var(--border-radius-sm);
    transition: var(--transition-fast);
}

.user-profile:hover {
    background: var(--bg-light);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--green-primary);
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-dark);
}

.user-role {
    font-size: 0.75rem;
    color: var(--text-gray);
}

.user-profile i {
    color: var(--text-light);
    font-size: 0.75rem;
}

/* ===== Dashboard Content ===== */
.dashboard-content {
    padding: 24px;
}

/* ===== Quick Actions ===== */
.quick-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.quick-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: var(--border-radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    border: none;
}

.quick-action-btn.primary {
    background: var(--green-primary);
    color: white;
}

.quick-action-btn.primary:hover {
    background: var(--green-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.quick-action-btn.secondary {
    background: var(--orange-primary);
    color: white;
}

.quick-action-btn.secondary:hover {
    background: var(--orange-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.quick-action-btn.outline {
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-dark);
}

.quick-action-btn.outline:hover {
    border-color: var(--green-primary);
    color: var(--green-primary);
}

/* ===== Stats Grid ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
}

.stat-card.green::before { background: var(--green-primary); }
.stat-card.orange::before { background: var(--orange-primary); }
.stat-card.blue::before { background: var(--info); }
.stat-card.red::before { background: var(--danger); }

.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.stat-icon.green {
    background: var(--green-light);
    color: var(--green-primary);
}

.stat-icon.orange {
    background: var(--orange-light);
    color: var(--orange-primary);
}

.stat-icon.blue {
    background: rgba(59, 130, 246, 0.1);
    color: var(--info);
}

.stat-icon.red {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.stat-trend {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.stat-trend.up {
    color: var(--success);
}

.stat-trend.down {
    color: var(--danger);
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-gray);
}

/* ===== Widget Grid ===== */
.widget-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
}

.widget {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.widget.col-4 { grid-column: span 4; }
.widget.col-6 { grid-column: span 6; }
.widget.col-8 { grid-column: span 8; }
.widget.col-12 { grid-column: span 12; }

.widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.widget-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.widget-title i {
    color: var(--green-primary);
}

.widget-actions {
    display: flex;
    gap: 8px;
}

.widget-action-btn {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    transition: var(--transition-fast);
}

.widget-action-btn:hover {
    background: var(--bg-light);
    color: var(--text-dark);
}

.widget-body {
    padding: 20px;
}

/* ===== Lists ===== */
.list-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-fast);
}

.list-item:last-child {
    border-bottom: none;
}

.list-item:hover {
    background: var(--bg-light);
}

.list-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.list-icon.produce {
    background: var(--green-light);
    color: var(--green-primary);
}

.list-icon.delivery {
    background: var(--orange-light);
    color: var(--orange-primary);
}

.list-icon.order {
    background: rgba(59, 130, 246, 0.1);
    color: var(--info);
}

.list-content {
    flex: 1;
    min-width: 0;
}

.list-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.list-subtitle {
    font-size: 0.8rem;
    color: var(--text-gray);
}

.list-meta {
    text-align: right;
    flex-shrink: 0;
}

.list-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
}

.list-time {
    font-size: 0.75rem;
    color: var(--text-light);
}

/* ===== Status Badges ===== */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.status-badge.active {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.status-badge.active::before {
    background: var(--success);
}

.status-badge.pending {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.status-badge.pending::before {
    background: var(--warning);
}

.status-badge.completed {
    background: rgba(59, 130, 246, 0.1);
    color: var(--info);
}

.status-badge.completed::before {
    background: var(--info);
}

.status-badge.alert {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.status-badge.alert::before {
    background: var(--danger);
}

/* ===== Progress Bar ===== */
.progress-container {
    margin-top: 12px;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-gray);
    margin-bottom: 6px;
}

.progress-bar {
    height: 8px;
    background: var(--bg-light);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
}

.progress-fill.green { background: var(--green-primary); }
.progress-fill.orange { background: var(--orange-primary); }
.progress-fill.blue { background: var(--info); }

/* ===== Chart Container ===== */
.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
}

/* ===== Heatmap ===== */
.heatmap-container {
    position: relative;
    height: 300px;
    background: var(--bg-light);
    border-radius: var(--border-radius-sm);
    overflow: hidden;
}

.heatmap-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-gray);
}

.heatmap-placeholder i {
    font-size: 3rem;
    margin-bottom: 12px;
    color: var(--green-primary);
    opacity: 0.5;
}

/* ===== Table ===== */
.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.data-table th {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--bg-light);
}

.data-table tbody tr {
    transition: var(--transition-fast);
}

.data-table tbody tr:hover {
    background: var(--bg-light);
}

.data-table td {
    font-size: 0.875rem;
    color: var(--text-dark);
}

/* ===== Temperature Alert ===== */
.temp-alert {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: rgba(239, 68, 68, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: var(--border-radius-sm);
    margin-bottom: 12px;
}

.temp-alert.warning {
    background: rgba(245, 158, 11, 0.05);
    border-color: rgba(245, 158, 11, 0.2);
}

.temp-alert-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.temp-alert.warning .temp-alert-icon {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.temp-alert-content {
    flex: 1;
}

.temp-alert-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
}

.temp-alert-desc {
    font-size: 0.8rem;
    color: var(--text-gray);
}

/* ===== Empty State ===== */
.empty-state {
    text-align: center;
    padding: 40px;
    color: var(--text-gray);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.3;
}

.empty-state h3 {
    font-size: 1rem;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.empty-state p {
    font-size: 0.875rem;
}

/* ===== Overlay ===== */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.overlay.show {
    display: block;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--text-light);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-gray);
}

/* ===== Dashboard Banner (NEW) ===== */
.dashboard-banner {
    background: 
        linear-gradient(90deg, rgba(10, 138, 64, 0.95) 0%, rgba(10, 138, 64, 0.8) 40%, rgba(255, 122, 0, 0.7) 100%),
        url('https://images.unsplash.com/photo-1601584115197-04ecc0da31d7?q=80&w=1000&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    background-blend-mode: normal;
    
    border-radius: var(--border-radius);
    padding: 40px;
    color: white;
    margin-bottom: 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 200px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.banner-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.banner-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.2;
}

.banner-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 24px;
    font-weight: 400;
}

.banner-actions {
    display: flex;
    gap: 16px;
}

.banner-btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-fast);
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.banner-btn.light {
    background: white;
    color: var(--green-dark);
}

.banner-btn.light:hover {
    background: var(--bg-light);
    transform: translateY(-2px);
}

.banner-btn.transparent {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: white;
    backdrop-filter: blur(4px);
}

.banner-btn.transparent:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: white;
    transform: translateY(-2px);
}

/* ===== Responsive ===== */
@media (max-width: 1200px) {
    .widget.col-4 { grid-column: span 6; }
    .widget.col-8 { grid-column: span 12; }
}

@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .search-box {
        min-width: 200px;
    }
    
    .widget.col-4,
    .widget.col-6 { 
        grid-column: span 12; 
    }
}

@media (max-width: 768px) {
    .topbar {
        padding: 0 16px;
    }
    
    .search-box {
        display: none;
    }
    
    .user-info {
        display: none;
    }
    
    .dashboard-content {
        padding: 16px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-actions {
        flex-direction: column;
    }
    
    .quick-action-btn {
        width: 100%;
        justify-content: center;
    }
    
    .notification-dropdown {
        width: 300px;
        right: -50px;
    }

    /* Banner Responsive */
    .dashboard-banner {
        padding: 24px;
        background-position: left center;
    }
    .banner-title {
        font-size: 1.5rem;
    }
    .banner-actions {
        flex-direction: column;
        width: 100%;
    }
    .banner-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .topbar-right {
        gap: 12px;
    }
    
    .language-selector {
        display: none;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
}

/* ===== Timeline Styles (Moved from JS) ===== */
.delivery-timeline {
    position: relative;
    padding-left: 30px;
}

.timeline-step {
    position: relative;
    padding-bottom: 24px;
    padding-left: 20px;
}

.timeline-step:last-child {
    padding-bottom: 0;
}

.timeline-step::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 24px;
    width: 2px;
    height: calc(100% - 10px);
    background: var(--border-color);
}

.timeline-step:last-child::before {
    display: none;
}

.timeline-step.completed::before {
    background: var(--green-primary);
}

.timeline-icon {
    position: absolute;
    left: -30px;
    top: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: var(--text-light);
}

.timeline-step.completed .timeline-icon {
    background: var(--green-primary);
    border-color: var(--green-primary);
    color: white;
}

.timeline-step.active .timeline-icon {
    background: var(--orange-primary);
    border-color: var(--orange-primary);
    color: white;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 122, 0, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(255, 122, 0, 0); }
}

.timeline-title {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.timeline-time {
    font-size: 0.8rem;
    color: var(--text-gray);
}



