/* TraxFlow Cloud - Professional Dark Dashboard Theme */

/* ==================== CSS VARIABLES ==================== */
:root {
    /* Dark Background Colors */
    --bg-primary: #0a0f1a;
    --bg-secondary: #0d1420;
    --bg-card: #111827;
    --bg-card-darker: #0c1322;
    --bg-hover: rgba(0, 212, 255, 0.05);
    --bg-input: #0c1322;
    --bg-surface: #151d2e;

    /* Accent Colors */
    --accent-cyan: #00d4ff;
    --accent-cyan-dim: rgba(0, 212, 255, 0.7);
    --accent-cyan-light: rgba(0, 212, 255, 0.15);
    --accent-orange: #f5a623;
    --accent-orange-dim: rgba(245, 166, 35, 0.8);
    --accent-green: #22c55e;
    --accent-red: #ef4444;
    --accent-purple: #a855f7;
    --accent-blue: #3b82f6;
    --accent-yellow: #eab308;

    /* Semantic Colors */
    --color-success: #22c55e;
    --color-warning: #f39c12;
    --color-danger: #e74c3c;
    --color-info: #3498db;

    /* Text Colors */
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-cyan: #00d4ff;

    /* Border Colors */
    --border-color: rgba(55, 65, 81, 0.5);
    --border-light: rgba(55, 65, 81, 0.3);
    --border-cyan: rgba(0, 212, 255, 0.3);

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
    --shadow-glow-cyan: 0 0 20px rgba(0, 212, 255, 0.15);
    --shadow-glow-green: 0 0 20px rgba(34, 197, 94, 0.15);

    /* Radius */
    --radius: 8px;
    --radius-sm: 6px;
    --radius-lg: 12px;
    --radius-xl: 16px;

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.2s ease;
    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==================== RESET & BASE ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--accent-cyan);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--accent-cyan-dim);
}

code {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    background: var(--bg-card-darker);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
    color: var(--accent-cyan);
}

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

/* ==================== SIDEBAR ==================== */
.sidebar {
    width: 280px;
    background: linear-gradient(180deg, #0f172a 0%, #0c1222 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 100;
    display: flex;
    flex-direction: column;
    animation: fadeInLeft 0.4s ease-out;
}

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

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

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(0, 212, 255, 0.3);
    border-radius: 4px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--accent-cyan);
}

/* Sidebar Header */
.sidebar-header {
    padding: 24px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.logo {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--accent-cyan) 0%, #0891b2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 212, 255, 0.25);
    transition: all var(--transition-smooth);
}

.logo-icon:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 24px rgba(0, 212, 255, 0.35);
}

.logo-icon svg {
    width: 24px;
    height: 24px;
    color: white;
}

.logo-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.logo-text {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.logo-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.15) 0%, rgba(0, 212, 255, 0.05) 100%);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 6px;
    font-size: 10px;
    font-weight: 600;
    color: var(--accent-cyan);
    text-transform: uppercase;
    letter-spacing: 1px;
    width: fit-content;
}

/* Sidebar Navigation */
.sidebar-nav {
    flex: 1;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

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

.nav-group-title {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    padding: 16px 12px 8px;
    margin-top: 8px;
}

.nav-group:first-child .nav-group-title {
    margin-top: 0;
    padding-top: 8px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 10px;
    transition: all var(--transition-smooth);
    position: relative;
    margin: 0 4px;
}

.nav-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: var(--accent-cyan);
    border-radius: 0 3px 3px 0;
    transition: height var(--transition-smooth);
}

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

.nav-item:hover .nav-item-icon {
    color: var(--accent-cyan);
    transform: scale(1.1);
}

.nav-item.active {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.12) 0%, rgba(0, 212, 255, 0.04) 100%);
    color: var(--text-primary);
    box-shadow: 0 2px 8px rgba(0, 212, 255, 0.1);
}

.nav-item.active::before {
    height: 24px;
}

.nav-item.active .nav-item-icon {
    color: var(--accent-cyan);
}

.nav-item.active .nav-item-text {
    color: var(--text-primary);
    font-weight: 600;
}

.nav-item-icon {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all var(--transition-smooth);
    flex-shrink: 0;
}

.nav-item-icon svg {
    width: 20px;
    height: 20px;
}

.nav-item-text {
    font-size: 14px;
    font-weight: 500;
    transition: color var(--transition-fast);
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: auto;
}

.user-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    transition: all var(--transition-smooth);
}

