:root {
    /* Dark Theme (Default) */
    --bg-color: #0B0F19;
    --surface-color: rgba(255, 255, 255, 0.03);
    --surface-border: rgba(255, 255, 255, 0.08);
    --text-primary: #F8FAFC;
    --text-secondary: #94A3B8;
    
    --primary: #3B82F6;
    --primary-hover: #2563EB;
    --success: #10B981;
    --success-bg: rgba(16, 185, 129, 0.15);
    --danger: #EF4444;
    --danger-hover: #DC2626;
    --danger-bg: rgba(239, 68, 68, 0.15);
    --warning: #F59E0B;
    --warning-bg: rgba(245, 158, 11, 0.15);
    --info: #3B82F6;
    --info-bg: rgba(59, 130, 246, 0.15);
    --ps3-color: #8B5CF6;
    --ps3-bg: rgba(139, 92, 246, 0.15);
    --ps4-color: #06B6D4;
    --ps4-bg: rgba(6, 182, 212, 0.15);

    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 9999px;
    --transition: all 0.3s ease;
    --glass-blur: blur(12px);
    
    --grad-1: rgba(59, 130, 246, 0.15);
    --grad-2: rgba(139, 92, 246, 0.15);
}

[data-theme="light"] {
    --bg-color: #F1F5F9;
    --surface-color: rgba(255, 255, 255, 0.8);
    --surface-border: rgba(0, 0, 0, 0.08);
    --text-primary: #0F172A;
    --text-secondary: #475569;
    
    --grad-1: rgba(59, 130, 246, 0.08);
    --grad-2: rgba(139, 92, 246, 0.08);
    
    --success-bg: rgba(16, 185, 129, 0.1);
    --danger-bg: rgba(239, 68, 68, 0.1);
    --warning-bg: rgba(245, 158, 11, 0.1);
    --info-bg: rgba(59, 130, 246, 0.1);
    --ps3-bg: rgba(139, 92, 246, 0.1);
    --ps4-bg: rgba(6, 182, 212, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    background-image: 
        radial-gradient(circle at 15% 50%, var(--grad-1), transparent 25%),
        radial-gradient(circle at 85% 30%, var(--grad-2), transparent 25%);
    background-attachment: fixed;
    overflow-x: hidden;
    transition: var(--transition);
}

/* Typography & Utilities */
h1, h2, h3, h4 { font-weight: 600; }
.w-100 { width: 100%; }

code {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.85rem;
}

/* Glassmorphism */
.glass-panel {
    background: var(--surface-color);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-lg);
    transition: background 0.3s ease, border 0.3s ease;
}

/* Layout */
.app-container {
    display: flex;
    height: 100vh;
    padding: 1rem;
    gap: 1.5rem;
}

/* Sidebar */
/* Sidebar */
.sidebar {
    width: 280px;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    flex-shrink: 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.brand-icon {
    font-size: 2.5rem;
    color: var(--primary);
}

.brand h2 {
    font-size: 1.5rem;
    line-height: 1.2;
}

.brand span {
    font-size: 1rem;
    color: var(--primary);
    font-weight: 300;
}

/* Sidebar Navigation */
.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1.2rem;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
}

.nav-item i {
    font-size: 1.25rem;
}

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

