/* Akademi panel theme — intentionally dependency-free for the production image. */
:root {
    --academy-ink: #172033;
    --academy-muted: #64748b;
    --academy-surface: rgba(255, 255, 255, 0.86);
    --academy-border: rgba(100, 116, 139, 0.16);
    --academy-shadow: 0 18px 48px rgba(45, 35, 80, 0.08);
    --academy-radius: 20px;
}

body.fi-panel-academy {
    background:
        radial-gradient(circle at 83% 8%, rgba(139, 92, 246, 0.11), transparent 25rem),
        radial-gradient(circle at 13% 87%, rgba(14, 165, 233, 0.08), transparent 28rem),
        #f8f7fb;
    color: var(--academy-ink);
}

body.fi-panel-academy .fi-layout,
body.fi-panel-academy .fi-main-ctn {
    background: transparent;
}

/* Sidebar */
body.fi-panel-academy .fi-sidebar {
    border-right: 0;
    background:
        radial-gradient(circle at 15% 0%, rgba(167, 139, 250, 0.28), transparent 20rem),
        linear-gradient(168deg, #1d1735 0%, #241b45 48%, #18243f 100%);
    box-shadow: 16px 0 40px rgba(30, 25, 55, 0.13);
}

body.fi-panel-academy .fi-sidebar-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.025);
    box-shadow: none;
}

body.fi-panel-academy .fi-sidebar-header .fi-logo,
body.fi-panel-academy .fi-sidebar .fi-sidebar-group-label,
body.fi-panel-academy .fi-sidebar .fi-sidebar-item-label {
    color: rgba(255, 255, 255, 0.94);
}

