/* Sprint 4E A65 - Figma-inspired teacher dashboard skin */
:root {
    --teacher-navy: #07184a;
    --teacher-navy-2: #0c2164;
    --teacher-blue: #3157e8;
    --teacher-blue-soft: #eef3ff;
    --teacher-ink: #1f2a44;
    --teacher-muted: #6b7280;
    --teacher-line: #e6eaf2;
    --teacher-canvas: #f5f7fb;
    --teacher-card: #ffffff;
}

body:has(#teacher-dashboard:not(.hidden)) {
    background: var(--teacher-canvas);
    padding: 0;
}

#teacher-dashboard {
    background: var(--teacher-canvas) !important;
    color: var(--teacher-ink);
}

#teacher-dashboard:not(.hidden) {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
}

#teacher-dashboard aside {
    width: 248px !important;
    background: linear-gradient(180deg, var(--teacher-navy) 0%, #08123a 100%) !important;
    color: #dbe5ff !important;
    box-shadow: 0 18px 45px rgba(7, 24, 74, .22) !important;
}

#teacher-dashboard aside > div:first-child {
    height: 68px !important;
    background: transparent !important;
    border-bottom: 1px solid rgba(255,255,255,.08) !important;
    padding-left: 18px !important;
    padding-right: 18px !important;
}

#teacher-dashboard #teacher-brand-title {
    font-size: 15px !important;
    letter-spacing: 0 !important;
}

#teacher-dashboard #teacher-brand-subtitle {
    color: #9fb2ff !important;
    letter-spacing: .12em !important;
}

#teacher-dashboard nav {
    padding: 18px 12px !important;
}

#teacher-dashboard nav button,
#teacher-dashboard .teacher-nav-group > button {
    min-height: 40px;
    border-radius: 10px !important;
    color: #c9d6ff !important;
    font-size: 13px !important;
    padding: 10px 12px !important;
}

#teacher-dashboard nav button:hover,
#teacher-dashboard .teacher-nav-group > button:hover {
    background: rgba(255,255,255,.1) !important;
    color: #fff !important;
}

#teacher-dashboard [id^="teacher-nav-"] {
    margin-left: 8px !important;
    padding-left: 8px !important;
    border-left-color: rgba(255,255,255,.1) !important;
}

#teacher-dashboard [id^="teacher-nav-"] button {
    font-size: 12px !important;
    padding: 8px 10px !important;
    color: #aebfff !important;
}

#teacher-dashboard main > header {
    height: 68px !important;
    background: rgba(255,255,255,.96) !important;
    border-bottom: 1px solid var(--teacher-line) !important;
    box-shadow: 0 6px 24px rgba(30, 42, 68, .05) !important;
}

#teacher-dashboard #teacher-console-title {
    color: var(--teacher-ink) !important;
    font-size: 16px !important;
}

#teacher-dashboard main > div.flex-1 {
    padding: 22px 26px !important;
    background:
        radial-gradient(circle at 92% -12%, rgba(49, 87, 232, .08), transparent 26%),
        var(--teacher-canvas) !important;
}

#teacher-dashboard [id^="section-"] > .flex:first-child,
#teacher-dashboard [id^="section-"] > .mb-6:first-child,
#teacher-dashboard [id^="section-"] > .mb-4:first-child {
    margin-bottom: 16px !important;
}

#teacher-dashboard [id^="section-"] h2 {
    color: var(--teacher-ink) !important;
    font-size: 22px !important;
    line-height: 1.2 !important;
}

#teacher-dashboard [id^="section-"] p {
    letter-spacing: 0 !important;
}

#teacher-dashboard [class*="rounded-3xl"],
#teacher-dashboard [class*="rounded-2xl"] {
    border-radius: 12px !important;
}

#teacher-dashboard [class*="shadow-xl"],
#teacher-dashboard [class*="shadow-md"],
#teacher-dashboard [class*="shadow-sm"] {
    box-shadow: 0 10px 30px rgba(20, 35, 82, .06) !important;
}

#teacher-dashboard .bg-white {
    background-color: var(--teacher-card) !important;
}

#teacher-dashboard .border-slate-200,
#teacher-dashboard .border-slate-300 {
    border-color: var(--teacher-line) !important;
}

#section-overview > .mb-8:first-child {
    background:
        linear-gradient(135deg, #ffffff 0%, #f7f9ff 56%, #eef3ff 100%) !important;
    color: var(--teacher-ink) !important;
    border: 1px solid var(--teacher-line) !important;
    border-radius: 16px !important;
    padding: 26px !important;
    box-shadow: 0 14px 38px rgba(20, 35, 82, .07) !important;
}

#section-overview > .mb-8:first-child .absolute {
    display: none !important;
}

#section-overview > .mb-8:first-child p:first-of-type {
    color: var(--teacher-blue) !important;
    letter-spacing: .16em !important;
}

#section-overview > .mb-8:first-child h2 {
    color: var(--teacher-ink) !important;
    font-size: 28px !important;
}

#section-overview > .mb-8:first-child p:last-child {
    color: var(--teacher-muted) !important;
}

#section-overview .grid > div,
#teacher-dashboard form,
#teacher-dashboard [id$="-list"] > .bg-white,
#teacher-dashboard [id$="-detail"] > .bg-white,
#teacher-dashboard [id$="-create"] > .bg-white {
    border-radius: 12px !important;
    border: 1px solid var(--teacher-line) !important;
}

#teacher-dashboard input,
#teacher-dashboard textarea,
#teacher-dashboard select {
    border-radius: 9px !important;
    border-color: var(--teacher-line) !important;
    background-color: #fbfcff !important;
    color: var(--teacher-ink) !important;
}

#teacher-dashboard input:focus,
#teacher-dashboard textarea:focus,
#teacher-dashboard select:focus {
    border-color: var(--teacher-blue) !important;
    box-shadow: 0 0 0 3px rgba(49, 87, 232, .12) !important;
}

#teacher-dashboard button.bg-indigo-600,
#teacher-dashboard button.bg-slate-800,
#teacher-dashboard button.bg-slate-900,
#teacher-dashboard button.bg-blue-600 {
    background: var(--teacher-blue) !important;
    color: #fff !important;
    border-radius: 9px !important;
    box-shadow: 0 8px 18px rgba(49, 87, 232, .18) !important;
}

#teacher-dashboard button.bg-indigo-600:hover,
#teacher-dashboard button.bg-slate-800:hover,
#teacher-dashboard button.bg-slate-900:hover,
#teacher-dashboard button.bg-blue-600:hover {
    background: #2748c7 !important;
}

#teacher-dashboard button.bg-white,
#teacher-dashboard button.border {
    border-radius: 9px !important;
}

#teacher-class-list > div,
#teacher-exam-list > div,
#teacher-bundle-list > div,
#teacher-material-list > div,
#banks-grid-container > div,
#questions-list-container > div {
    border-radius: 12px !important;
    border: 1px solid var(--teacher-line) !important;
    background: #fff !important;
    box-shadow: 0 8px 24px rgba(20, 35, 82, .05) !important;
}

#teacher-class-list > div.border-indigo-500 {
    border-color: var(--teacher-blue) !important;
    background: var(--teacher-blue-soft) !important;
}

#teacher-dashboard table {
    border-color: var(--teacher-line) !important;
}

#teacher-dashboard th {
    background: #f8faff !important;
    color: #536079 !important;
}

@media (max-width: 767px) {
    #teacher-dashboard main > div.flex-1 {
        padding: 16px !important;
    }

    #teacher-dashboard aside {
        width: 100% !important;
    }
}