.user-card:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border-color: rgba(0, 212, 255, 0.2);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--accent-cyan) 0%, #0891b2 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 212, 255, 0.2);
}

.user-details {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.user-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

.user-logout {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    border-radius: 8px;
    transition: all var(--transition-smooth);
    flex-shrink: 0;
}

.user-logout:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--accent-red);
}

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

/* Legacy nav classes (for backwards compatibility) */
.nav-menu {
    list-style: none;
    padding: 0;
    flex: 1;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: all var(--transition-normal);
    font-size: 14px;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.nav-link:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.nav-link.active {
    background: rgba(0, 212, 255, 0.1);
    color: var(--accent-cyan);
}

.nav-icon {
    font-size: 10px;
    opacity: 0.7;
}

.nav-section {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    padding: 16px 14px 8px;
    font-weight: 600;
}

.user-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 12px 14px;
    background: var(--bg-card-darker);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
    transition: all var(--transition-smooth);
}

.user-info:hover {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.1);
}

/* ==================== MAIN CONTENT ==================== */
.main-content {
    flex: 1;
    margin-left: 280px;
    padding: 28px 32px;
    min-height: 100vh;
    background: var(--bg-primary);
    animation: fadeIn 0.4s ease-out;
}

/* Page Header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    animation: fadeInDown 0.4s ease-out;
}

.page-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--accent-cyan);
    letter-spacing: -0.5px;
}

.page-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

.page-actions {
    display: flex;
    gap: 10px;
}

/* ==================== CARDS ==================== */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 0;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all var(--transition-smooth);
    animation: fadeInUp 0.4s ease-out backwards;
}

.card:hover {
    border-color: var(--border-cyan);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    background: var(--bg-card-darker);
    border-bottom: 1px solid var(--border-light);
}

.card-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-cyan);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.card-body {
    padding: 24px;
}

.card-footer {
    padding: 16px 24px;
    background: var(--bg-card-darker);
    border-top: 1px solid var(--border-light);
}

/* ==================== STATS CARDS ==================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all var(--transition-smooth);
    animation: fadeInUp 0.4s ease-out backwards;
}

.stat-card:hover {
    border-color: var(--border-cyan);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow-cyan);
}

.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.15s; }
.stat-card:nth-child(3) { animation-delay: 0.2s; }
.stat-card:nth-child(4) { animation-delay: 0.25s; }
.stat-card:nth-child(5) { animation-delay: 0.3s; }
.stat-card:nth-child(6) { animation-delay: 0.35s; }

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
    transition: transform var(--transition-smooth);
}

.stat-card:hover .stat-value {
    transform: scale(1.05);
}

.stat-value.cyan { color: var(--accent-cyan); }
.stat-value.green { color: var(--accent-green); }
.stat-value.orange { color: var(--accent-orange); }
.stat-value.purple { color: var(--accent-purple); }

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

.stat-change {
    font-size: 11px;
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 500;
}

.stat-change.positive {
    background: rgba(34, 197, 94, 0.15);
    color: var(--accent-green);
}

.stat-change.negative {
    background: rgba(239, 68, 68, 0.15);
    color: var(--accent-red);
}

/* Dashboard Stat Card States */
.stat-card.stat-critical {
    border-color: var(--color-danger);
    background: rgba(231, 76, 60, 0.1);
}

.stat-card.stat-warning {
    border-color: var(--color-warning);
    background: rgba(243, 156, 18, 0.1);
}

.stat-alert {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-danger);
    margin-top: 8px;
}

.stat-card.stat-warning .stat-alert {
    color: var(--color-warning);
}

