/* ==========================================================================
   1. VÁLTOZÓK ÉS ALAPBEÁLLÍTÁSOK
   ========================================================================== */
:root {
    --sidebar-width: 250px;
    --bg-body: #f4f7f6;
    --bg-card: #ffffff;
    --text-main: #333333;
    --border-color: #dddddd;
    --primary-dark: #2c3e50;
    --primary-hover: #34495e;
}

[data-bs-theme="dark"] {
    --bg-body: #121212;
    --bg-card: #1e1e1e;
    --text-main: #e0e0e0;
    --border-color: #333333;
}

body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    display: flex;
    transition: background-color 0.2s ease;
}

/* ==========================================================================
   2. BEJELENTKEZŐ OLDAL (login.php)
   ========================================================================== */
.login-container {
    height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--bg-body);
}

.login-box {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    width: 350px;
}

.login-box h2 {
    margin-top: 0;
    text-align: center;
    color: var(--text-main);
}

.login-box input {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: var(--bg-card);
    color: var(--text-main);
}

.login-box button {
    width: 100%;
    padding: 12px;
    background-color: var(--primary-dark);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
}

.login-box button:hover {
    background-color: var(--primary-hover);
}

/* ==========================================================================
   3. KERETRENDSZER (Sidebar & Main Content)
   ========================================================================== */
.sidebar {
    min-width: var(--sidebar-width);
    max-width: var(--sidebar-width);
    background: #212529;
    /* Fix sötét sidebar */
    color: white;
    min-height: 100vh;
    position: fixed;
    z-index: 1000;
    transition: all 0.3s;
    border-right: 1px solid #000;
}

.sidebar .sidebar-heading {
    padding: 20px;
    font-size: 1.2rem;
    font-weight: bold;
    text-align: center;
    border-bottom: 1px solid #373b3e;
}

.sidebar .nav-link {
    color: #adb5bd;
    padding: 15px 20px;
    transition: 0.2s;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    background: #343a40;
    color: white;
}

.main-content {
    margin-left: var(--sidebar-width);
    width: calc(100% - var(--sidebar-width));
    padding: 30px;
    min-height: 100vh;
}

@media (max-width: 768px) {
    .sidebar {
        margin-left: calc(-1 * var(--sidebar-width));
    }

    .main-content {
        margin-left: 0;
        width: 100%;
    }
}

/* ==========================================================================
   4. ADATMEGJELENÍTÉS (Kártyák, Táblázatok)
   ========================================================================== */
.card {
    background-color: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    color: var(--text-main);
}

/* Táblázat modernizálása */
.table {
    color: var(--text-main) !important;
    border-color: var(--border-color) !important;
}

.table thead th {
    background-color: rgba(0, 0, 0, 0.02);
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
    font-weight: 600;
}

[data-bs-theme="dark"] .table-light {
    background-color: #2c2c2c !important;
    color: #ffffff !important;
}

/* ==========================================================================
   5. SPECIÁLIS ÁLLAPOTOK & KOMPONENSEK
   ========================================================================== */
/* Inaktív felhasználó */
.user-inactive {
    filter: grayscale(1);
    opacity: 0.6;
    background-color: rgba(0, 0, 0, 0.05) !important;
}

.inactive-label {
    font-size: 0.7rem;
    color: #666;
    font-weight: bold;
    text-transform: uppercase;
    display: block;
}

/* Tooltip egyediesítése */
.tooltip-inner {
    background-color: var(--bg-card) !important;
    color: var(--text-main) !important;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.tooltip-danger .tooltip-inner {
    border: 1px solid #dc3545 !important;
}

/* Hibaüzenetek */
.error-msg {
    color: #e74c3c;
    background: #fdeaea;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
    text-align: center;
    font-size: 14px;
}


/* Jármű darabszám jelvény a cím mellett */
.badge-count {
    font-size: 0.5em !important;
    vertical-align: middle;
    opacity: 0.8;
}

/* Alosztály specifikus színek kényszerítése (ha a Bootstrap nem elég) */
.badge-alosztaly-cbp {
    background-color: #0dcaf0 !important;
    color: #000;
}

.badge-alosztaly-ci {
    background-color: #ffc107 !important;
    color: #000;
}

.badge-alosztaly-default {
    background-color: #212529 !important;
    color: #fff;
}


