/* ======================================== */
/* Layout - Sidebar, map, grid structures   */
/* ======================================== */

/* TOP BAR */
#top {
    background: #0b0d10;
    color: #fff;
    padding: 12px;
    font-weight: bold;
    border-bottom: 1px solid #222;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 50px;
    box-sizing: border-box;
}

#top > div {
    display: flex;
    align-items: center;
    gap: 15px;
}

#company_label {
    font-size: 14px;
}

#logout_btn {
    width: auto;
    padding: 6px 12px;
    background: #dc2626;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
}

#logout_btn:hover {
    background: #b91c1c;
}

/* MAIN LAYOUT */
#layout {
    display: flex;
    height: 100vh;
    width: 100vw;
}

/* SIDEBAR */
#sidebar {
    width: 90px;
    background: #0b0d10;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-right: 1px solid #1f2228;
}

/* Sidebar buttons */
#sidebar button {
    height: 48px;
    background: #151922;
    color: #cfcfcf;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    transition: 0.2s;
}

#sidebar button:hover {
    background: #1f2530;
}

#sidebar button.active {
    background: #2563eb;
    color: #fff;
}

/* INPUTS */
input[type="text"],
input[type="number"] {
    width: 100%;
    padding: 8px;
    margin-bottom: 6px;
    border-radius: 6px;
    border: 1px solid #333;
    background: #0e1117;
    color: #fff;
}

/* Page buttons */
button {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 6px;
    background: #2563eb;
    color: #fff;
    cursor: pointer;
}

button:hover {
    background: #1d4ed8;
}

/* CHECKBOX */
input[type="checkbox"] {
    width: auto;
    margin: 0;
    transform: scale(1.2);
}

/* EVENT LIST */
#event_list {
    margin-top: 8px;
    padding: 0;
    list-style: none;
}

#event_list li {
    background: #0e1117;
    padding: 8px 10px;
    border-radius: 6px;
    margin-bottom: 6px;
    font-size: 13px;
    display: flex;
    align-items: center;
}

/* ACTIVE LIST */
#active_list {
    padding: 0;
    margin: 0;
    list-style: none;
}

#active_list .card {
    cursor: pointer;
}

/* STATS BAR */
#stats_bar {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

/* HISTORY VEHICLE LIST */
#history_vehicle_list {
    max-height: 240px;
    overflow-y: auto;
    border: 1px solid #1f2a37;
    border-radius: 8px;
    background: #0e131a;
    padding: 6px;
    margin-bottom: 10px;
}

/* HISTORY ROW */
.history-row {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

/* INPUT BIG */
.input-big {
    height: 42px;
    background: #0e131a;
    border: 1px solid #263041;
    border-radius: 10px;
    color: #fff;
    padding: 0 12px;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
}

.input-big::placeholder {
    color: #9ca3af;
}

/* BTN BIG */
.btn-big {
    height: 42px;
    width: 100%;
    background: #2563eb;
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    transition: 0.2s;
}

.btn-big:hover {
    background: #1d4ed8;
}

/* DEBUG PANEL */
#debugPanel {
    background: #000;
    color: #00ff90;
    padding: 10px;
    font-family: monospace;
    height: 140px;
    overflow: auto;
    border-top: 1px solid #222;
}

#debugBox {
    background: #0e131a;
    border: 1px solid #1f2a37;
    border-radius: 10px;
    padding: 12px;
    margin-top: 10px;
}

.debug-row {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
}

.debug-row input {
    flex: 1;
}

.debug-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.debug-grid button {
    padding: 10px;
    font-size: 13px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
}

.debug-grid button:hover {
    opacity: 0.85;
} 