/* ==================== TABLES ==================== */
.table-container {
    overflow-x: auto;
    border-radius: var(--radius-sm);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

th {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: var(--bg-card-darker);
    white-space: nowrap;
}

tr {
    transition: background var(--transition-fast);
    animation: fadeInUp 0.3s ease-out backwards;
}

tbody tr:hover {
    background: var(--bg-hover);
}

tbody tr:nth-child(1) { animation-delay: 0.05s; }
tbody tr:nth-child(2) { animation-delay: 0.1s; }
tbody tr:nth-child(3) { animation-delay: 0.15s; }
tbody tr:nth-child(4) { animation-delay: 0.2s; }
tbody tr:nth-child(5) { animation-delay: 0.25s; }
tbody tr:nth-child(6) { animation-delay: 0.3s; }
tbody tr:nth-child(7) { animation-delay: 0.35s; }
tbody tr:nth-child(8) { animation-delay: 0.4s; }
tbody tr:nth-child(9) { animation-delay: 0.45s; }
tbody tr:nth-child(10) { animation-delay: 0.5s; }

/* ==================== BADGES ==================== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    transition: all var(--transition-fast);
}

.badge:hover {
    transform: scale(1.05);
}

.badge-success, .badge-active {
    background: rgba(34, 197, 94, 0.15);
    color: var(--accent-green);
}

.badge-warning {
    background: rgba(245, 166, 35, 0.15);
    color: var(--accent-orange);
}

.badge-danger, .badge-inactive {
    background: rgba(239, 68, 68, 0.15);
    color: var(--accent-red);
}

.badge-info {
    background: rgba(0, 212, 255, 0.15);
    color: var(--accent-cyan);
}

.badge-purple {
    background: rgba(168, 85, 247, 0.2);
    color: var(--accent-purple);
}

/* Role Badges */
.badge-super_admin {
    background: rgba(168, 85, 247, 0.2);
    color: var(--accent-purple);
}

.badge-customer_admin {
    background: rgba(0, 212, 255, 0.15);
    color: var(--accent-cyan);
}

.badge-outlet_manager {
    background: rgba(34, 197, 94, 0.15);
    color: var(--accent-green);
}

.badge-staff {
    background: rgba(100, 116, 139, 0.2);
    color: var(--text-secondary);
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.status-badge.status-active,
.status-badge.status-online {
    background: rgba(34, 197, 94, 0.15);
    color: var(--accent-green);
}

.status-badge.status-inactive,
.status-badge.status-offline {
    background: rgba(239, 68, 68, 0.15);
    color: var(--accent-red);
}

/* Plate Badge */
.plate-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
    background: linear-gradient(135deg, var(--bg-card-darker), var(--bg-card));
    border: 2px solid var(--accent-cyan);
    border-radius: var(--radius-sm);
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 13px;
    font-weight: 700;
    color: var(--accent-cyan);
    letter-spacing: 1px;
}

.plate-badge.large {
    padding: 10px 20px;
    font-size: 18px;
    border-width: 3px;
}

/* ==================== BUTTONS ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 20px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all var(--transition-smooth);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-orange), #e09000);
    color: #000;
}

.btn-primary:hover {
    box-shadow: 0 4px 20px rgba(245, 166, 35, 0.4);
}

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

.btn-secondary:hover {
    background: var(--bg-card);
    border-color: var(--accent-cyan);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.15);
}

.btn-cyan {
    background: linear-gradient(135deg, var(--accent-cyan), #00a8cc);
    color: #000;
}

.btn-cyan:hover {
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.4);
}

.btn-danger {
    background: linear-gradient(135deg, var(--accent-red), #c53030);
    color: white;
}

.btn-danger:hover {
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.4);
}

.btn-sm {
    padding: 7px 14px;
    font-size: 12px;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 15px;
}

/* ==================== FORMS ==================== */
.form-group {
    margin-bottom: 18px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-input,
input,
select,
textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 14px;
    transition: all var(--transition-smooth);
}

.form-input:focus,
input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
    transform: translateY(-1px);
}

.form-input::placeholder,
input::placeholder,
textarea::placeholder {
    color: var(--text-muted);
}

label {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 600;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-section {
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-light);
}

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

.form-section-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-cyan);
    margin-bottom: 18px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-light);
}

.form-help,
.help-text {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 6px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-primary);
    cursor: pointer;
}

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

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    align-items: end;
}

.error {
    color: var(--accent-red);
    font-size: 12px;
    margin-top: 4px;
}

/* Filter Forms */
.filter-form {
    width: 100%;
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    align-items: end;
}

.filter-item label {
    font-size: 11px;
    margin-bottom: 6px;
}

.filter-actions {
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

.filter-bar {
    width: 100%;
}

.filter-bar form {
    display: flex;
    gap: 12px;
}

.form-select {
    min-width: 180px;
}

/* ==================== MODAL ==================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-smooth);
    backdrop-filter: blur(4px);
}

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

.modal {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 0;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    transform: translateY(-20px) scale(0.95);
    transition: all var(--transition-smooth);
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: var(--bg-card-darker);
    border-bottom: 1px solid var(--border-light);
}

.modal-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 20px;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.modal-close:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--accent-red);
}

.modal-body {
    padding: 24px;
}

/* ==================== STATUS INDICATORS ==================== */
.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
}

.status-dot.online {
    background: var(--accent-green);
    box-shadow: 0 0 8px var(--accent-green);
    animation: pulse 2s ease-in-out infinite;
}

