body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding-bottom: 2rem;
}

header {
    
}

.sze-logo {
    max-height: clamp(32px, 3vw, 50px);
    width: auto;
}

.ahjk-logo {
    height: clamp(30px, 2.7vw, 44px);
    width: auto;
}

@media (min-width: 1400px) {
    .navbar-nav {
        flex-wrap: wrap;
        justify-content: flex-end;
    }
}

@media (max-width: 768px) {
    .sze-logo {
        max-height: 30px;
    }
    .ahjk-logo {
        height: 30px;
    }
}


.login-view-header .sze-logo {
    max-height: 80px;
    width: auto;
}
.login-view-header .ahjk-logo {
    height: 80px;
    width: auto;
}
.login-view-header .vr {
    height: 60px !important;
    opacity: 0.5 !important;
}

@media (max-width: 768px) {
    .login-view-header .sze-logo {
        max-height: 60px;
    }
    .login-view-header .ahjk-logo {
        height: 60px;
    }
}


.table-responsive {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border-radius: 0.25rem;
}

.card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.nav-tabs .nav-link.active {
    font-weight: bold;
    border-top: 3px solid #0d6efd;
}

.flashes {
    list-style: none;
    padding: 0;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: #333;
}

a:hover {
    color: #007bff;
}

.flashes {
    list-style: none;
    padding: 10px;
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    margin-bottom: 1rem;
}

footer {
    margin-top: 3rem;
    border-top: 1px solid #ccc;
    padding-top: 1rem;
    text-align: center;
    font-size: 0.9em;
    color: #666;
}

/* Nyelvválasztó (HU / EN) - lásd static/js/i18n.js */
.i18n-pending body { visibility: hidden; }
.lang-switch { display: flex; gap: 4px; align-items: center; }
.lang-switch-corner { position: absolute; top: 8px; right: 12px; }
header { position: relative; }
.lang-btn {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 2px 6px; border: 1px solid #dee2e6; border-radius: 4px;
    background: #fff; color: #6c757d; font-size: 0.75rem; font-weight: 600; line-height: 1.2;
    opacity: 0.65; cursor: pointer;
}
.lang-btn svg { border: 1px solid rgba(0, 0, 0, 0.15); border-radius: 2px; }
.lang-btn:hover { opacity: 1; }
.lang-btn.active { opacity: 1; color: #212529; border-color: #0d6efd; box-shadow: 0 0 0 1px #0d6efd inset; }

/* ---- Oldalsó menü (bejelentkezett felhasználók) ---- */
.app-shell { display: flex; min-height: 100vh; }
.app-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.app-main > footer { margin-top: auto; }
body.has-sidebar { padding-bottom: 0; background: #f6f7f9; }

.app-sidebar { --bs-offcanvas-width: 280px; background: #fff; }
.sidebar-body { display: flex; flex-direction: column; padding: 0; }
@media (min-width: 992px) {
    .app-sidebar.offcanvas-lg {
        flex: 0 0 264px; width: 264px;
        position: sticky; top: 0; height: 100vh; overflow-y: auto;
        border-right: 1px solid #e5e7eb; background: #fff !important;
    }
    .app-sidebar .sidebar-body { display: flex; flex-direction: column; flex-grow: 1; min-height: 100%; }
}

.sidebar-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 20px 20px 16px; border-bottom: 1px solid #f0f1f3; }
/* a logók mindig a saját arányukkal jelennek meg: csak az egyik méret van rögzítve, a másik automatikus */
.sidebar-logo-sze { display: block; width: auto; height: auto; max-width: 62%; max-height: 40px; object-fit: contain; }
.sidebar-logo-ahjk { display: block; width: 100%; height: auto; object-fit: contain; }

.sidebar-nav { flex: 1 1 auto; padding: 8px 0 16px; }
.sidebar-section {
    padding: 16px 20px 6px; font-size: 0.7rem; font-weight: 700;
    letter-spacing: 0.06em; text-transform: uppercase; color: #8a94a3;
}
.sidebar-link {
    display: flex; align-items: center; gap: 10px;
    margin: 1px 10px; padding: 7px 10px; border-radius: 8px;
    color: #374151; font-size: 0.92rem; font-weight: 500; line-height: 1.25;
}
.sidebar-link i { color: #8a94a3; width: 18px; text-align: center; }
.sidebar-link:hover { background: #f1f4f8; color: #0d6efd; }
.sidebar-link:hover i { color: #0d6efd; }
.sidebar-link.active { background: #e8f0fe; color: #0b5ed7; font-weight: 600; box-shadow: inset 3px 0 0 #0d6efd; }
.sidebar-link.active i { color: #0d6efd; }

.sidebar-footer { padding: 14px 16px; border-top: 1px solid #f0f1f3; background: #fafbfc; }

.app-topbar {
    position: sticky; top: 0; z-index: 1020;
    display: flex; align-items: center; justify-content: space-between;
    padding: 8px 16px; background: #fff; border-bottom: 1px solid #e5e7eb;
}
.topbar-logo { height: 30px; width: auto; }

/* ---- Oldalsó menü elrejtése asztali nézetben ---- */
.sidebar-brand-wrap { position: relative; }
.sidebar-collapse-btn {
    position: absolute; top: 18px; right: 12px;
    align-items: center; justify-content: center; width: 30px; height: 30px;
    border: 1px solid #e5e7eb; border-radius: 8px; background: #fff; color: #6b7280;
}
.sidebar-collapse-btn:hover { background: #f1f4f8; color: #0d6efd; border-color: #cfd8e3; }
@media (min-width: 992px) {
    /* felső sáv asztali nézetben csak elrejtett menünél */
    .app-topbar { display: none; }
    .sidebar-collapsed .app-topbar { display: flex; }
    .sidebar-collapsed .app-sidebar.offcanvas-lg { margin-left: -264px; visibility: hidden; }
    /* animáció csak kattintásra, betöltéskor nincs (ne csússzon ki minden oldalváltáskor) */
    .sidebar-animate .app-sidebar.offcanvas-lg { transition: margin-left 0.2s ease, visibility 0.2s; }
}

.sidebar-scope { margin: 0 20px 6px; font-size: 0.78rem; color: #6b7280; }
.sidebar-scope i { color: #8a94a3; margin-right: 4px; }

/* Hallgatói checklist pipák */
.checklist-item .form-check-input { width: 1.15em; height: 1.15em; cursor: pointer; }
.checklist-title { cursor: pointer; }
.checklist-done .checklist-title { text-decoration: line-through; color: #6c757d; }
.checklist-done { background: #f6fbf7; }
