/* ParkControl — Premium Design System */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@500;600;700&display=swap');

:root {
    --bg-primary: #0a0b10;
    --bg-secondary: rgba(15, 17, 23, 0.85);
    --bg-card: rgba(22, 24, 34, 0.8);
    --bg-hover: rgba(255, 255, 255, 0.03);
    
    --accent: #3b82f6;
    --accent-light: #60a5fa;
    --success: #22c55e;
    --success-light: #4ade80;
    --danger: #ef4444;
    --danger-light: #f87171;
    --warning: #f59e0b;
    --warning-light: #fbbf24;
    
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.6);
    --text-muted: rgba(255, 255, 255, 0.35);
    
    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);
    
    --radius: 16px;
    --radius-sm: 12px;
    --radius-xs: 8px;
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.15);
    --shadow-md: 0 4px 24px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.4);
    
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s ease;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    background-image: radial-gradient(ellipse at top, rgba(59,130,246,0.03) 0%, transparent 60%),
                      radial-gradient(ellipse at bottom right, rgba(139,92,246,0.02) 0%, transparent 50%);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

button {
    font-family: inherit;
    border: none;
    cursor: pointer;
    transition: var(--transition-fast);
    font-weight: 700;
    letter-spacing: 0.3px;
}

input, select {
    font-family: inherit;
    border: none;
    outline: none;
}

/* ========== ANIMATIONS ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes countPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes dangerPulse {
    0%, 100% {
        border-color: rgba(239, 68, 68, 0.5);
        box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    }
    50% {
        border-color: rgba(239, 68, 68, 1);
        box-shadow: 0 0 30px rgba(239, 68, 68, 0.3), 0 4px 24px rgba(0, 0, 0, 0.3);
    }
}

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

@keyframes toastOut {
    to {
        opacity: 0;
        transform: translateY(20px);
    }
}

/* ========== LOGIN PAGE ========== */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-box {
    text-align: center;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 60px 80px;
    max-width: 500px;
    width: 100%;
    box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    animation: fadeInUp 0.5s ease;
}

.login-logo {
    font-size: 80px;
    margin-bottom: 24px;
    filter: drop-shadow(0 4px 12px rgba(59, 130, 246, 0.3));
}

.login-title {
    font-size: 36px;
    font-weight: 900;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #ffffff, rgba(255, 255, 255, 0.7));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 48px;
}

.login-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.login-btn {
    padding: 24px 32px;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.3px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-decoration: none;
    color: white;
    transition: var(--transition-fast);
}

.login-btn-primary {
    background: linear-gradient(135deg, var(--accent), #2563eb);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.35);
}

.login-btn-primary:hover {
    box-shadow: 0 6px 25px rgba(59, 130, 246, 0.5);
    transform: translateY(-2px);
}

.login-btn-primary:active {
    transform: scale(0.97);
}

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

.login-btn-secondary:hover {
    border-color: var(--border-hover);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-1px);
}

.login-btn-secondary:active {
    transform: scale(0.97);
}

.login-footer {
    font-size: 13px;
    color: var(--text-muted);
}

/* ========== GUARD PAGE (index.html) ========== */
.guard-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg-secondary);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.guard-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 800;
}

.guard-time {
    font-size: 28px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    font-family: 'JetBrains Mono', monospace;
    color: var(--accent-light);
}

.guard-capacity {
    font-size: 28px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
}

.guard-admin-btn {
    width: 48px;
    height: 48px;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 50%;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.guard-admin-btn:hover {
    background: linear-gradient(135deg, var(--accent), #2563eb);
    border-color: var(--accent);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.35);
    transform: translateY(-1px);
}

.guard-admin-btn:active {
    transform: scale(0.95);
}

/* Main content area */
#main-content {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 24px;
}

.state-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 48px;
    max-width: 800px;
    width: 100%;
    text-align: center;
    box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    animation: fadeInUp 0.4s ease;
    transition: var(--transition);
}

.state-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.state-card.warning {
    border-color: rgba(245, 158, 11, 0.3);
    background: linear-gradient(135deg, var(--bg-card), rgba(245, 158, 11, 0.03));
}

.state-card.danger {
    border-color: rgba(239, 68, 68, 0.5);
    background: linear-gradient(135deg, var(--bg-card), rgba(239, 68, 68, 0.03));
    animation: dangerPulse 1.5s infinite;
}

.state-card.success {
    border-color: rgba(34, 197, 94, 0.3);
    background: linear-gradient(135deg, var(--bg-card), rgba(34, 197, 94, 0.03));
}

