:root {
    --bg: #f8fafc;
    --surface: #ffffff;
    --card: #ffffff;
    --border: #e2e8f0;
    --text: #0f172a;
    --muted: #64748b;
    --primary: #1d4ed8;
    --primary-hover: #1e40af;
    --green-bg: #dcfce7;
    --green-border: #16a34a;
    --green-text: #14532d;
    --red-bg: #fee2e2;
    --red-border: #dc2626;
    --red-text: #7f1d1d;
    --gray-bg: #f1f5f9;
    --gray-border: #94a3b8;
    --gray-text: #475569;
    --selected-bg: #dbeafe;
    --selected-border: #2563eb;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
}

.topbar {
    background: #0f172a;
    color: #fff;
    padding: 0.75rem 1.25rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    position: sticky;
    top: 0;
    z-index: 50;
}

.topbar-brand {
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.topbar-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.nav-link {
    color: #cbd5e1;
    text-decoration: none;
    padding: 0.4rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.9rem;
}

.nav-link:hover, .nav-link.active {
    background: #1e293b;
    color: #fff;
}

.container {
    max-width: 1360px;
    margin: 0 auto;
    padding: 1rem;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 1.15rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.card-title {
    margin: 0 0 0.75rem 0;
    font-size: 1.1rem;
    font-weight: 700;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 0.75rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.5rem 0.95rem;
    min-height: 40px;
    border-radius: 0.5rem;
    border: 1px solid transparent;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s ease;
}

.btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--primary-hover); }