.status-dot.offline {
    background: var(--accent-red);
}

.status-dot.unknown {
    background: var(--text-muted);
}

/* ==================== LOADING ==================== */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
}

.spinner {
    width: 36px;
    height: 36px;
    border: 3px solid var(--border-color);
    border-top-color: var(--accent-cyan);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* ==================== TOAST NOTIFICATIONS ==================== */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 2000;
}

.toast {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 14px 20px;
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    animation: slideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 13px;
    min-width: 280px;
}

.toast.success {
    border-left: 4px solid var(--accent-green);
}

.toast.error {
    border-left: 4px solid var(--accent-red);
}

.toast.warning {
    border-left: 4px solid var(--accent-orange);
}

/* ==================== ALERTS ==================== */
.alert {
    padding: 16px 20px;
    border-radius: var(--radius);
    margin-bottom: 16px;
    font-size: 13px;
    border: 1px solid transparent;
}

.alert-warning {
    background: rgba(243, 156, 18, 0.1);
    border-color: rgba(243, 156, 18, 0.3);
    color: var(--color-warning);
}

.alert-danger {
    background: rgba(231, 76, 60, 0.1);
    border-color: rgba(231, 76, 60, 0.3);
    color: var(--color-danger);
}

.alert-success {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.3);
    color: var(--accent-green);
}

.alert-info {
    background: rgba(52, 152, 219, 0.1);
    border-color: rgba(52, 152, 219, 0.3);
    color: var(--color-info);
}

/* ==================== BREADCRUMB ==================== */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 13px;
    color: var(--text-muted);
}

.breadcrumb a {
    color: var(--text-secondary);
}

.breadcrumb a:hover {
    color: var(--accent-cyan);
}

.breadcrumb .separator {
    color: var(--text-muted);
    opacity: 0.5;
}

/* ==================== TABS ==================== */
.tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0;
}

.tab {
    padding: 12px 20px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: all var(--transition-fast);
}

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

.tab.active {
    color: var(--accent-cyan);
    border-bottom-color: var(--accent-cyan);
}

/* ==================== INFO GRID ==================== */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

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

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

/* ==================== CONTENT GRID ==================== */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 20px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

/* ==================== LOGIN PAGE ==================== */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.login-card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 40px 36px;
    width: 100%;
    max-width: 420px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg), var(--shadow-glow-cyan);
    animation: fadeInUp 0.5s ease-out;
}

.login-logo {
    text-align: center;
    margin-bottom: 32px;
}

.login-logo h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--accent-cyan);
    letter-spacing: -0.5px;
}

.login-card .page-subtitle {
    text-align: center;
    margin-bottom: 24px;
}

.login-card .btn {
    width: 100%;
    margin-top: 12px;
}

/* ==================== FEATURE LIST ==================== */
.feature-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
}

.feature-status {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--text-muted);
}

.feature-status.enabled {
    background: var(--accent-green);
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.5);
}

.feature-status.disabled {
    background: var(--accent-red);
    opacity: 0.6;
}

/* ==================== API KEY DISPLAY ==================== */
.api-key-display {
    background: var(--bg-card-darker);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 16px 20px;
    margin: 16px 0;
}

.api-key {
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 13px;
    color: var(--accent-cyan);
    word-break: break-all;
    background: transparent;
    padding: 0;
}

/* ==================== ENDPOINT LIST ==================== */
.endpoint-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.endpoint-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-card-darker);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
}

.endpoint-method {
    font-size: 10px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    background: rgba(34, 197, 94, 0.15);
    color: var(--accent-green);
}

.endpoint-url {
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 12px;
    color: var(--text-primary);
    background: transparent;
    padding: 0;
}

.endpoint-desc {
    font-size: 12px;
    color: var(--text-muted);
    margin-left: auto;
}

/* ==================== CHECK MARKS ==================== */
.check {
    color: var(--accent-green);
    font-size: 16px;
    font-weight: bold;
}

