:root {
    --primary: #0d47a1;     /* sötétkék */
    --secondary: #42a5f5;   /* világoskék */
    --light: #ffffff;       /* fehér */
}

/* HEADER */
.main-header {
    background: var(--primary);
}

.site-title {
    color: var(--light);
    font-weight: bold;
}

.logo-box {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--secondary);
}

.logo-box img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* vagy cover */
}

/* MENÜ */
.nav-link {
    color: var(--light) !important;
}

.nav-link:hover {
    color: var(--secondary) !important;
}

/* CONTENT */
.content-box {
    background: var(--light);
    border: 2px solid var(--secondary);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

/* FOOTER */
.main-footer {
    background: var(--primary);
    color: var(--light);
}

.social {
    color: var(--light);
    font-size: 1.5rem;
    margin: 0 10px;
}

.social:hover {
    color: var(--secondary);
}

/* FORM DESIGN */
.custom-form {
    background: var(--light);
    padding: 30px;
    border-radius: 12px;
    border: 2px solid var(--secondary);
}

/* INPUTOK */
.form-control,
.form-select {
    border-radius: 8px;
    border: 2px solid #ddd;
    transition: all 0.2s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 0.2rem rgba(66,165,245,0.25);
}

/* RANGE */
.form-range::-webkit-slider-thumb {
    background: var(--primary);
}

.form-range::-moz-range-thumb {
    background: var(--primary);
}

/* CHECKBOX / RADIO */
.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

/* BUTTON */
.btn-primary {
    background: var(--primary);
    border: none;
    border-radius: 8px;
    transition: 0.2s;
}

.btn-primary:hover {
    background: var(--secondary);
}

/* LABEL */
.form-label {
    font-weight: 600;
    color: var(--primary);
}

/* FILE INPUT */
input[type="file"] {
    padding: 8px;
}

/* TEXTAREA */
textarea.form-control {
    resize: none;
}
/* ===================== */
/* TÁBLÁZAT KONTAINER */
/* ===================== */
.table-responsive-custom {
    width: 100%;
    overflow-x: auto;
    padding: 10px;
    background: #f5f8ff;
    border-radius: 12px;
}

/* ===================== */
/* TÁBLÁZAT */
/* ===================== */
.custom-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px; /* <-- EZ ADJA A "KÁRTYÁS" HATÁST */
}

/* FEJLÉC */
.custom-table thead th {
    background: var(--primary);
    color: var(--light);
    padding: 14px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

/* SOROK (KÁRTYA) */
.custom-table tbody tr {
    background: var(--light);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border-radius: 10px;
    transition: 0.2s;
}

/* HOVER */
.custom-table tbody tr:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.08);
}

/* CELLÁK */
.custom-table td {
    padding: 16px;
    border: none;
}

/* BAL OLDALI KIEMELÉS */
.custom-table td:first-child {
    border-left: 5px solid var(--secondary);
    border-radius: 10px 0 0 10px;
    font-weight: bold;
}

/* JOBB OLDAL LEKEREKÍTÉS */
.custom-table td:last-child {
    border-radius: 0 10px 10px 0;
}

/* ZEBRA EFFEKT (finom) */
.custom-table tbody tr:nth-child(even) {
    background: #f9fbff;
}

/* ===================== */
/* BADGE (javított) */
/* ===================== */
.badge {
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
}

.badge.success {
    background: #e8f5e9;
    color: #2e7d32;
}

.badge.warning {
    background: #fff3e0;
    color: #ef6c00;
}

.badge.danger {
    background: #ffebee;
    color: #c62828;
}

/* ===================== */
/* 📱 MOBIL NÉZET */
/* ===================== */
@media (max-width: 768px) {

    .table-responsive-custom {
        background: transparent;
        padding: 0;
    }

    .custom-table thead {
        display: none;
    }

    .custom-table,
    .custom-table tbody,
    .custom-table tr,
    .custom-table td {
        display: block;
        width: 100%;
    }

    .custom-table tr {
        margin-bottom: 15px;
        border: 2px solid var(--secondary);
        border-radius: 12px;
        padding: 10px;
        box-shadow: none;
    }

    .custom-table td {
        text-align: right;
        padding: 12px;
        position: relative;
        border-bottom: 1px solid #eee;
    }

    .custom-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 12px;
        font-weight: 600;
        color: var(--primary);
    }

    .custom-table td:first-child {
        border-left: none;
    }

    .custom-table td:last-child {
        border-bottom: none;
    }
}