/**
 * ExamExplore — lightweight UX layer (shared hosting friendly: one small static file).
 * Works with Bootstrap + app-ui-shell tokens. Keep this file tiny.
 */
:root {
    --ee-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
    --ee-shadow-md: 0 4px 14px rgba(15, 23, 42, 0.08);
    --ee-shadow-lg: 0 12px 40px rgba(15, 23, 42, 0.1);
    --ee-transition-fast: 0.18s ease;
}

.dark {
    --ee-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
    --ee-shadow-md: 0 4px 18px rgba(0, 0, 0, 0.45);
    --ee-shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.5);
}

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

::selection {
    background-color: rgba(99, 102, 241, 0.22);
    color: inherit;
}

:focus:not(:focus-visible) {
    outline: none;
}
:focus-visible {
    outline: 2px solid var(--app-focus, var(--ee-accent-soft, #6366f1));
    outline-offset: 2px;
}

.card {
    border: 1px solid var(--ee-border, #e5e7eb);
    box-shadow: var(--ee-shadow-sm);
    transition: box-shadow var(--ee-transition-fast), border-color var(--ee-transition-fast);
}
.card:hover {
    box-shadow: var(--ee-shadow-md);
}
.dark .card {
    border-color: var(--ee-border, #334155);
    background-color: var(--ee-surface, #1e293b);
}

.modal-content {
    border: none;
    box-shadow: var(--ee-shadow-lg);
    border-radius: var(--ee-radius, 5px);
    background: #ffffff;
}

:is(#admin-body, #student-body) .modal-header {
    background: #ffffff !important;
    border-bottom: 1px solid #e5e7eb;
    color: #111827;
    padding: 0.75rem 1.25rem;
}

:is(#admin-body, #student-body) .modal-header :is(h3, .modal-title) {
    color: #111827 !important;
    margin: 0 !important;
    font-size: 1.0625rem !important;
    line-height: 1.35 !important;
}

:is(#admin-body, #student-body) .modal-header button {
    color: #6b7280 !important;
}

html.dark :is(#admin-body, #student-body) .modal-header,
html.dark .modal-content {
    background: rgb(47 51 73) !important;
    color: #f9fafb;
}

html.dark :is(#admin-body, #student-body) .modal-header :is(h3, .modal-title) {
    color: #f9fafb !important;
}

.table-hover > tbody > tr:hover {
    background-color: rgba(99, 102, 241, 0.06);
}
.dark .table-hover > tbody > tr:hover {
    background-color: rgba(99, 102, 241, 0.12);
}

.select2-container--default .select2-selection--single {
    border-radius: var(--ee-radius, 5px) !important;
    min-height: 2.625rem;
    border-color: var(--ee-border, #e5e7eb) !important;
}

.student-content,
.app-main-scroll,
.modal-body {
    scrollbar-width: thin;
    scrollbar-color: rgba(99, 102, 241, 0.35) transparent;
}