body.fi-panel-academy .fi-sidebar .fi-sidebar-group-label {
    color: rgba(216, 210, 243, 0.7);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

body.fi-panel-academy .fi-sidebar .fi-sidebar-item-icon {
    color: rgba(221, 214, 254, 0.72);
}

body.fi-panel-academy .fi-sidebar .fi-sidebar-item-btn {
    margin-block: 2px;
    border-radius: 12px;
    transition: background-color 160ms ease, transform 160ms ease, color 160ms ease;
}

body.fi-panel-academy .fi-sidebar .fi-sidebar-item-btn:hover {
    background: rgba(255, 255, 255, 0.085);
    transform: translateX(2px);
}

body.fi-panel-academy .fi-sidebar .fi-active > .fi-sidebar-item-btn,
body.fi-panel-academy .fi-sidebar .fi-sidebar-item.fi-active .fi-sidebar-item-btn {
    background: linear-gradient(100deg, rgba(139, 92, 246, 0.88), rgba(99, 102, 241, 0.76));
    box-shadow: 0 10px 24px rgba(76, 29, 149, 0.3);
}

body.fi-panel-academy .fi-sidebar .fi-active .fi-sidebar-item-icon,
body.fi-panel-academy .fi-sidebar .fi-active .fi-sidebar-item-label {
    color: #fff;
}

/* Navigation groups use distinct visual identities while every item keeps its own icon. */
body.fi-panel-academy .fi-sidebar-group,
body.fi-panel-student .fi-sidebar-group {
    --academy-nav-accent: #a78bfa;
    --academy-nav-soft: rgba(167, 139, 250, 0.1);
    --academy-nav-active: linear-gradient(100deg, rgba(124, 58, 237, 0.92), rgba(99, 102, 241, 0.8));
}

body.fi-panel-academy .fi-sidebar-group[data-group-label="Günlük İşler"] {
    --academy-nav-accent: #38bdf8;
    --academy-nav-soft: rgba(56, 189, 248, 0.1);
    --academy-nav-active: linear-gradient(100deg, rgba(2, 132, 199, 0.94), rgba(14, 165, 233, 0.8));
}

body.fi-panel-academy .fi-sidebar-group[data-group-label="Öğrenci ve Eğitim"],
body.fi-panel-student .fi-sidebar-group[data-group-label="Derslerim"] {
    --academy-nav-accent: #a78bfa;
    --academy-nav-soft: rgba(167, 139, 250, 0.1);
    --academy-nav-active: linear-gradient(100deg, rgba(124, 58, 237, 0.94), rgba(99, 102, 241, 0.8));
}

body.fi-panel-academy .fi-sidebar-group[data-group-label="Kayıt ve İletişim"] {
    --academy-nav-accent: #fb7185;
    --academy-nav-soft: rgba(251, 113, 133, 0.1);
    --academy-nav-active: linear-gradient(100deg, rgba(225, 29, 72, 0.94), rgba(244, 63, 94, 0.8));
}

body.fi-panel-academy .fi-sidebar-group[data-group-label="Finans ve Raporlar"],
body.fi-panel-student .fi-sidebar-group[data-group-label="Yoklama"] {
    --academy-nav-accent: #34d399;
    --academy-nav-soft: rgba(52, 211, 153, 0.1);
    --academy-nav-active: linear-gradient(100deg, rgba(5, 150, 105, 0.94), rgba(16, 185, 129, 0.8));
}

body.fi-panel-academy .fi-sidebar-group[data-group-label="Sistem ve Ayarlar"] {
    --academy-nav-accent: #fbbf24;
    --academy-nav-soft: rgba(251, 191, 36, 0.1);
    --academy-nav-active: linear-gradient(100deg, rgba(217, 119, 6, 0.94), rgba(245, 158, 11, 0.8));
}

body.fi-panel-academy .fi-sidebar-group .fi-sidebar-group-btn,
body.fi-panel-student .fi-sidebar-group .fi-sidebar-group-btn {
    margin-bottom: 0.25rem;
    padding: 0.45rem 0.55rem;
    border-left: 3px solid var(--academy-nav-accent);
    border-radius: 10px;
    background: var(--academy-nav-soft);
}

body.fi-panel-academy .fi-sidebar-group .fi-sidebar-group-label,
body.fi-panel-academy .fi-sidebar-group .fi-sidebar-group-collapse-btn,
body.fi-panel-academy .fi-sidebar-group .fi-sidebar-item-icon,
body.fi-panel-student .fi-sidebar-group .fi-sidebar-group-label,
body.fi-panel-student .fi-sidebar-group .fi-sidebar-group-collapse-btn,
body.fi-panel-student .fi-sidebar-group .fi-sidebar-item-icon {
    color: var(--academy-nav-accent);
}

body.fi-panel-academy .fi-sidebar-group .fi-sidebar-item-btn:hover,
body.fi-panel-student .fi-sidebar-group .fi-sidebar-item-btn:hover {
    background: var(--academy-nav-soft);
}

body.fi-panel-academy .fi-sidebar-group .fi-sidebar-item.fi-active > .fi-sidebar-item-btn,
body.fi-panel-student .fi-sidebar-group .fi-sidebar-item.fi-active > .fi-sidebar-item-btn {
    background: var(--academy-nav-active);
    box-shadow: 0 10px 24px color-mix(in srgb, var(--academy-nav-accent) 28%, transparent);
}

body.fi-panel-academy .fi-sidebar-group .fi-sidebar-item.fi-active .fi-sidebar-item-icon,
body.fi-panel-academy .fi-sidebar-group .fi-sidebar-item.fi-active .fi-sidebar-item-label,
body.fi-panel-student .fi-sidebar-group .fi-sidebar-item.fi-active .fi-sidebar-item-icon,
body.fi-panel-student .fi-sidebar-group .fi-sidebar-item.fi-active .fi-sidebar-item-label {
    color: #fff;
}

/* Topbar and page rhythm */
body.fi-panel-academy .fi-topbar {
    border: 1px solid rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.76);
    box-shadow: 0 10px 32px rgba(50, 40, 80, 0.07);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

body.fi-panel-academy .fi-main {
    padding-top: 1.4rem;
}

body.fi-panel-academy .fi-header-heading {
    color: var(--academy-ink);
    font-size: clamp(1.5rem, 2.2vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.035em;
}

body.fi-panel-academy .fi-header-subheading {
    color: var(--academy-muted);
}

/* Welcome hero */
.academy-welcome {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(460px, 1.45fr);
    gap: 2rem;
    align-items: center;
    min-height: 250px;
    overflow: hidden;
    padding: clamp(1.5rem, 3.4vw, 2.65rem);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 28px;
    color: #fff;
    background:
        linear-gradient(125deg, rgba(15, 23, 42, 0.97), rgba(61, 42, 111, 0.95) 58%, rgba(67, 56, 202, 0.9));
    box-shadow: 0 26px 70px rgba(47, 35, 90, 0.23);
    isolation: isolate;
}

.academy-welcome::after {
    position: absolute;
    z-index: -1;
    right: -7rem;
    bottom: -8rem;
    width: 25rem;
    height: 25rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    box-shadow: 0 0 0 2.8rem rgba(255, 255, 255, 0.025), 0 0 0 5.6rem rgba(255, 255, 255, 0.018);
    content: '';
}

.academy-welcome__glow {
    position: absolute;
    z-index: -1;
    border-radius: 999px;
    filter: blur(2px);
    pointer-events: none;
}

.academy-welcome__glow--one {
    top: -5rem;
    left: 35%;
    width: 15rem;
    height: 15rem;
    background: rgba(168, 85, 247, 0.28);
}

.academy-welcome__glow--two {
    right: 10%;
    bottom: -7rem;
    width: 18rem;
    height: 18rem;
    background: rgba(14, 165, 233, 0.18);
}

.academy-welcome__intro {
    position: relative;
    z-index: 1;
}

.academy-welcome__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 0.9rem;
    color: rgba(237, 233, 254, 0.83);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.academy-welcome__pulse {
    width: 0.55rem;
    height: 0.55rem;
    border: 2px solid rgba(255, 255, 255, 0.68);
    border-radius: 999px;
    background: #34d399;
    box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.12);
}

.academy-welcome h2 {
    margin: 0;
    max-width: 13ch;
    font-size: clamp(1.9rem, 3.8vw, 3.15rem);
    font-weight: 850;
    line-height: 1.02;
    letter-spacing: -0.055em;
}

.academy-welcome__intro > p {
    max-width: 38rem;
    margin: 1rem 0 1.2rem;
    color: rgba(237, 233, 254, 0.78);
    line-height: 1.65;
}

.academy-welcome__date {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.86);
    background: rgba(255, 255, 255, 0.07);
    font-size: 0.78rem;
    font-weight: 650;
}