.nav-item.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.sidebar-actions {
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sidebar-availability {
    margin-top: auto;
    background: rgba(0,0,0,0.2);
    padding: 1rem;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
}

.avail-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.avail-row:last-child { margin-bottom: 0; }

/* View Panels */
.view-panel {
    display: none;
    flex-direction: column;
    gap: 1.5rem;
    animation: fadeIn 0.3s ease;
}

.view-panel.active {
    display: flex;
    flex: 1;
}

.view-panel.active > .glass-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.view-panel.active > .glass-panel > .table-container {
    flex: 1;
    max-height: none;
    min-height: 0;
}

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

/* KPI Cards */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.kpi-card {
    background: var(--surface-color);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    transition: var(--transition);
}

.kpi-card i {
    font-size: 2rem;
    width: 3.5rem;
    height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
}

.kpi-val {
    font-size: 1.5rem;
    font-weight: 700;
}

.kpi-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.kpi-green i { background: var(--success-bg); color: var(--success); }
.kpi-orange i { background: var(--warning-bg); color: var(--warning); }
.kpi-blue i { background: var(--info-bg); color: var(--info); }
.kpi-purple i { background: var(--ps3-bg); color: var(--ps3-color); }
.kpi-cyan i { background: var(--ps4-bg); color: var(--ps4-color); }
.kpi-red i { background: var(--danger-bg); color: var(--danger); }

/* Dashboard Extras */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.dash-card {
    padding: 1.5rem;
}

.dash-card-title {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
}

/* Report Tabs */
.report-tabs {
    display: flex;
    gap: 0.5rem;
    background: rgba(0,0,0,0.2);
    padding: 0.4rem;
    border-radius: var(--radius-md);
    width: fit-content;
    margin-bottom: 1rem;
}

.report-tab {
    padding: 0.6rem 1.2rem;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.report-tab.active {
    background: var(--surface-color);
    color: var(--text-primary);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}


/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.main-content::-webkit-scrollbar {
    width: 6px;
}
.main-content::-webkit-scrollbar-thumb {
    background-color: rgba(255,255,255,0.2);
    border-radius: var(--radius-full);
}

.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
}

.header-title p {
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.time-display {
    font-size: 1.75rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: 1px;
}

/* Stations Grid */
.stations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    padding-bottom: 2rem;
}

.station-card {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: var(--transition);
}

.station-card.playing {
    border-color: var(--warning);
    background: linear-gradient(145deg, rgba(245, 158, 11, 0.08), rgba(255, 255, 255, 0.03));
}

.station-card.away {
    border-color: var(--info);
    background: linear-gradient(145deg, rgba(59, 130, 246, 0.08), rgba(255, 255, 255, 0.03));
    opacity: 0.8;
}

.station-card.expiring {
    border-color: var(--danger);
    background: linear-gradient(145deg, rgba(239, 68, 68, 0.12), rgba(255, 255, 255, 0.03));
    animation: pulse 2s infinite;
}

.station-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.station-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.station-title {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.badge {
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.type-ps3 { background: var(--ps3-bg); color: var(--ps3-color); }
.type-ps4 { background: var(--ps4-bg); color: var(--ps4-color); }

.status-available { background: var(--success-bg); color: var(--success); }
.status-playing { background: var(--warning-bg); color: var(--warning); }
.status-away { background: rgba(59, 130, 246, 0.15); color: #93c5fd; }
.status-expiring { background: var(--danger-bg); color: var(--danger); animation: pulse 2s infinite; }

.station-body {
    background: rgba(0,0,0,0.2);
    border-radius: var(--radius-md);
    padding: 1rem;
    text-align: center;
    margin: 0.25rem 0;
}

.timer-display {
    font-size: 1.5rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    margin-bottom: 0.25rem;
}

.cost-preview {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.station-footer {
    display: flex;
    gap: 0.25rem;
    margin-top: auto;
}
.station-footer .btn {
    flex: 1;
    padding: 0.4rem 0.2rem;
    font-size: 0.75rem;
}

/* Buttons */
.btn {
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    color: white;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background-color: var(--primary);
}
.btn-primary:hover:not(:disabled) {
    background-color: var(--primary-hover);
}

.btn-danger {
    background-color: var(--danger);
}
.btn-danger:hover:not(:disabled) {
    background-color: var(--danger-hover);
}

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

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    width: auto;
    border-radius: var(--radius-sm, 8px);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--surface-border);
    color: var(--text-primary);
}
.btn-outline:hover:not(:disabled) {
    background-color: var(--surface-active, rgba(255,255,255,0.1));
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

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

.modal {
    width: 100%;
    max-width: 450px;
    transform: translateY(20px);
    transition: var(--transition);
    padding: 1.5rem;
}

.modal-overlay.active .modal {
    transform: translateY(0);
}

.modal-lg {
    max-width: 700px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.close-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}
.close-btn:hover {
    color: var(--text-primary);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.form-group input, .form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--surface-border);
    color: white;
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}
.form-group input:focus, .form-group select:focus {
    border-color: var(--primary);
}

.price-info {
    text-align: center;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 1.5rem 0;
    color: var(--primary);
}

/* Snacks Modal Specific */
.snacks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
    max-height: 300px;
    overflow-y: auto;
}

.snack-item {
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-md);
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.snack-item:hover {
    border-color: var(--primary);
    background: rgba(59, 130, 246, 0.1);
}

.snack-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
}

.snack-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.snack-price {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.current-snacks {
    background: rgba(0,0,0,0.2);
    border-radius: var(--radius-md);
    padding: 1rem;
}

.current-snacks h4 { margin-bottom: 0.5rem; color: var(--text-secondary); font-size: 0.9rem;}

#current-snacks-list {
    list-style: none;
    margin-bottom: 1rem;
    max-height: 150px;
    overflow-y: auto;
}

#current-snacks-list li {
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--surface-border);
    font-size: 0.9rem;
}