.state-title {
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.plate-display {
    font-size: 64px;
    font-weight: 900;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 8px;
    margin: 32px 0;
    line-height: 1;
    background: linear-gradient(135deg, #ffffff, rgba(255, 255, 255, 0.8));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.plate-partial {
    font-size: 48px;
    margin: 24px 0;
    font-family: 'JetBrains Mono', monospace;
}

.type-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 24px;
    font-weight: 700;
    margin: 24px 0;
    box-shadow: var(--shadow-sm);
}

.info-text {
    font-size: 20px;
    color: var(--text-secondary);
    margin: 16px 0;
}

.big-number {
    font-size: 96px;
    font-weight: 900;
    color: var(--accent-light);
    line-height: 1;
    animation: countPulse 0.4s ease;
    filter: drop-shadow(0 4px 16px rgba(59, 130, 246, 0.3));
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    overflow: hidden;
    margin: 24px 0;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    border-radius: 4px;
    transition: width 0.5s ease;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.4);
}

/* Buttons */
.btn-huge {
    width: 100%;
    padding: 32px;
    font-size: 28px;
    font-weight: 900;
    letter-spacing: 0.3px;
    border-radius: var(--radius-sm);
    margin-top: 24px;
    transition: var(--transition-fast);
}

.btn-huge.primary {
    background: linear-gradient(135deg, var(--accent), #2563eb);
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.35);
}

.btn-huge.primary:hover {
    box-shadow: 0 6px 25px rgba(59, 130, 246, 0.5);
    transform: translateY(-1px);
}

.btn-huge.primary:active {
    transform: scale(0.97);
}

.btn-huge.success {
    background: linear-gradient(135deg, var(--success), var(--success-light));
    color: white;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.35);
}

.btn-huge.success:hover {
    box-shadow: 0 6px 25px rgba(34, 197, 94, 0.5);
    transform: translateY(-1px);
}

.btn-huge.success:active {
    transform: scale(0.97);
}

.btn-huge.danger {
    background: linear-gradient(135deg, var(--danger), #dc2626);
    color: white;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.35);
}

.btn-huge.danger:hover {
    box-shadow: 0 6px 25px rgba(239, 68, 68, 0.5);
    transform: translateY(-1px);
}

.btn-huge.danger:active {
    transform: scale(0.97);
}

.btn-secondary {
    padding: 16px 24px;
    font-size: 18px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    margin-top: 16px;
    transition: var(--transition-fast);
}

.btn-secondary:hover {
    border-color: var(--border-hover);
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-1px);
}

.btn-secondary:active {
    transform: scale(0.97);
}

.btn-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 24px;
}

.btn-grid-item {
    padding: 24px;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.3px;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

/* Input */
.input-huge {
    width: 100%;
    padding: 24px;
    font-size: 32px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(10px);
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    text-align: center;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 4px;
    transition: var(--transition-fast);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.input-huge:focus {
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1), inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.input-regular {
    width: 100%;
    padding: 16px;
    font-size: 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    margin-top: 12px;
    transition: var(--transition-fast);
}

.input-regular:focus {
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

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

/* Events feed */
.events-feed {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border);
    padding: 24px;
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.2);
}

.events-list {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.event-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 12px;
    border-radius: var(--radius-xs);
    font-size: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: var(--transition-fast);
    animation: slideInLeft 0.3s ease;
}

.event-item:hover {
    background: var(--bg-hover);
}

.event-icon {
    font-size: 24px;
}

.event-time {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    font-family: 'JetBrains Mono', monospace;
    min-width: 60px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
}

.event-plate {
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
}

.event-type {
    color: var(--text-secondary);
}

.event-action {
    color: var(--text-secondary);
    margin-left: auto;
}

/* Simulation panel */
.sim-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(15, 17, 23, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(59, 130, 246, 0.3);
    z-index: 200;
    transition: transform 0.3s ease;
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.4);
}

.sim-panel.collapsed {
    transform: translateY(calc(100% - 48px));
}

.sim-header {
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    border-bottom: 1px solid var(--border);
    transition: var(--transition-fast);
}

.sim-header:hover {
    background: rgba(255, 255, 255, 0.02);
}

.sim-title {
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-light);
}