/* ==================== SECTION TITLE ==================== */
.section-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-cyan);
    margin: 20px 0 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ==================== IMAGE GALLERY ==================== */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.image-item {
    background: var(--bg-card-darker);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.vehicle-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.image-meta {
    padding: 10px 12px;
    display: flex;
    justify-content: space-between;
    font-size: 11px;
}

.image-type {
    color: var(--text-secondary);
    text-transform: uppercase;
}

.image-time {
    color: var(--text-muted);
}

/* ==================== CODE BLOCK ==================== */
.code-block,
pre {
    background: var(--bg-card-darker);
    border-radius: var(--radius-sm);
    padding: 16px;
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    overflow-x: auto;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 12px;
    line-height: 1.5;
}

/* ==================== EMPTY STATE ==================== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
    animation: fadeIn 0.5s ease-out;
}

.empty-state svg {
    width: 64px;
    height: 64px;
    margin-bottom: 20px;
    opacity: 0.4;
    animation: bounce 2s ease-in-out infinite;
}

.empty-state p {
    font-size: 14px;
}

/* ==================== TEXT UTILITIES ==================== */
.text-muted {
    color: var(--text-muted) !important;
}

.text-cyan {
    color: var(--accent-cyan) !important;
}

.text-success {
    color: var(--accent-green) !important;
}

.text-danger {
    color: var(--accent-red) !important;
}

.text-warning {
    color: var(--accent-orange) !important;
}

.text-center {
    text-align: center !important;
}

/* ==================== UTILITY CLASSES ==================== */
/* Max Width Utilities */
.max-w-sm {
    max-width: 480px;
}

.max-w-md {
    max-width: 600px;
}

.max-w-lg {
    max-width: 800px;
}

.max-w-xl {
    max-width: 900px;
}

.max-w-2xl {
    max-width: 1024px;
}

/* Margin Utilities */
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 0.25rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mt-5 { margin-top: 2rem !important; }

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 2rem !important; }

/* Padding Utilities */
.p-0 { padding: 0 !important; }
.p-3 { padding: 1rem !important; }
.p-4 { padding: 1.5rem !important; }

/* ==================== DASHBOARD TANKS OVERVIEW ==================== */
.tanks-overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
}

.tank-mini {
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    padding: 14px;
    border-left: 3px solid var(--border-color);
    transition: all var(--transition-fast);
}

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

.tank-mini.tank-critical { border-left-color: var(--color-danger); }
.tank-mini.tank-low { border-left-color: var(--color-warning); }
.tank-mini.tank-normal { border-left-color: var(--accent-green); }
.tank-mini.tank-full { border-left-color: var(--color-info); }

.tank-mini-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.tank-outlet {
    font-size: 12px;
    color: var(--accent-cyan);
    font-weight: 600;
}

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

.tank-mini-gauge {
    position: relative;
    height: 8px;
    margin-bottom: 10px;
}

.tank-mini-gauge .gauge-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: var(--bg-primary);
    border-radius: 4px;
}

.tank-mini-gauge .gauge-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: var(--accent-cyan);
    border-radius: 4px;
    transition: width var(--transition-smooth);
}

.tank-mini.tank-critical .gauge-fill { background: var(--color-danger); }
.tank-mini.tank-low .gauge-fill { background: var(--color-warning); }
.tank-mini.tank-normal .gauge-fill { background: var(--accent-green); }

.tank-mini-gauge .gauge-text {
    position: absolute;
    right: 0;
    top: -5px;
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 600;
}

.tank-mini-info {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
}

.tank-mini-info .product {
    color: var(--text-primary);
    font-weight: 500;
}

.tank-mini-info .volume {
    color: var(--text-muted);
}