#current-snacks-list li .item-name {
    flex: 2;
}

#current-snacks-list li .item-qty-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-right: 1rem;
}

#current-snacks-list li .item-qty-controls button {
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    width: 22px;
    height: 22px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: var(--transition);
}

#current-snacks-list li .item-qty-controls button:hover {
    background: var(--primary);
}

#current-snacks-list li .item-price {
    font-weight: 600;
    flex: 1;
    text-align: right;
}

.snack-total {
    text-align: right;
    font-weight: 700;
    font-size: 1.1rem;
}

/* Checkout Modal Specific */
.checkout-summary {
    background: rgba(0,0,0,0.2);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.summary-row.total {
    margin-top: 1rem;
    margin-bottom: 0;
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 700;
}

.highlight-price {
    color: var(--success);
}

/* Toast System */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    min-width: 250px;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    background: var(--surface-color);
    backdrop-filter: blur(12px);
    border-left: 4px solid var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    animation: slideIn 0.3s ease forwards;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.toast.warning { border-color: var(--warning); }
.toast.danger { border-color: var(--danger); }
.toast.success { border-color: var(--success); }

.toast-icon {
    font-size: 1.25rem;
}

.toast-content h4 { font-size: 0.95rem; margin-bottom: 0.2rem; }
.toast-content p { font-size: 0.85rem; color: var(--text-secondary); }

/* Animations */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

@keyframes blinkWarning {
    0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4); border-color: var(--warning); opacity: 1; }
    50% { box-shadow: 0 0 15px rgba(245, 158, 11, 0.6); border-color: var(--warning); opacity: 0.6; }
    100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4); border-color: var(--warning); opacity: 1; }
}

.warning-blink {
    animation: blinkWarning 0.8s infinite;
    border: 1px solid var(--warning);
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeOut {
    to { opacity: 0; transform: translateX(100%); }
}

/* Summary Modal Specifics */
.filter-toolbar {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    background: rgba(0,0,0,0.2);
    padding: 0.5rem;
    border-radius: var(--radius-md);
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--surface-border);
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
    font-weight: 600;
}

.filter-btn:hover {
    color: var(--text-primary);
    border-color: rgba(255,255,255,0.2);
}

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

.filter-date {
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--surface-border);
    color: white;
    padding: 0.5rem;
    border-radius: var(--radius-md);
    outline: none;
    font-family: inherit;
    font-size: 0.9rem;
    color-scheme: dark;
}

.filter-date:focus {
    border-color: var(--primary);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.table-container {
    max-height: calc(100vh - 280px); /* Adjust based on header/tab height */
    min-height: 400px;
    overflow-y: auto;
    background: rgba(0,0,0,0.2);
    border-radius: var(--radius-md);
    border: 1px solid var(--surface-border);
}

.summary-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.summary-table th, .summary-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--surface-border);
    text-align: left;
    vertical-align: middle;
}

.summary-table th {
    background: rgba(255,255,255,0.05);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.9rem;
    position: sticky;
    top: 0;
    z-index: 1;
    white-space: nowrap;
}

.summary-table td {
    font-size: 0.9rem;
    color: var(--text-primary);
}

.summary-table tr:hover td {
    background: rgba(255,255,255,0.02);
}

.summary-table tr:last-child td {
    border-bottom: none;
}