.btn-success { background: #16a34a; color: #fff; }
.btn-success:hover:not(:disabled) { background: #15803d; }

.btn-danger { background: #dc2626; color: #fff; }
.btn-danger:hover:not(:disabled) { background: #b91c1c; }

.btn-outline { background: #fff; border-color: var(--border); color: var(--text); }
.btn-outline:hover:not(:disabled) { background: #f1f5f9; }

.btn-sm { padding: 0.3rem 0.6rem; min-height: 32px; font-size: 0.82rem; }

.form-group { margin-bottom: 0.85rem; }
.form-label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.25rem; color: #334155; }
.form-control {
    width: 100%;
    padding: 0.5rem 0.7rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.45rem;
    font-size: 0.92rem;
    background: #fff;
}

.alert {
    padding: 0.8rem 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    font-size: 0.92rem;
}
.alert-success { background: #dcfce7; border-color: #86efac; color: #14532d; }
.alert-danger { background: #fee2e2; border-color: #fca5a5; color: #7f1d1d; }
.alert-warning { background: #fef3c7; border-color: #fcd34d; color: #78350f; }
.alert-info { background: #dbeafe; border-color: #93c5fd; color: #1e3a8a; }

.legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
}
.legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.legend-box {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 2px solid;
}

.calendar-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.calendar-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
}

.calendar-table th, .calendar-table td {
    border: 1px solid var(--border);
    padding: 0.45rem;
    vertical-align: top;
    text-align: center;
}

.calendar-table th {
    background: #f1f5f9;
    font-size: 0.85rem;
    font-weight: 700;
}

.slot-btn {
    width: 100%;
    min-height: 54px;
    padding: 0.35rem 0.45rem;
    border-radius: 0.45rem;
    border: 2px solid;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    text-align: center;
}

.slot-available {
    background: var(--green-bg);
    border-color: var(--green-border);
    color: var(--green-text);
}
.slot-available:hover { filter: brightness(0.95); }

.slot-readonly-available {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #6b7280;
    cursor: not-allowed;
    opacity: 0.7;
}

.slot-selected {
    background: var(--selected-bg);
    border-color: var(--selected-border);
    color: #1e3a8a;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.35);
}

.slot-reserved {
    background: var(--red-bg);
    border-color: var(--red-border);
    color: var(--red-text);
    cursor: default;
}

.slot-closed {
    background: var(--gray-bg);
    border-color: var(--gray-border);
    color: var(--gray-text);
    cursor: not-allowed;
}

.badge {
    display: inline-block;
    padding: 0.18rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
}
.badge-green { background: #dcfce7; color: #14532d; }
.badge-red { background: #fee2e2; color: #7f1d1d; }
.badge-blue { background: #dbeafe; color: #1e3a8a; }
.badge-amber { background: #fef3c7; color: #78350f; }
.badge-gray { background: #e2e8f0; color: #334155; }

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}
.data-table th, .data-table td {
    border-bottom: 1px solid var(--border);
    padding: 0.55rem 0.6rem;
    text-align: left;
}
.data-table th {
    background: #f8fafc;
    font-weight: 700;
    color: #334155;
}

.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.6rem;
}

.tab-btn {
    padding: 0.45rem 0.85rem;
    border-radius: 0.45rem;
    border: 1px solid var(--border);
    background: #fff;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.88rem;
}
.tab-btn.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.desktop-only { display: block; }
.mobile-only { display: none; }

.mobile-day-card {
    border: 1px solid var(--border);
    border-radius: 0.65rem;
    margin-bottom: 0.85rem;
    overflow: hidden;
    background: #fff;
}
.mobile-day-header {
    background: #f1f5f9;
    padding: 0.55rem 0.75rem;
    font-weight: 700;
    font-size: 0.92rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.mobile-slot-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.45rem;
    padding: 0.6rem;
}

@media (max-width: 768px) {
    .desktop-only { display: none !important; }
    .mobile-only { display: block !important; }

    .container { padding: 0.55rem; }
    .card { padding: 0.85rem; border-radius: 0.6rem; }
    .topbar { padding: 0.6rem 0.75rem; flex-direction: column; align-items: stretch; gap: 0.45rem; }
    .topbar-brand { font-size: 1rem; justify-content: space-between; }
    .topbar-nav { justify-content: flex-start; gap: 0.35rem; }

    .grid-2, .grid-4 {
        grid-template-columns: 1fr !important;
        gap: 0.65rem;
    }

    .form-control, select.form-control, input.form-control {
        font-size: 16px;
        min-height: 42px;
    }

    .tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 0.45rem;
    }
    .tab-btn {
        white-space: nowrap;
        flex-shrink: 0;
        font-size: 0.84rem;
        padding: 0.45rem 0.75rem;
    }

    .btn { min-height: 42px; }
    .btn-sm { min-height: 36px; }
    .slot-btn { min-height: 60px; font-size: 0.82rem; }

    .week-nav-bar {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 0.45rem;
    }
    .week-nav-prev { order: 1; }
    .week-nav-date { order: 2; text-align: center; flex: 1; font-size: 0.85rem; }
    .week-nav-next { order: 3; }
    .week-nav-today { order: 4; flex-basis: 100%; width: 100%; justify-content: center; margin-left: 0; }
    .desktop-single-row { flex-direction: column !important; align-items: stretch !important; flex-wrap: wrap !important; }
    .desktop-single-row > * { width: 100% !important; min-width: 0 !important; flex: none !important; }
}

.week-nav-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
}
.week-nav-prev { order: 1; }
.week-nav-date { order: 2; }
.week-nav-next { order: 3; }
.week-nav-today { order: 4; margin-left: 0.45rem; }

.desktop-single-row {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-end;
    gap: 0.55rem;
}
.desktop-single-row > * {
    min-width: 0;
}

.data-table th, .data-table td {
    min-width: 50px;
}

.candidate-has-message-row {
    background-color: #ccfbf1 !important;
}
.candidate-has-message-row td {
    border-top-color: #5eead4;
    border-bottom-color: #5eead4;
}

.hamburger-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 0.45rem;
    padding: 0.35rem 0.65rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
}
.hamburger-btn:hover {
    background: rgba(255, 255, 255, 0.22);
}

.admin-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    z-index: 999;
}
.admin-drawer {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 270px;
    max-width: 85vw;
    background: #0f172a;
    color: #f8fafc;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.35);
    padding: 1rem;
    overflow-y: auto;
}
.admin-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 0.75rem;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.admin-drawer-nav {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.admin-drawer-link {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: #e2e8f0;
    text-decoration: none;
    padding: 0.62rem 0.8rem;
    border-radius: 0.55rem;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.15s ease, color 0.15s ease, transform 0.12s ease;
}
.admin-drawer-link:hover {
    background: rgba(59, 130, 246, 0.22);
    color: #ffffff;
    transform: translateX(2px);
}
.admin-drawer-ico {
    width: 28px;
    height: 28px;
    border-radius: 0.45rem;
    background: rgba(255, 255, 255, 0.08);
    color: #93c5fd;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.admin-drawer-group {
    border-radius: 0.6rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
}
.admin-drawer-group[open] {
    background: rgba(30, 58, 138, 0.24);
    border-color: rgba(96, 165, 250, 0.28);
}
.admin-drawer-summary {
    list-style: none;
    cursor: pointer;
    color: #f8fafc;
    padding: 0.58rem 0.8rem;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.15s ease;
}
.admin-drawer-sum-left {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
}
.admin-drawer-summary::-webkit-details-marker {
    display: none;
}
.admin-drawer-summary::after {
    content: "▾";
    font-size: 0.85rem;
    color: #93c5fd;
    transition: transform 0.15s ease;
}
.admin-drawer-group:not([open]) > .admin-drawer-summary::after {
    transform: rotate(-90deg);
}
.admin-drawer-summary:hover {
    background: rgba(255, 255, 255, 0.08);
}
.admin-drawer-sublinks {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.25rem 0.45rem 0.45rem 0.95rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.admin-drawer-sublink {
    font-size: 0.84rem;
    padding: 0.45rem 0.65rem;
    font-weight: 500;
    color: #cbd5e1;
}
.admin-drawer-sublink::before {
    content: "•";
    color: #60a5fa;
    font-weight: 800;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.62);
    backdrop-filter: blur(2px);
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.modal-box {
    background: var(--surface, #ffffff);
    color: var(--text, #0f172a);
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 0.85rem;
    padding: 1.25rem;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 24px 50px -12px rgba(15, 23, 42, 0.35);
}

.theme-select {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 0.45rem;
    padding: 0.28rem 0.5rem;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
}
.theme-select option {
    background: #0f172a;
    color: #f8fafc;
}

html[data-theme="dark"] {
    --bg: #0b1120;
    --surface: #111827;
    --card: #111827;
    --text: #f1f5f9;
    --muted: #94a3b8;
    --border: #334155;
    --green-bg: #052e16;
    --green-border: #16a34a;
    --red-bg: #450a0a;
    --red-border: #ef4444;
    --gray-bg: #1e293b;
    --gray-border: #475569;
    --selected-bg: #1e3a8a;
    --selected-border: #60a5fa;
    color-scheme: dark;
}
html[data-theme="dark"] body {
    background: var(--bg);
    color: var(--text);
}
html[data-theme="dark"] .topbar {
    background: #020617;
    border-bottom: 1px solid #1e293b;
}
html[data-theme="dark"] .card,
html[data-theme="dark"] .mobile-day-card,
html[data-theme="dark"] .modal-box {
    background: var(--card);
    border-color: var(--border);
    color: var(--text);
}
html[data-theme="dark"] .mobile-day-header,
html[data-theme="dark"] .calendar-table th,
html[data-theme="dark"] .data-table th {
    background: #1e293b;
    color: #e2e8f0;
    border-color: var(--border);
}
html[data-theme="dark"] .calendar-table td,
html[data-theme="dark"] .data-table td {
    border-color: var(--border);
}
html[data-theme="dark"] .form-control,
html[data-theme="dark"] select.form-control,
html[data-theme="dark"] input.form-control,
html[data-theme="dark"] textarea.form-control {
    background: #0f172a;
    color: #f1f5f9;
    border-color: #475569;
}
html[data-theme="dark"] .btn-outline {
    background: #1e293b;
    color: #e2e8f0;
    border-color: #475569;
}
html[data-theme="dark"] .btn-outline:hover {
    background: #334155;
}
html[data-theme="dark"] .slot-available {
    background: #052e16;
    color: #bbf7d0;
    border-color: #16a34a;
}
html[data-theme="dark"] .slot-reserved {
    background: #450a0a;
    color: #fecaca;
    border-color: #ef4444;
}
html[data-theme="dark"] .slot-closed {
    background: #1e293b;
    color: #94a3b8;
    border-color: #475569;
}
html[data-theme="dark"] .candidate-has-message-row {
    background-color: #134e4a !important;
}
html[data-theme="dark"] .alert-success {
    background: #052e16;
    color: #bbf7d0;
    border-color: #16a34a;
}
html[data-theme="dark"] .alert-danger {
    background: #450a0a;
    color: #fecaca;
    border-color: #ef4444;
}
html[data-theme="dark"] .alert-warning {
    background: #451a03;
    color: #fde68a;
    border-color: #d97706;
}
html[data-theme="dark"] .alert-info {
    background: #172554;
    color: #bfdbfe;
    border-color: #3b82f6;
}
html[data-theme="dark"] [style*="background:#f8fafc"],
html[data-theme="dark"] [style*="background:#f1f5f9"] {
    background: #1e293b !important;
    color: #e2e8f0 !important;
}
html[data-theme="dark"] [style*="background:#f0fdfa"] {
    background: #134e4a !important;
    color: #ccfbf1 !important;
}
html[data-theme="dark"] [style*="background:#fffbeb"] {
    background: #451a03 !important;
    color: #fde68a !important;
}
html[data-theme="dark"] [style*="background:#eff6ff"] {
    background: #172554 !important;
    color: #dbeafe !important;
}
html[data-theme="dark"] [style*="background:#f0fdf4"] {
    background: #052e16 !important;
    color: #bbf7d0 !important;
}
html[data-theme="dark"] [style*="background:#f3e8ff"] {
    background: #3b0764 !important;
    color: #e9d5ff !important;
    border-color: #a855f7 !important;
}
html[data-theme="dark"] [style*="background-color:#cbd5e1"] {
    background-color: #1e293b !important;
    color: #cbd5e1 !important;
}
html[data-theme="dark"] [style*="color:#0f172a"],
html[data-theme="dark"] [style*="color:#1e293b"],
html[data-theme="dark"] [style*="color:#334155"] {
    color: #f1f5f9 !important;
}
html[data-theme="dark"] [style*="color:#475569"] {
    color: #cbd5e1 !important;
}
html[data-theme="dark"] [style*="color:#1e40af"],
html[data-theme="dark"] [style*="color:#1e3a8a"] {
    color: #93c5fd !important;
}
html[data-theme="dark"] [style*="color:#115e59"],
html[data-theme="dark"] [style*="color:#0f766e"] {
    color: #5eead4 !important;
}
html[data-theme="dark"] [style*="color:#15803d"],
html[data-theme="dark"] [style*="color:#166534"] {
    color: #86efac !important;
}
html[data-theme="dark"] [style*="color:#4c1d95"],
html[data-theme="dark"] [style*="color:#7c3aed"] {
    color: #d8b4fe !important;
}
html[data-theme="dark"] .badge-blue {
    background: #1e3a8a;
    color: #dbeafe;
}
html[data-theme="dark"] .badge-green {
    background: #14532d;
    color: #bbf7d0;
}
html[data-theme="dark"] .badge-red {
    background: #7f1d1d;
    color: #fecaca;
}
html[data-theme="dark"] .badge-amber {
    background: #78350f;
    color: #fde68a;
}
html[data-theme="dark"] .badge-gray {
    background: #334155;
    color: #e2e8f0;
}
html[data-theme="dark"] code {
    background: #1e293b;
    color: #93c5fd;
    padding: 0.1rem 0.3rem;
    border-radius: 0.25rem;
}
html[data-theme="dark"] a:not(.btn):not(.nav-link):not(.topbar-brand):not(.admin-drawer-link) {
    color: #60a5fa;
}

.login-wrapper {
    max-width: 940px;
    margin: 1.75rem auto;
}
.login-shell {
    display: grid;
    grid-template-columns: 1.08fr 1fr;
    background: var(--surface, #ffffff);
    color: var(--text, #0f172a);
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 1.15rem;
    overflow: hidden;
    box-shadow: 0 24px 48px -14px rgba(15, 23, 42, 0.22);
}
@media (max-width: 820px) {
    .login-shell {
        grid-template-columns: 1fr;
    }
}
.login-showcase {
    background: linear-gradient(145deg, #0f172a 0%, #1e3a8a 52%, #2563eb 100%);
    color: #ffffff;
    padding: 2rem 1.85rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}
.login-showcase::before,
.login-showcase::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
    pointer-events: none;
}
.login-showcase::before {
    width: 240px;
    height: 240px;
    top: -80px;
    right: -70px;
}
.login-showcase::after {
    width: 180px;
    height: 180px;
    bottom: -60px;
    left: -50px;
}
.login-showcase-top {
    position: relative;
    z-index: 1;
}
.login-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.28rem 0.72rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.24);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    margin-bottom: 1rem;
}
.login-icon {
    width: 60px;
    height: 60px;
    margin: 0 0 0.9rem 0;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.28);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}
.login-brand-title {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    color: #ffffff;
    line-height: 1.25;
}
.login-brand-sub {
    margin: 0.45rem 0 0 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.86);
    line-height: 1.45;
}
.login-features {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-top: 1.5rem;
}
.login-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 0.7rem;
    padding: 0.65rem 0.8rem;
}
.login-feature-ico {
    width: 32px;
    height: 32px;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.16);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.login-feature-title {
    font-size: 0.86rem;
    font-weight: 700;
    color: #fff;
}
.login-feature-desc {
    font-size: 0.77rem;
    color: rgba(255, 255, 255, 0.82);
}
.login-body {
    padding: 2rem 1.85rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.login-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.login-input-ico {
    position: absolute;
    left: 0.75rem;
    color: var(--muted);
    pointer-events: none;
    display: flex;
    align-items: center;
}
.login-input {
    padding-left: 2.35rem !important;
    min-height: 44px;
    border-radius: 0.6rem !important;
}
.login-input-pw {
    padding-right: 2.6rem !important;
}
.login-pw-toggle {
    position: absolute;
    right: 0.45rem;
    background: transparent;
    border: none;
    color: var(--muted);
    cursor: pointer;
    padding: 0.35rem;
    display: flex;
    align-items: center;
    border-radius: 0.4rem;
}
.login-pw-toggle:hover {
    color: var(--text);
    background: var(--gray-bg);
}
.login-submit-btn {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.98rem;
    border-radius: 0.65rem;
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
    box-shadow: 0 8px 18px -6px rgba(37, 99, 235, 0.55);
}
.login-submit-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #1e40af 0%, #1d4ed8 100%);
    transform: translateY(-1px);
}
.login-test-box {
    margin-top: 1.25rem;
    padding: 0.85rem 0.95rem;
    border-radius: 0.65rem;
    background: var(--gray-bg);
    border: 1px solid var(--border);
    font-size: 0.8rem;
    color: var(--muted);
}
html[data-theme="dark"] .login-shell {
    box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.65);
}

/* Usta Öğretici Yönetimi ve Ortak Sayfa Görsel Şablonu */
.hoca-hero,
.page-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e40af 58%, #0284c7 100%);
    color: #ffffff;
    border-radius: 0.9rem;
    padding: 1.25rem 1.4rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    box-shadow: 0 12px 26px -10px rgba(2, 132, 199, 0.35);
}
.page-hero-school {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.8);
}
.page-hero-title {
    margin: 0.2rem 0 0.25rem 0;
    font-size: 1.35rem;
    font-weight: 800;
    color: #ffffff;
}
.page-hero-sub {
    font-size: 0.86rem;
    color: rgba(255, 255, 255, 0.86);
}
.hoca-hero-stats,
.page-hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}
.hoca-stat-pill,
.page-stat-pill {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 0.6rem;
    padding: 0.45rem 0.75rem;
    text-align: center;
    min-width: 96px;
}
.hoca-stat-num,
.page-stat-num {
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.15;
}
.hoca-stat-lbl,
.page-stat-lbl {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.85);
}
.hoca-add-card,
.card-accent {
    border-left: 4px solid #2563eb;
}
.card-accent-green {
    border-left: 4px solid #16a34a;
}
.card-accent-amber {
    border-left: 4px solid #d97706;
}
.hoca-table tbody tr:nth-child(even),
.styled-table tbody tr:nth-child(even) {
    background: rgba(148, 163, 184, 0.06);
}
.hoca-table tbody tr:hover,
.styled-table tbody tr:hover {
    background: rgba(37, 99, 235, 0.06);
}
.hoca-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.8rem;
    color: #ffffff;
    flex-shrink: 0;
}

/* E-Sınav Aday Dashboard */
.esinav-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 55%, #2563eb 100%);
    color: #ffffff;
    border-radius: 0.9rem;
    padding: 1.45rem 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    flex-wrap: wrap;
    box-shadow: 0 12px 28px -10px rgba(29, 78, 216, 0.38);
    position: relative;
    overflow: hidden;
}
.esinav-hero-title {
    margin: 0.25rem 0 0.3rem 0;
    font-size: 1.45rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.25;
}
.esinav-hero-sub {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.86);
    max-width: 640px;
}
.esinav-hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.75rem;
}
.esinav-hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    padding: 0.28rem 0.68rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
}
.esinav-hero-icon {
    width: 72px;
    height: 72px;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #ffffff;
}