.academy-welcome__date svg {
    width: 1rem;
    height: 1rem;
    color: #fbbf24;
}

.academy-welcome__actions {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.academy-quick-action {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.8rem;
    align-items: center;
    min-height: 90px;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 17px;
    color: #fff;
    background: rgba(255, 255, 255, 0.075);
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    transition: transform 170ms ease, background-color 170ms ease, border-color 170ms ease;
}

.academy-quick-action:hover {
    border-color: rgba(255, 255, 255, 0.28);
    color: #fff;
    background: rgba(255, 255, 255, 0.13);
    transform: translateY(-3px);
}

.academy-quick-action__icon {
    display: grid;
    width: 2.75rem;
    height: 2.75rem;
    place-items: center;
    border-radius: 13px;
}

.academy-quick-action__icon svg {
    width: 1.3rem;
    height: 1.3rem;
}

.academy-quick-action--violet .academy-quick-action__icon { color: #ddd6fe; background: rgba(139, 92, 246, 0.24); }
.academy-quick-action--sky .academy-quick-action__icon { color: #bae6fd; background: rgba(14, 165, 233, 0.2); }
.academy-quick-action--emerald .academy-quick-action__icon { color: #a7f3d0; background: rgba(16, 185, 129, 0.2); }
.academy-quick-action--amber .academy-quick-action__icon { color: #fde68a; background: rgba(245, 158, 11, 0.2); }

.academy-quick-action strong,
.academy-quick-action small {
    display: block;
}

.academy-quick-action strong {
    font-size: 0.88rem;
    font-weight: 750;
}

.academy-quick-action small {
    margin-top: 0.16rem;
    color: rgba(237, 233, 254, 0.66);
    font-size: 0.72rem;
}

.academy-quick-action__arrow {
    width: 1rem;
    height: 1rem;
    color: rgba(255, 255, 255, 0.48);
}

/* Cards, tables and forms */
body.fi-panel-academy .fi-wi-stats-overview-stat,
body.fi-panel-academy .fi-section,
body.fi-panel-academy .fi-ta-ctn {
    border: 1px solid var(--academy-border);
    border-radius: var(--academy-radius);
    background: var(--academy-surface);
    box-shadow: var(--academy-shadow);
    backdrop-filter: blur(10px);
}

body.fi-panel-academy .fi-wi-stats-overview-stat {
    position: relative;
    overflow: hidden;
    transition: transform 170ms ease, box-shadow 170ms ease;
}

body.fi-panel-academy .fi-wi-stats-overview-stat::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #8b5cf6, #38bdf8, #34d399);
    opacity: 0.72;
    content: '';
}

body.fi-panel-academy .fi-wi-stats-overview-stat:hover {
    box-shadow: 0 22px 54px rgba(45, 35, 80, 0.13);
    transform: translateY(-3px);
}

body.fi-panel-academy .fi-ta-header,
body.fi-panel-academy .fi-ta-header-toolbar,
body.fi-panel-academy .fi-ta-content-header {
    background: rgba(248, 247, 251, 0.7);
}

body.fi-panel-academy .fi-ta-row {
    transition: background-color 120ms ease;
}

body.fi-panel-academy .fi-ta-row:hover {
    background: rgba(139, 92, 246, 0.035);
}

body.fi-panel-academy .fi-input-wrp,
body.fi-panel-academy .fi-select-input,
body.fi-panel-academy .fi-fo-rich-editor {
    border-radius: 12px;
    box-shadow: 0 0 0 1px rgba(100, 116, 139, 0.16);
    transition: box-shadow 140ms ease;
}

body.fi-panel-academy .fi-input-wrp:focus-within,
body.fi-panel-academy .fi-select-input:focus-within {
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.13), 0 0 0 1px rgba(124, 58, 237, 0.7);
}

body.fi-panel-academy .fi-btn {
    border-radius: 11px;
    font-weight: 720;
    letter-spacing: -0.01em;
}

body.fi-panel-academy .fi-btn.fi-color-primary {
    background: linear-gradient(105deg, #7c3aed, #6366f1);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.22);
}

body.fi-panel-academy .fi-badge {
    border-radius: 999px;
    font-weight: 720;
}

/* Smart alert center */
.academy-alert-center {
    overflow: hidden;
    padding: clamp(1.15rem, 2vw, 1.6rem);
    border: 1px solid rgba(139, 92, 246, 0.13);
    border-radius: var(--academy-radius);
    background: var(--academy-surface);
    box-shadow: var(--academy-shadow);
}

.academy-alert-center > header {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.academy-alert-center h3 {
    margin-top: 0.2rem;
    color: var(--academy-ink);
    font-size: 1.12rem;
    font-weight: 800;
    letter-spacing: -0.025em;
}

.academy-alert-center__eyebrow {
    display: inline-flex;
    gap: 0.35rem;
    align-items: center;
    color: #7c3aed;
    font-size: 0.68rem;
    font-weight: 850;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.academy-alert-center__eyebrow svg {
    width: 0.9rem;
    height: 0.9rem;
}

.academy-alert-center__summary {
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    color: #6d28d9;
    background: #f3e8ff;
    font-size: 0.72rem;
    font-weight: 800;
    white-space: nowrap;
}

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

.academy-alert-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    gap: 0.7rem;
    align-items: center;
    min-height: 78px;
    padding: 0.8rem;
    border: 1px solid var(--academy-border);
    border-radius: 15px;
    color: var(--academy-ink);
    background: rgba(255, 255, 255, 0.58);
    transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.academy-alert-card:hover {
    border-color: rgba(124, 58, 237, 0.24);
    box-shadow: 0 12px 28px rgba(42, 33, 73, 0.09);
    transform: translateY(-2px);
}

.academy-alert-card__icon {
    display: grid;
    width: 2.45rem;
    height: 2.45rem;
    border-radius: 12px;
    place-items: center;
}

.academy-alert-card__icon svg {
    width: 1.2rem;
    height: 1.2rem;
}

.academy-alert-card--danger .academy-alert-card__icon { color: #be123c; background: #fff1f2; }
.academy-alert-card--warning .academy-alert-card__icon { color: #b45309; background: #fffbeb; }
.academy-alert-card--info .academy-alert-card__icon { color: #0369a1; background: #f0f9ff; }
.academy-alert-card--success .academy-alert-card__icon { color: #047857; background: #ecfdf5; }

.academy-alert-card__content {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.academy-alert-card__content strong {
    overflow: hidden;
    font-size: 0.82rem;
    font-weight: 780;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.academy-alert-card__content small {
    overflow: hidden;
    margin-top: 0.15rem;
    color: var(--academy-muted);
    font-size: 0.68rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.academy-alert-card__count {
    display: grid;
    min-width: 1.85rem;
    height: 1.85rem;
    padding-inline: 0.4rem;
    border-radius: 999px;
    color: #fff;
    background: #1f2937;
    font-size: 0.72rem;
    font-weight: 850;
    place-items: center;
}

.academy-alert-card__arrow {
    width: 0.9rem;
    color: #94a3b8;
}

.academy-alert-center__clear {
    display: flex;
    gap: 0.9rem;
    align-items: center;
    padding: 1rem;
    border-radius: 15px;
    color: #047857;
    background: rgba(236, 253, 245, 0.8);
}

.academy-alert-center__clear > svg { width: 2rem; height: 2rem; }
.academy-alert-center__clear div { display: flex; flex-direction: column; }
.academy-alert-center__clear strong { font-size: 0.88rem; }
.academy-alert-center__clear span { color: #475569; font-size: 0.75rem; }

/* Visual weekly calendar */
.academy-schedule-toolbar {
    display: flex;
    gap: 1.25rem;
    align-items: flex-end;
    justify-content: space-between;
}

.academy-schedule-toolbar__nav,
.academy-schedule-toolbar__filters {
    display: flex;
    gap: 0.55rem;
    align-items: center;
}

.academy-schedule-toolbar__nav > div {
    display: flex;
    min-width: 220px;
    margin-left: 0.35rem;
    flex-direction: column;
}

.academy-schedule-toolbar__nav strong {
    color: var(--academy-ink);
    font-size: 0.9rem;
}

.academy-schedule-toolbar__nav small {
    color: var(--academy-muted);
    font-size: 0.7rem;
}

.academy-schedule-toolbar__filters label {
    display: flex;
    min-width: 150px;
    flex-direction: column;
}

.academy-schedule-toolbar__filters label > span {
    margin-bottom: 0.3rem;
    color: var(--academy-muted);
    font-size: 0.68rem;
    font-weight: 750;
}

.academy-schedule-toolbar__filters select {
    min-height: 2.25rem;
    padding-inline: 0.65rem;
    border: 1px solid var(--academy-border);
    border-radius: 10px;
    color: var(--academy-ink);
    background: var(--academy-surface);
    font-size: 0.76rem;
}

.academy-week-calendar {
    display: grid;
    grid-template-columns: repeat(7, minmax(185px, 1fr));
    gap: 0.7rem;
    overflow-x: auto;
    padding: 0.2rem 0.15rem 1rem;
    scrollbar-color: rgba(124, 58, 237, 0.4) transparent;
}

.academy-calendar-day {
    min-height: 480px;
    overflow: hidden;
    border: 1px solid var(--academy-border);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.68);
    box-shadow: 0 12px 30px rgba(44, 35, 73, 0.055);
}

.academy-calendar-day--today {
    border-color: rgba(124, 58, 237, 0.46);
    box-shadow: 0 16px 36px rgba(109, 40, 217, 0.13);
}

.academy-calendar-day > header {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.05rem 0.5rem;
    align-items: center;
    padding: 0.8rem 0.9rem;
    border-bottom: 1px solid var(--academy-border);
    background: rgba(248, 247, 251, 0.78);
}

.academy-calendar-day--today > header {
    color: #fff;
    background: linear-gradient(105deg, #7c3aed, #6366f1);
}

.academy-calendar-day > header span {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.academy-calendar-day > header strong {
    grid-row: span 2;
    font-size: 1.65rem;
    line-height: 1;
}

.academy-calendar-day > header small {
    color: var(--academy-muted);
    font-size: 0.65rem;
}

.academy-calendar-day--today > header small { color: rgba(255, 255, 255, 0.74); }

.academy-calendar-day__lessons {
    display: flex;
    gap: 0.65rem;
    min-height: 420px;
    padding: 0.65rem;
    flex-direction: column;
}

.academy-lesson-card {
    position: relative;
    padding: 0.78rem;
    border: 1px solid rgba(124, 58, 237, 0.11);
    border-left: 4px solid #8b5cf6;
    border-radius: 13px;
    background: linear-gradient(135deg, rgba(245, 243, 255, 0.96), rgba(255, 255, 255, 0.96));
    box-shadow: 0 8px 18px rgba(54, 42, 90, 0.07);
    cursor: grab;
    transition: box-shadow 140ms ease, transform 140ms ease;
}

.academy-lesson-card:hover {
    box-shadow: 0 12px 24px rgba(54, 42, 90, 0.13);
    transform: translateY(-2px);
}

.academy-lesson-card:active { cursor: grabbing; opacity: 0.72; }
.academy-lesson-card--group { border-left-color: #0ea5e9; }
.academy-lesson-card--online { border-left-color: #10b981; }

.academy-lesson-card__time {
    display: flex;
    gap: 0.3rem;
    align-items: center;
    margin-bottom: 0.4rem;
    color: #7c3aed;
    font-size: 0.68rem;
    font-weight: 800;
}

.academy-lesson-card__time svg { width: 0.8rem; height: 0.8rem; }

.academy-lesson-card > a {
    display: block;
    color: var(--academy-ink);
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.25;
}

.academy-lesson-card > a:hover { color: #7c3aed; }

.student-week-calendar .academy-lesson-card {
    cursor: default;
}

.student-week-calendar .academy-lesson-card:active {
    opacity: 1;
    cursor: default;
}

.student-lesson-card__title {
    display: block;
    color: var(--academy-ink);
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.25;
}

.academy-lesson-card > p {
    overflow: hidden;
    margin-top: 0.25rem;
    color: var(--academy-muted);
    font-size: 0.68rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.academy-lesson-card__meta {
    display: flex;
    gap: 0.3rem;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.65rem;
}

.academy-lesson-card__meta span {
    overflow: hidden;
    padding: 0.2rem 0.38rem;
    border-radius: 6px;
    color: #475569;
    background: rgba(226, 232, 240, 0.62);
    font-size: 0.58rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.academy-calendar-day__empty {
    display: flex;
    gap: 0.55rem;
    align-items: center;
    justify-content: center;
    min-height: 130px;
    color: #94a3b8;
    font-size: 0.68rem;
}

.academy-calendar-day__empty svg { width: 1rem; height: 1rem; }

.academy-schedule-note {
    display: flex;
    gap: 0.45rem;
    align-items: center;
    color: var(--academy-muted);
    font-size: 0.7rem;
}

.academy-schedule-note svg { width: 1rem; height: 1rem; flex: 0 0 auto; }

/* Student 360 profile */
.student-360-hero {
    position: relative;
    display: flex;
    gap: 1.1rem;
    align-items: center;
    overflow: hidden;
    padding: clamp(1.25rem, 2.7vw, 2rem);
    border-radius: 24px;
    color: #fff;
    background:
        radial-gradient(circle at 90% 10%, rgba(125, 211, 252, 0.25), transparent 17rem),
        linear-gradient(120deg, #17142d, #3c286d 58%, #4338ca);
    box-shadow: 0 24px 60px rgba(48, 37, 91, 0.21);
}

.student-360-avatar {
    display: grid;
    width: 4.4rem;
    height: 4.4rem;
    flex: 0 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.36);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.14);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
    font-size: 1.6rem;
    font-weight: 850;
    place-items: center;
}

.student-360-identity { min-width: 0; flex: 1; }

.student-360-eyebrow {
    color: rgba(221, 214, 254, 0.88);
    font-size: 0.66rem;
    font-weight: 850;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.student-360-identity h2 {
    margin-top: 0.15rem;
    font-size: clamp(1.45rem, 2.5vw, 2.1rem);
    font-weight: 850;
    letter-spacing: -0.04em;
}

.student-360-identity p { margin-top: 0.25rem; color: rgba(255, 255, 255, 0.72); font-size: 0.78rem; }

.student-360-status {
    display: flex;
    gap: 0.4rem;
    align-items: center;
    padding: 0.48rem 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.78);
    background: rgba(255, 255, 255, 0.08);
    font-size: 0.7rem;
    font-weight: 750;
}

.student-360-status span { width: 0.45rem; height: 0.45rem; border-radius: 999px; background: #94a3b8; }
.student-360-status--active span { background: #34d399; box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.15); }

.student-360-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 0.85rem;
}

.student-360-metric {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    padding: 1rem;
    border: 1px solid var(--academy-border);
    border-radius: 17px;
    background: var(--academy-surface);
    box-shadow: 0 12px 32px rgba(45, 35, 80, 0.06);
}

.student-360-metric > svg {
    width: 2.4rem;
    height: 2.4rem;
    padding: 0.6rem;
    flex: 0 0 auto;
    border-radius: 12px;
}

.student-360-metric--violet > svg { color: #7c3aed; background: #f5f3ff; }
.student-360-metric--emerald > svg { color: #047857; background: #ecfdf5; }
.student-360-metric--amber > svg { color: #b45309; background: #fffbeb; }
.student-360-metric--sky > svg { color: #0369a1; background: #f0f9ff; }
.student-360-metric--rose > svg { color: #be123c; background: #fff1f2; }

.student-360-metric div { display: flex; min-width: 0; flex-direction: column; }
.student-360-metric span { color: var(--academy-muted); font-size: 0.66rem; font-weight: 700; }
.student-360-metric strong { color: var(--academy-ink); font-size: 1.15rem; font-weight: 850; }
.student-360-metric small { overflow: hidden; color: var(--academy-muted); font-size: 0.62rem; text-overflow: ellipsis; white-space: nowrap; }

.student-360-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.student-360-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.student-360-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem 1.2rem;
}

.student-360-details div { min-width: 0; }
.student-360-details dt { color: var(--academy-muted); font-size: 0.65rem; font-weight: 700; }
.student-360-details dd { overflow: hidden; margin-top: 0.16rem; color: var(--academy-ink); font-size: 0.8rem; font-weight: 720; text-overflow: ellipsis; }

.student-360-note { margin-top: 1rem; padding: 0.8rem; border-radius: 12px; color: #5b21b6; background: rgba(245, 243, 255, 0.8); }
.student-360-note strong { font-size: 0.68rem; }
.student-360-note p { margin-top: 0.25rem; color: var(--academy-muted); font-size: 0.73rem; white-space: pre-line; }

.student-360-list,
.student-360-timeline,
.student-360-compact-list { display: flex; gap: 0.25rem; flex-direction: column; }

.student-360-list__row,
.student-360-timeline > div {
    display: flex;
    gap: 0.65rem;
    align-items: center;
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--academy-border);
}

.student-360-list__row:last-child,
.student-360-timeline > div:last-child { border-bottom: 0; }

.student-360-list__icon {
    display: grid;
    width: 2rem;
    height: 2rem;
    flex: 0 0 auto;
    border-radius: 9px;
    color: #7c3aed;
    background: #f5f3ff;
    place-items: center;
}

.student-360-list__icon svg { width: 1rem; height: 1rem; }
.student-360-list__row > div:nth-child(2), .student-360-timeline > div > div { display: flex; min-width: 0; flex: 1; flex-direction: column; }
.student-360-list__row strong, .student-360-timeline strong { color: var(--academy-ink); font-size: 0.75rem; font-weight: 760; }
.student-360-list__row span, .student-360-timeline small { color: var(--academy-muted); font-size: 0.63rem; }

.student-360-list__end { display: flex; margin-left: auto; flex: 0 0 auto; flex-direction: column; text-align: right; }
.student-360-list__end strong { font-size: 0.7rem; }
.student-360-list__end span { color: var(--academy-muted); font-size: 0.62rem; }

.student-360-dot { width: 0.55rem; height: 0.55rem; flex: 0 0 auto; border-radius: 999px; background: #94a3b8; }
.student-360-dot--present, .student-360-dot--paid, .student-360-dot--completed { background: #10b981; }
.student-360-dot--late, .student-360-dot--partial, .student-360-dot--pending { background: #f59e0b; }
.student-360-dot--absent, .student-360-dot--overdue { background: #f43f5e; }
.student-360-dot--excused, .student-360-dot--waived { background: #0ea5e9; }

.student-360-badge { margin-left: auto; padding: 0.22rem 0.45rem; border-radius: 999px; color: #475569; background: #f1f5f9; font-size: 0.58rem; font-weight: 760; white-space: nowrap; }
.student-360-badge--present, .student-360-badge--paid, .student-360-badge--completed, .student-360-badge--submitted { color: #047857; background: #ecfdf5; }
.student-360-badge--late, .student-360-badge--overdue, .student-360-badge--absent, .student-360-badge--rejected { color: #be123c; background: #fff1f2; }
.student-360-badge--pending, .student-360-badge--assigned, .student-360-badge--requested, .student-360-badge--approved { color: #b45309; background: #fffbeb; }
.student-360-badge--scheduled { color: #0369a1; background: #f0f9ff; }

.student-360-compact-list article { position: relative; display: flex; padding: 0.75rem 0; border-bottom: 1px solid var(--academy-border); flex-direction: column; }
.student-360-compact-list article:last-child { border-bottom: 0; }
.student-360-compact-list strong { padding-right: 5rem; color: var(--academy-ink); font-size: 0.76rem; }
.student-360-compact-list small { margin-top: 0.1rem; color: var(--academy-muted); font-size: 0.62rem; }
.student-360-compact-list p { margin-top: 0.4rem; color: var(--academy-muted); font-size: 0.7rem; line-height: 1.45; }
.student-360-compact-list article > span:not(.student-360-badge) { margin-top: 0.35rem; color: #7c3aed; font-size: 0.65rem; }
.student-360-compact-list .student-360-badge { position: absolute; top: 0.72rem; right: 0; }
.student-360-empty { padding: 1.3rem 0; color: var(--academy-muted); font-size: 0.72rem; text-align: center; }

/* Login */
body.fi-panel-academy .fi-simple-layout {
    background:
        radial-gradient(circle at 15% 20%, rgba(139, 92, 246, 0.28), transparent 28rem),
        radial-gradient(circle at 85% 75%, rgba(14, 165, 233, 0.2), transparent 26rem),
        linear-gradient(145deg, #15112a, #1e2b47);
}

body.fi-panel-academy .fi-simple-main {
    border: 1px solid rgba(255, 255, 255, 0.68);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 30px 90px rgba(8, 11, 28, 0.36);
    backdrop-filter: blur(18px);
}

/* Dark mode */
.dark body.fi-panel-academy {
    --academy-ink: #f3f0ff;
    --academy-muted: #a7b0c3;
    --academy-surface: rgba(28, 25, 45, 0.86);
    --academy-border: rgba(196, 181, 253, 0.12);
    --academy-shadow: 0 18px 50px rgba(5, 4, 14, 0.28);
    background:
        radial-gradient(circle at 83% 8%, rgba(124, 58, 237, 0.16), transparent 25rem),
        radial-gradient(circle at 13% 87%, rgba(14, 165, 233, 0.1), transparent 28rem),
        #100e1a;
}

.dark body.fi-panel-academy .fi-topbar {
    border-color: rgba(196, 181, 253, 0.1);
    background: rgba(23, 20, 38, 0.82);
}

.dark body.fi-panel-academy .fi-ta-header,
.dark body.fi-panel-academy .fi-ta-header-toolbar,
.dark body.fi-panel-academy .fi-ta-content-header {
    background: rgba(36, 31, 55, 0.68);
}

.dark body.fi-panel-academy .fi-ta-row:hover {
    background: rgba(167, 139, 250, 0.055);
}

.dark .academy-alert-card,
.dark .academy-calendar-day,
.dark .student-360-metric {
    background: rgba(34, 30, 52, 0.86);
}

.dark .academy-alert-center__summary {
    color: #ddd6fe;
    background: rgba(109, 40, 217, 0.3);
}

.dark .academy-alert-card--danger .academy-alert-card__icon,
.dark .student-360-metric--rose > svg { color: #fda4af; background: rgba(159, 18, 57, 0.24); }
.dark .academy-alert-card--warning .academy-alert-card__icon,
.dark .student-360-metric--amber > svg { color: #fcd34d; background: rgba(146, 64, 14, 0.24); }
.dark .academy-alert-card--info .academy-alert-card__icon,
.dark .student-360-metric--sky > svg { color: #7dd3fc; background: rgba(3, 105, 161, 0.24); }
.dark .academy-alert-card--success .academy-alert-card__icon { color: #6ee7b7; background: rgba(4, 120, 87, 0.24); }
.dark .student-360-metric--emerald > svg { color: #6ee7b7; background: rgba(4, 120, 87, 0.24); }
.dark .student-360-metric--violet > svg,
.dark .student-360-list__icon { color: #c4b5fd; background: rgba(109, 40, 217, 0.24); }

.dark .academy-alert-center__clear {
    color: #6ee7b7;
    background: rgba(4, 120, 87, 0.18);
}

.dark .academy-alert-center__clear span { color: #a7b0c3; }

.dark .academy-calendar-day > header {
    background: rgba(38, 33, 57, 0.9);
}

.dark .academy-calendar-day--today > header {
    background: linear-gradient(105deg, #6d28d9, #4f46e5);
}

.dark .academy-lesson-card {
    border-color: rgba(167, 139, 250, 0.18);
    background: linear-gradient(135deg, rgba(54, 45, 82, 0.95), rgba(34, 30, 52, 0.96));
}

.dark .academy-lesson-card__meta span,
.dark .student-360-badge {
    color: #cbd5e1;
    background: rgba(71, 85, 105, 0.45);
}

.dark .student-360-note {
    color: #ddd6fe;
    background: rgba(109, 40, 217, 0.18);
}

.dark .student-360-badge--present,
.dark .student-360-badge--paid,
.dark .student-360-badge--completed,
.dark .student-360-badge--submitted { color: #6ee7b7; background: rgba(4, 120, 87, 0.22); }
.dark .student-360-badge--late,
.dark .student-360-badge--overdue,
.dark .student-360-badge--absent,
.dark .student-360-badge--rejected { color: #fda4af; background: rgba(159, 18, 57, 0.22); }
.dark .student-360-badge--pending,
.dark .student-360-badge--assigned,
.dark .student-360-badge--requested,
.dark .student-360-badge--approved { color: #fcd34d; background: rgba(146, 64, 14, 0.22); }
.dark .student-360-badge--scheduled { color: #7dd3fc; background: rgba(3, 105, 161, 0.22); }

.dark body.fi-panel-academy .fi-simple-main {
    border-color: rgba(196, 181, 253, 0.12);
    background: rgba(24, 21, 39, 0.93);
}

@media (max-width: 1100px) {
    .academy-welcome {
        grid-template-columns: 1fr;
    }

    .academy-welcome h2 {
        max-width: none;
    }

    .academy-schedule-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .academy-schedule-toolbar__filters {
        align-items: flex-end;
    }

    .student-360-metrics,
    .student-360-grid--three {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    body.fi-panel-academy .fi-main {
        padding-top: 0.8rem;
    }

    .academy-welcome {
        gap: 1.4rem;
        min-height: auto;
        padding: 1.35rem;
        border-radius: 22px;
    }

    .academy-welcome__actions {
        grid-template-columns: 1fr;
    }

    .academy-quick-action {
        min-height: 76px;
    }

    .academy-alert-center > header,
    .academy-schedule-toolbar__nav,
    .academy-schedule-toolbar__filters,
    .student-360-hero {
        align-items: stretch;
        flex-direction: column;
    }

    .academy-alert-center__summary {
        align-self: flex-start;
    }

    .academy-schedule-toolbar__nav > div {
        min-width: 0;
        margin: 0.35rem 0 0;
        order: -1;
    }

    .academy-schedule-toolbar__nav .fi-btn {
        align-self: flex-start;
    }

    .academy-schedule-toolbar__filters label {
        width: 100%;
        min-width: 0;
    }

    .academy-week-calendar {
        grid-template-columns: repeat(7, 80vw);
        scroll-snap-type: x mandatory;
    }

    .academy-calendar-day {
        min-height: 390px;
        scroll-snap-align: start;
    }

    .academy-calendar-day__lessons { min-height: 330px; }

    .student-360-avatar { width: 3.7rem; height: 3.7rem; }

    .student-360-status { align-self: flex-start; }

    .student-360-metrics,
    .student-360-grid,
    .student-360-grid--three {
        grid-template-columns: 1fr;
    }
}

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