/* BABE – Főoldal (BABU_buszkapu) */

:root {
    --primary: #800020;
    --primary-dark: #5c0018;
    --gold: #D4AF37;
    --gold-soft: #f5ecd3;
    --bg: #eef1f4;
    --card: #ffffff;
    --text: #1a202c;
    --muted: #718096;
    --legal: #2f855a;
    --illegal: #e53e3e;
    --radius: 12px;
    --shadow: 0 8px 24px rgba(26, 32, 44, 0.08);
}

* { box-sizing: border-box; }

body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    background: var(--babe-bg, #eef1f4);
    color: var(--text);
    margin: 0;
    padding: 16px 0 24px;
    min-height: 100vh;
}

.container { max-width: 1320px; margin: 0 auto; }

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
    background: var(--card);
    padding: 18px 28px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border-left: 6px solid var(--primary);
}

.header-left { display: flex; align-items: center; gap: 16px; }
.header-logo { height: 52px; width: auto; }
.header-container h2 { color: var(--text); margin: 0; font-size: 1.35rem; font-weight: 700; letter-spacing: -0.02em; }

.header-user {
    font-size: 0.85rem;
    color: var(--muted);
    text-align: right;
}
.header-user strong { display: block; color: var(--primary); font-size: 0.95rem; }

.service-banner {
    background: linear-gradient(90deg, #c53030, #9b2c2c);
    color: #fff;
    padding: 14px 20px;
    margin-bottom: 20px;
    border-radius: var(--radius);
    text-align: center;
    font-size: 1rem;
    font-weight: 700;
    border: 2px solid var(--gold);
    box-shadow: var(--shadow);
}

.input-card {
    background: var(--card);
    padding: 22px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    border-left: 4px solid var(--primary);
}

.gate-form { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; }
.form-group { display: flex; flex-direction: column; }
.form-group label {
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.input-plate {
    font-size: 1.25rem;
    font-weight: 800;
    padding: 10px 14px;
    border: 2px solid #cbd5e0;
    border-radius: 8px;
    width: 190px;
    text-transform: uppercase;
    text-align: center;
    letter-spacing: 0.08em;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.input-plate:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(128, 0, 32, 0.15);
}

.select-type, .input-time {
    font-size: 0.95rem;
    font-weight: 600;
    padding: 11px 12px;
    border: 2px solid #cbd5e0;
    border-radius: 8px;
    background: white;
    height: 46px;
    transition: border-color 0.2s;
}
.select-type:focus, .input-time:focus { outline: none; border-color: var(--primary); }

.btn {
    padding: 11px 20px;
    border: none;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
    height: 46px;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-success {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: 1px solid var(--gold);
    box-shadow: 0 4px 12px rgba(128, 0, 32, 0.3);
}
.btn-success:hover { box-shadow: 0 6px 16px rgba(128, 0, 32, 0.4); }

.btn-modify { background: #e2e8f0; color: #4a5568; }
.btn-modify.active {
    background: var(--gold);
    color: var(--text);
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.5);
}

.btn-excel { background: #38a169; color: white; }
.btn-excel-all { background: #2b6cb0; color: white; }
.btn-danger {
    background: #e53e3e;
    color: white;
    margin-left: auto;
}
.btn-danger:hover { background: #c53030; }

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

@media (max-width: 900px) {
    .dashboard-grid { grid-template-columns: 1fr; }
}

.lane-card {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
    display: flex;
    flex-direction: column;
    min-height: 340px;
}
.lane-card.legal { border-top: 5px solid var(--legal); }
.lane-card.illegal { border-top: 5px solid var(--illegal); }

.lane-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 0 14px;
    padding-bottom: 12px;
    border-bottom: 2px solid #edf2f7;
}
.lane-title h3 { margin: 0; font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }

.counter-badge { font-size: 0.85rem; font-weight: 800; padding: 5px 12px; border-radius: 20px; }
.legal .counter-badge { background: #c6f6d5; color: #22543d; }
.illegal .counter-badge { background: #fed7d7; color: #9b2c2c; }

.bus-list { list-style: none; padding: 0; margin: 0; overflow-y: auto; max-height: 420px; }
.bus-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-bottom: 1px solid #edf2f7;
    transition: background 0.15s;
}
.bus-item:hover { background: #f8fafc; }

.plate-badge {
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 1rem;
    font-weight: 800;
    background: #edf2f7;
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid #cbd5e0;
}
.time-badge { font-size: 0.75rem; color: var(--muted); font-weight: 600; margin-left: 10px; }

.btn-row-delete {
    background: none;
    border: none;
    color: var(--illegal);
    font-weight: bold;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
}
.btn-row-delete:hover { background: #fed7d7; }

.empty-info {
    text-align: center;
    color: #a0aec0;
    font-style: italic;
    margin: auto 0;
    padding: 24px;
    font-size: 0.9rem;
}

.lock-banner {
    background: #fffaf0;
    border: 1px solid #feebc8;
    color: #dd6b20;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 16px;
    display: none;
    text-align: center;
}

.stats-card {
    background: var(--card);
    padding: 22px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border-top: 4px solid var(--gold);
    margin-bottom: 20px;
}
.stats-card h3 {
    margin: 0 0 16px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text);
}

.stats-card-hint {
    display: block;
    margin-top: 4px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: none;
    color: var(--muted);
    letter-spacing: 0;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    text-align: center;
}
@media (max-width: 600px) { .stats-grid { grid-template-columns: 1fr; } }

.stats-box {
    background: linear-gradient(180deg, #fafbfc, #f1f5f9);
    padding: 16px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}
.stats-num { font-size: 1.75rem; font-weight: 800; color: var(--primary); margin-bottom: 4px; }
.stats-label { font-size: 0.75rem; color: var(--muted); font-weight: 600; }