.esinav-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
    gap: 0.85rem;
    margin-bottom: 1rem;
}
.esinav-kpi {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 0.8rem;
    padding: 1rem 1.05rem;
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}
.esinav-kpi-icon {
    width: 42px;
    height: 42px;
    border-radius: 0.65rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.esinav-kpi-icon.blue { background: #dbeafe; color: #1d4ed8; }
.esinav-kpi-icon.green { background: #dcfce7; color: #15803d; }
.esinav-kpi-icon.amber { background: #fef3c7; color: #b45309; }
.esinav-kpi-icon.purple { background: #ede9fe; color: #6d28d9; }

.esinav-kpi-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.esinav-kpi-value {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1.2;
    margin: 0.15rem 0;
}
.esinav-kpi-sub {
    font-size: 0.78rem;
    color: var(--muted);
}

.esinav-progress {
    width: 100%;
    height: 7px;
    background: var(--gray-bg);
    border-radius: 999px;
    overflow: hidden;
    margin-top: 0.4rem;
}
.esinav-progress-bar {
    height: 100%;
    border-radius: 999px;
    transition: width 0.3s ease;
}

.esinav-main-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}
.esinav-feature-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: 0.75rem 0 1rem 0;
}
.esinav-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.65rem;
    border-radius: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    background: var(--gray-bg);
    color: var(--text);
    border: 1px solid var(--border);
}
.esinav-trend {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
    padding-top: 0.85rem;
    margin-top: 1rem;
    border-top: 1px solid var(--border);
}
.esinav-trend-item {
    flex: 1;
    min-width: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}
.esinav-trend-bar-wrap {
    width: 100%;
    max-width: 34px;
    height: 54px;
    background: var(--gray-bg);
    border-radius: 0.35rem;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}
.esinav-trend-bar {
    width: 100%;
    border-radius: 0.35rem 0.35rem 0 0;
}
.esinav-cat-row {
    margin-bottom: 0.65rem;
}
.esinav-cat-row:last-child {
    margin-bottom: 0;
}
.esinav-cat-head {
    display: flex;
    justify-content: space-between;
    font-size: 0.83rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
}
.esinav-tips {
    margin: 0.9rem 0 0 0;
    padding: 0.8rem 0.95rem;
    border-radius: 0.6rem;
    background: var(--gray-bg);
    border: 1px solid var(--border);
    font-size: 0.83rem;
}
.esinav-tips ul {
    margin: 0.35rem 0 0 1.1rem;
    padding: 0;
}
.esinav-tips li {
    margin-bottom: 0.25rem;
}
.esinav-empty {
    text-align: center;
    padding: 1.75rem 1rem;
    color: var(--muted);
}

html[data-theme="dark"] .esinav-kpi-icon.blue { background: rgba(37, 99, 235, 0.22); color: #93c5fd; }
html[data-theme="dark"] .esinav-kpi-icon.green { background: rgba(22, 163, 74, 0.22); color: #86efac; }
html[data-theme="dark"] .esinav-kpi-icon.amber { background: rgba(217, 119, 6, 0.22); color: #fcd34d; }
html[data-theme="dark"] .esinav-kpi-icon.purple { background: rgba(124, 58, 237, 0.22); color: #c4b5fd; }