.sim-toggle {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.sim-panel.collapsed .sim-toggle {
    transform: rotate(180deg);
}

.sim-content {
    padding: 24px;
}

.sim-section {
    margin-bottom: 24px;
}

.sim-section-title {
    font-size: 12px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sim-buttons {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.sim-btn {
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: var(--radius-xs);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.sim-btn:hover {
    border-color: var(--border-hover);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
}

.sim-btn:active {
    transform: scale(0.95);
}

.sim-btn.reset {
    background: linear-gradient(135deg, var(--danger), #dc2626);
    border-color: var(--danger);
    color: white;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

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

/* ========== ADMIN PAGE ========== */
.admin-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 32px 24px;
}

.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 16px;
    animation: fadeInUp 0.4s ease;
}

.admin-title {
    font-size: 36px;
    font-weight: 900;
    background: linear-gradient(135deg, #ffffff, rgba(255, 255, 255, 0.7));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.admin-nav {
    display: flex;
    gap: 12px;
}

.admin-nav-btn {
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.admin-nav-btn:hover {
    border-color: var(--border-hover);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.admin-nav-btn.active {
    border-color: rgba(59, 130, 246, 0.3);
    background: rgba(59, 130, 246, 0.15);
    color: var(--accent-light);
}

.admin-nav-btn:active {
    transform: scale(0.97);
}

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

.metric-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transition: var(--transition);
    animation: fadeInUp 0.4s ease;
    animation-fill-mode: both;
}

.metric-card:nth-child(1) { animation-delay: 0.05s; }
.metric-card:nth-child(2) { animation-delay: 0.1s; }
.metric-card:nth-child(3) { animation-delay: 0.15s; }
.metric-card:nth-child(4) { animation-delay: 0.2s; }

.metric-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.metric-value {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.metric-label {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

.chart-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    margin-bottom: 32px;
    box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    animation: fadeInUp 0.4s ease 0.25s both;
    transition: var(--transition);
}

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

.chart-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
}

.bar-chart {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 200px;
    padding: 20px 0;
}

.bar {
    flex: 1;
    background: linear-gradient(to top, var(--accent), var(--accent-light));
    border-radius: 4px 4px 0 0;
    position: relative;
    cursor: pointer;
    transition: var(--transition-fast);
    min-width: 8px;
}

.bar:hover {
    filter: brightness(1.2);
    transform: translateY(-4px);
}

.bar-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    padding: 8px 12px;
    border-radius: var(--radius-xs);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-fast);
    margin-bottom: 8px;
    box-shadow: var(--shadow-sm);
}

.bar:hover .bar-tooltip {
    opacity: 1;
}

.vehicles-grid {
    display: grid;
    gap: 16px;
}

.vehicle-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transition: var(--transition);
    animation: fadeInUp 0.3s ease;
    animation-fill-mode: both;
}

.vehicle-card:nth-child(n) {
    animation-delay: calc(0.02s * var(--i, 0));
}

.vehicle-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

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

.vehicle-plate {
    font-size: 24px;
    font-weight: 900;
    font-family: 'JetBrains Mono', monospace;
}

.vehicle-status {
    padding: 6px 12px;
    border-radius: var(--radius-xs);
    font-size: 13px;
    font-weight: 700;
    backdrop-filter: blur(10px);
}

.vehicle-status.paid {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: var(--success-light);
}

.vehicle-status.debt {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--danger-light);
}

.vehicle-status.daily {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: var(--warning-light);
}

.vehicle-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    font-size: 14px;
    color: var(--text-secondary);
}

/* Footer */
.footer {
    text-align: center;
    padding: 20px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    margin-top: 40px;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: rgba(22, 24, 34, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: var(--radius-sm);
    padding: 14px 24px;
    box-shadow: var(--shadow-lg);
    z-index: 300;
    animation: toastIn 0.3s ease, toastOut 0.3s ease 2.7s forwards;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .login-box {
        padding: 40px 32px;
    }
    
    .guard-header {
        justify-content: center;
    }
    
    .guard-time, .guard-capacity {
        font-size: 20px;
    }
    
    .state-card {
        padding: 32px 24px;
    }
    
    .plate-display {
        font-size: 48px;
    }
    
    .btn-grid {
        grid-template-columns: 1fr;
    }
    
    .admin-title {
        font-size: 28px;
    }
    
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .sim-buttons {
        flex-wrap: wrap;
    }
    
    .admin-nav {
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .admin-nav::-webkit-scrollbar {
        display: none;
    }
}

@media (max-width: 480px) {
    .metrics-grid {
        grid-template-columns: 1fr;
    }
    
    .login-logo {
        font-size: 64px;
    }
    
    .login-title {
        font-size: 28px;
    }
    
    .login-btn {
        font-size: 18px;
        padding: 20px 28px;
    }
}

/* Hidden utility */
.hidden {
    display: none !important;
}