/* ==================== INVENTORY PAGE ==================== */
.inventory-outlet-card {
    margin-bottom: 28px;
    padding: 24px;
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

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

.outlet-header h3 {
    margin: 0;
    font-size: 18px;
    color: var(--text-primary);
}

.outlet-header h3 a {
    color: var(--accent-cyan);
}

.outlet-name {
    font-size: 14px;
    color: var(--text-muted);
    margin-left: 10px;
    font-weight: 400;
}

.customer-badge {
    background: linear-gradient(135deg, var(--accent-cyan), #00a8cc);
    color: var(--bg-primary);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tanks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.tank-card {
    background: var(--bg-secondary);
    border-radius: var(--radius);
    padding: 18px;
    border: 2px solid var(--border-color);
    transition: all var(--transition-smooth);
}

.tank-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.tank-card.tank-critical {
    border-color: var(--color-danger);
    background: rgba(231, 76, 60, 0.08);
}

.tank-card.tank-low {
    border-color: var(--color-warning);
    background: rgba(243, 156, 18, 0.08);
}

.tank-card.tank-normal {
    border-color: var(--accent-green);
}

.tank-card.tank-full {
    border-color: var(--color-info);
}

.tank-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

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

.tank-product {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

.tank-gauge {
    position: relative;
    width: 100%;
    height: 90px;
    background: var(--bg-primary);
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: 14px;
}

.tank-gauge .gauge-fill {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, var(--accent-cyan), var(--color-info));
    transition: height var(--transition-smooth);
}

.tank-critical .tank-gauge .gauge-fill {
    background: linear-gradient(to top, #c0392b, var(--color-danger));
}

.tank-low .tank-gauge .gauge-fill {
    background: linear-gradient(to top, #d68910, var(--color-warning));
}

.tank-gauge .gauge-level {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.tank-details {
    font-size: 13px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
}

.detail-row .label {
    color: var(--text-muted);
}

.detail-row .value {
    color: var(--text-primary);
    font-weight: 500;
}

.tank-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--border-color);
}

.status-badge.status-critical {
    background: var(--color-danger);
    color: white;
}

.status-badge.status-low {
    background: var(--color-warning);
    color: white;
}

.status-badge.status-normal {
    background: var(--accent-green);
    color: white;
}

.status-badge.status-full {
    background: var(--color-info);
    color: white;
}

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

/* ==================== FILL LEVEL BAR ==================== */
.fill-level {
    width: 70px;
    height: 8px;
    background: var(--bg-card-darker);
    border-radius: 4px;
    overflow: hidden;
}

.fill-level-bar {
    height: 100%;
    border-radius: 4px;
    transition: width var(--transition-smooth);
    background-size: 200% 100%;
}

.fill-level-bar.green {
    background-image: linear-gradient(90deg, var(--accent-green), rgba(34, 197, 94, 0.7), var(--accent-green));
    animation: shimmer 2s infinite linear;
}

.fill-level-bar.yellow {
    background-image: linear-gradient(90deg, var(--accent-yellow), rgba(234, 179, 8, 0.7), var(--accent-yellow));
    animation: shimmer 2s infinite linear;
}

.fill-level-bar.orange {
    background-image: linear-gradient(90deg, var(--accent-orange), rgba(245, 166, 35, 0.7), var(--accent-orange));
    animation: shimmer 2s infinite linear;
}

.fill-level-bar.red {
    background-image: linear-gradient(90deg, var(--accent-red), rgba(239, 68, 68, 0.7), var(--accent-red));
    animation: shimmer 2s infinite linear;
}

/* ==================== LIVE LOGS ==================== */
.live-logs {
    background: var(--bg-card-darker);
    border-radius: var(--radius-sm);
    padding: 16px;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 12px;
    max-height: 240px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
}

.log-entry {
    padding: 6px 0;
    border-bottom: 1px solid var(--border-light);
}

.log-entry:last-child {
    border-bottom: none;
}

.log-time {
    color: var(--text-muted);
}

.log-info {
    color: var(--accent-cyan);
}

.log-success {
    color: var(--accent-green);
}

.log-error {
    color: var(--accent-red);
}

/* ==================== CAMERA & ZONE ==================== */
.camera-preview {
    width: 100%;
    aspect-ratio: 16/9;
    background: var(--bg-card-darker);
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border-color);
    transition: all var(--transition-smooth);
}

.camera-preview:hover {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.1);
}

.camera-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.camera-preview .placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--text-muted);
    text-align: center;
}

.zone-canvas-container {
    position: relative;
    width: 100%;
    background: var(--bg-card-darker);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.zone-canvas {
    display: block;
    width: 100%;
    cursor: crosshair;
}

/* ==================== IMAGES ==================== */
.image {
    width: 100%;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}

/* ==================== GRID UTILITIES ==================== */
.grid {
    display: grid;
    gap: 16px;
}

.grid.two {
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
}

.grid.three {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 5px rgba(0, 212, 255, 0.3); }
    50% { box-shadow: 0 0 20px rgba(0, 212, 255, 0.6); }
}

/* ==================== SCROLLBAR ==================== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-card-darker);
}

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

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-cyan);
}

/* ==================== SELECTION ==================== */
::selection {
    background: rgba(0, 212, 255, 0.3);
    color: var(--text-primary);
}

/* ==================== REDUCED MOTION ==================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .sidebar {
        display: none;
    }

    .main-content {
        margin-left: 0;
        padding: 20px;
    }

    .stats-grid,
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .page-actions {
        width: 100%;
    }

    .filter-grid {
        grid-template-columns: 1fr;
    }

    .tabs {
        flex-wrap: wrap;
    }

    .tab {
        flex: 1;
        min-width: 100px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .stats-grid,
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .tanks-grid {
        grid-template-columns: 1fr;
    }
}