/* Responsive */
@media (max-width: 768px) {
    body { 
        font-size: 14px; 
        background-attachment: scroll; /* Fix lag on mobile */
    }
    
    /* Disable expensive blur effects on mobile for massive performance boost */
    .glass-panel, .modal-overlay, .toast, .brand {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
    .glass-panel {
        background: var(--surface-color); /* Fallback solid color */
    }

    .app-container {
        flex-direction: column;
        padding: 0;
        gap: 0;
        height: auto;
        min-height: 100vh;
    }
    .sidebar {
        width: 100%;
        padding: 0.75rem 0.5rem;
        border-radius: 0;
        border: none;
        border-bottom: 1px solid var(--surface-border);
        position: relative; /* Removes sticky so it scrolls normally */
        background: var(--bg-color);
        flex-direction: column;
        align-items: stretch;
    }
    .brand { margin-bottom: 0.5rem; justify-content: center; gap: 0.5rem; }
    .brand-icon { font-size: 1.5rem; }
    .brand h2 { font-size: 1.1rem; }
    .brand span { font-size: 0.8rem; }
    
    .sidebar-nav {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 0.25rem;
        margin-bottom: 0.5rem;
        gap: 0.4rem;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE/Edge */
    }
    .sidebar-nav::-webkit-scrollbar { display: none; } /* Chrome/Safari */
    
    .nav-item {
        white-space: nowrap;
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
        gap: 0.4rem;
    }
    .nav-item i { font-size: 0.9rem; }
    
    .sidebar-actions { 
        display: flex; 
        flex-direction: row; 
        gap: 0.5rem; 
        margin-bottom: 0;
    }
    .sidebar-actions button {
        flex: 1;
        margin-top: 0 !important;
        padding: 0.5rem;
        font-size: 0.85rem;
    }
    
    .sidebar-availability, .theme-toggle { display: none; }
    
    .view-panel {
        padding: 1rem;
    }
    
    .view-header {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 0.5rem;
        margin-bottom: 0.5rem !important;
    }
    #view-title { font-size: 1.2rem !important; margin-bottom: 0 !important; }
    #view-subtitle { font-size: 0.75rem !important; }
    .time-display { gap: 0.5rem !important; }
    #current-time { font-size: 1.1rem !important; font-weight: bold; }
    
    .kpi-grid { 
        grid-template-columns: repeat(2, 1fr); 
        gap: 0.4rem;
    }
    .kpi-card { 
        padding: 0.5rem; 
        gap: 0.5rem;
        border-radius: var(--radius-md);
    }
    .kpi-card i {
        width: 1.8rem;
        height: 1.8rem;
        font-size: 1rem;
        border-radius: 6px;
    }
    .kpi-val { font-size: 1rem; }
    .kpi-label { font-size: 0.65rem; line-height: 1.1; }

    .dashboard-grid { grid-template-columns: 1fr; gap: 0.5rem; }
    .dash-card { padding: 0.75rem; }
    .dash-card-title { font-size: 0.9rem; margin-bottom: 0.5rem; }
    
    .stations-grid { 
        grid-template-columns: repeat(2, 1fr); 
        gap: 0.4rem; 
    }
    .station-card {
        padding: 0.6rem;
        gap: 0.5rem;
    }
    .station-title { gap: 0.2rem; }
    .station-title h3 { font-size: 0.9rem; margin: 0; }
    .badge { padding: 0.15rem 0.4rem; font-size: 0.65rem; }
    .station-body { padding: 0.5rem; margin: 0; }
    .timer-display { font-size: 1.1rem; margin-bottom: 0; }
    .cost-preview { font-size: 0.75rem; line-height: 1.2; }
    
    .station-footer {
        flex-wrap: wrap;
        gap: 0.25rem;
    }
    .station-footer .btn {
        padding: 0.3rem 0.2rem;
        font-size: 0.7rem;
        border-radius: 6px;
    }
    
    .btn { padding: 0.5rem 0.8rem; font-size: 0.85rem; }
    h2 { font-size: 1.2rem; }
    h3 { font-size: 1rem; }
    .report-tabs { grid-template-columns: 1fr 1fr; }
    .filter-toolbar { flex-direction: column; align-items: stretch; }
    .filter-btn { text-align: center; }
    
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        min-height: auto;
    }
    .summary-table td {
        white-space: nowrap;
    }
    
    .modal {
        padding: 1.5rem 1rem;
        width: 95%;
        margin: 1rem auto;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .modal-body .form-group[style*="display:flex"],
    .modal-body .form-group[style*="display: flex"] {
        flex-direction: column !important;
        gap: 0.5rem !important;
    }
    
    .form-row { grid-template-columns: 1fr !important; }
}
