/* =====================================================================
   CCBST Past Students — "Aurora Paper" design system (light only)
   Warm tinted neutrals + iris/coral accents, animated aurora backdrop.
   Layered on top of Filament.
   ===================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
    color-scheme: light;
    --cc-ink: #1b1530;
    --cc-ink-2: #3a3253;
    --cc-muted: #70688a;
    --cc-line: #ebe5f0;
    --cc-paper: #faf7f4;
    --cc-card: #ffffff;
    --cc-card-2: #fcfaf8;
    --cc-iris: #5b3df5;
    --cc-iris-2: #8b6cff;
    --cc-coral: #ff6b4a;
    --cc-peach: #ffc9a8;
    --cc-sky: #9fd3ff;
    --cc-lilac: #cdb8ff;
    --cc-radius: 20px;
    --cc-radius-sm: 12px;
    --cc-shadow: 0 1px 2px rgb(60 40 120 / .05), 0 10px 30px -12px rgb(60 40 120 / .14);
    --cc-shadow-lg: 0 2px 4px rgb(60 40 120 / .06), 0 28px 56px -20px rgb(60 40 120 / .28);
    --cc-display: 'Fraunces', Georgia, serif;
    --cc-sans: 'Plus Jakarta Sans', ui-sans-serif, system-ui, sans-serif;
    --cc-ease: cubic-bezier(.2, .8, .2, 1);
}

/* ---------- Keyframes ---------- */
@keyframes cc-drift-a { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(8vw,6vh) scale(1.18); } }
@keyframes cc-drift-b { 0%,100% { transform: translate(0,0) scale(1.1); } 50% { transform: translate(-9vw,8vh) scale(.92); } }
@keyframes cc-drift-c { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(5vw,-7vh) scale(1.2); } }
@keyframes cc-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes cc-float { 0%,100% { transform: translateY(0) rotate(var(--r, 0deg)); } 50% { transform: translateY(-14px) rotate(calc(var(--r, 0deg) + 1.2deg)); } }
@keyframes cc-shimmer { to { background-position: 200% center; } }
@keyframes cc-pulse-ring { 0% { box-shadow: 0 0 0 0 rgb(91 61 245 / .35); } 100% { box-shadow: 0 0 0 14px rgb(91 61 245 / 0); } }
@keyframes cc-draw { to { stroke-dashoffset: 0; } }

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
body.fi-body, .fi-body {
    font-family: var(--cc-sans) !important;
    background: var(--cc-paper) !important;
    color: var(--cc-ink);
    -webkit-font-smoothing: antialiased;
}
/* Animated aurora backdrop (fixed, behind everything) */
.cc-aurora { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.cc-aurora i { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; will-change: transform; }
.cc-aurora i:nth-child(1) { width: 38vw; height: 38vw; left: -8vw; top: -12vw; background: var(--cc-lilac); animation: cc-drift-a 22s ease-in-out infinite; }
.cc-aurora i:nth-child(2) { width: 34vw; height: 34vw; right: -8vw; top: -6vw; background: var(--cc-peach); animation: cc-drift-b 26s ease-in-out infinite; }
.cc-aurora i:nth-child(3) { width: 30vw; height: 30vw; left: 38vw; top: 30vh; background: var(--cc-sky); opacity: .35; animation: cc-drift-c 30s ease-in-out infinite; }
.fi-layout, .fi-main-ctn { position: relative; z-index: 1; background: transparent !important; }
::selection { background: rgb(91 61 245 / .2); }

h1, .fi-header-heading {
    font-family: var(--cc-display) !important;
    letter-spacing: -.02em; font-weight: 600 !important; color: var(--cc-ink);
}
.fi-header-heading { font-size: 2.1rem !important; line-height: 1.12 !important; animation: cc-rise .7s var(--cc-ease) both; }

/* ---------- Brand ---------- */
.cc-brand { display: inline-flex; align-items: center; gap: .7rem; }
.cc-brand__mark {
    display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 13px; color: #fff;
    background: linear-gradient(135deg, var(--cc-iris), var(--cc-coral));
    box-shadow: 0 8px 18px -6px rgb(91 61 245 / .55), inset 0 1px 0 rgb(255 255 255 / .35);
}
.cc-brand__mark svg { width: 1.4rem; height: 1.4rem; }
.cc-brand__text { display: flex; flex-direction: column; line-height: 1; }
.cc-brand__text strong { font-family: var(--cc-display); font-size: 1.2rem; letter-spacing: .02em; color: var(--cc-ink); font-weight: 600; }
.cc-brand__text em { font-style: normal; font-size: .62rem; letter-spacing: .28em; text-transform: uppercase; color: var(--cc-muted); margin-top: .25rem; font-weight: 600; }

/* ---------- Glass top navigation ---------- */
.fi-topbar { position: sticky; top: 0; z-index: 30; }
.fi-topbar > nav {
    background: rgb(255 255 255 / .62) !important;
    backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px);
    border-bottom: 1px solid rgb(255 255 255 / .7) !important;
    box-shadow: 0 1px 0 var(--cc-line), 0 12px 30px -20px rgb(60 40 120 / .3) !important;
    --tw-ring-shadow: 0 0 #0000 !important;
    min-height: 4.25rem; padding-inline: 1.5rem !important;
}
.fi-topbar-item-button {
    border-radius: 999px !important; padding: .5rem 1rem !important; font-weight: 600; font-size: .86rem;
    color: var(--cc-muted); transition: all .25s var(--cc-ease);
}
.fi-topbar-item-button:hover { background: rgb(91 61 245 / .08) !important; color: var(--cc-ink) !important; }
.fi-topbar-item.fi-active .fi-topbar-item-button, .fi-topbar-item-active .fi-topbar-item-button {
    background: linear-gradient(135deg, var(--cc-iris), var(--cc-iris-2)) !important; color: #fff !important;
    box-shadow: 0 8px 18px -8px rgb(91 61 245 / .7);
}
.fi-topbar-item.fi-active .fi-topbar-item-button *, .fi-topbar-item-active .fi-topbar-item-button * { color: #fff !important; }
.fi-avatar { box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgb(91 61 245 / .35); }

/* Mobile drawer */
.fi-sidebar, .fi-sidebar-header { background: rgb(255 255 255 / .92) !important; backdrop-filter: blur(18px); border-color: var(--cc-line) !important; }
.fi-sidebar-item-button { border-radius: 12px !important; font-weight: 600; }
.fi-sidebar-item.fi-active > .fi-sidebar-item-button { background: linear-gradient(135deg, var(--cc-iris), var(--cc-iris-2)) !important; }
.fi-sidebar-item.fi-active .fi-sidebar-item-label, .fi-sidebar-item.fi-active svg { color: #fff !important; }

/* ---------- Page shell ---------- */
.fi-main { max-width: 90rem !important; padding-top: 1.5rem; }
.fi-header { margin-bottom: .75rem; }
.fi-breadcrumbs-item-label { font-size: .78rem; font-weight: 600; color: var(--cc-muted); }

/* ---------- Cards ---------- */
.fi-section, .fi-ta-ctn, .fi-wi-stats-overview-stat, .fi-fo-wizard, .fi-in-section {
    background: rgb(255 255 255 / .86) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgb(255 255 255 / .9) !important;
    border-radius: var(--cc-radius) !important;
    box-shadow: var(--cc-shadow), 0 0 0 1px var(--cc-line) !important;
    --tw-ring-shadow: 0 0 #0000 !important; --tw-ring-color: transparent !important;
}
.fi-section { animation: cc-rise .6s var(--cc-ease) both; }
.fi-section-header-heading, .fi-ta-header-heading { font-weight: 700 !important; letter-spacing: -.01em; }
.fi-section-header-description { color: var(--cc-muted) !important; }

/* ---------- Bento stat tiles ---------- */
.fi-wi-stats-overview-stat {
    position: relative; overflow: hidden; padding: 1.35rem 1.45rem !important;
    transition: transform .35s var(--cc-ease), box-shadow .35s var(--cc-ease);
    animation: cc-rise .7s var(--cc-ease) both;
}
.fi-wi-stats-overview-stats-ctn > *:nth-child(1) { animation-delay: .05s; } .fi-wi-stats-overview-stats-ctn > *:nth-child(2) { animation-delay: .12s; }
.fi-wi-stats-overview-stats-ctn > *:nth-child(3) { animation-delay: .19s; } .fi-wi-stats-overview-stats-ctn > *:nth-child(4) { animation-delay: .26s; }
.fi-wi-stats-overview-stats-ctn > *:nth-child(5) { animation-delay: .33s; }
.fi-wi-stats-overview-stat:hover { transform: translateY(-4px); box-shadow: var(--cc-shadow-lg), 0 0 0 1px rgb(91 61 245 / .25) !important; }
.fi-wi-stats-overview-stat::after {
    content: ''; position: absolute; right: -2.5rem; top: -2.5rem; width: 8rem; height: 8rem; border-radius: 50%;
    background: radial-gradient(circle, rgb(139 108 255 / .28), transparent 70%); transition: transform .6s var(--cc-ease);
}
.fi-wi-stats-overview-stat:hover::after { transform: scale(1.5) translate(-8px, 8px); }
.fi-wi-stats-overview-stats-ctn > *:first-child {
    background: linear-gradient(135deg, var(--cc-iris), #7a4dff 55%, var(--cc-coral)) !important; background-size: 160% 160%;
    border-color: transparent !important; box-shadow: 0 24px 44px -18px rgb(91 61 245 / .6) !important;
}
.fi-wi-stats-overview-stats-ctn > *:first-child * { color: #fff !important; }
.fi-wi-stats-overview-stats-ctn > *:first-child::after { background: radial-gradient(circle, rgb(255 255 255 / .35), transparent 70%); }
.fi-wi-stats-overview-stat-label { font-size: .72rem !important; font-weight: 700 !important; letter-spacing: .14em; text-transform: uppercase; color: var(--cc-muted) !important; }
.fi-wi-stats-overview-stat-value { font-family: var(--cc-display); font-size: 2.5rem !important; font-weight: 600 !important; letter-spacing: -.03em; color: var(--cc-ink) !important; line-height: 1.1; font-variant-numeric: tabular-nums; }
.fi-wi-stats-overview-stat-description { font-size: .78rem; font-weight: 600; color: var(--cc-iris) !important; }
.fi-wi-stats-overview-header-heading, .fi-wi-header-heading { font-family: var(--cc-display); font-size: 1.3rem; font-weight: 600; letter-spacing: -.01em; }

/* Five tiles in one row on wide screens, then 3 / 2 / 1 as it narrows */
.fi-wi-stats-overview-stats-ctn { gap: 1rem !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
@media (min-width: 1100px) {
    .fi-wi-stats-overview-stats-ctn { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; }
    .fi-wi-stats-overview-stat { padding: 1.15rem 1.2rem !important; }
    .fi-wi-stats-overview-stat-value { font-size: 2.1rem !important; }
}
@media (max-width: 480px) { .fi-wi-stats-overview-stats-ctn { grid-template-columns: 1fr !important; } }

/* ---------- Tables ---------- */
.fi-ta-ctn { overflow: hidden; animation: cc-rise .7s .15s var(--cc-ease) both; }
.fi-ta-header-ctn, .fi-ta-header-toolbar { background: transparent !important; border-color: var(--cc-line) !important; }
.fi-ta-table thead tr, .fi-ta-header-cell { background: rgb(246 241 250 / .7) !important; }
.fi-ta-header-cell-label { font-size: .68rem !important; font-weight: 700 !important; letter-spacing: .12em; text-transform: uppercase; color: var(--cc-muted) !important; }
.fi-ta-row { transition: background .2s ease, box-shadow .2s ease; }
.fi-ta-row:hover { background: rgb(139 108 255 / .07) !important; box-shadow: inset 3px 0 0 var(--cc-iris); }
.fi-ta-cell, .fi-ta-header-cell { border-color: var(--cc-line) !important; }
.fi-ta-text-item-label { font-weight: 500; color: var(--cc-ink-2); }
.fi-ta-pagination, .fi-ta-footer-ctn { border-color: var(--cc-line) !important; }
.fi-pagination-item-button { border-radius: 10px !important; }
.fi-pagination-item.fi-active .fi-pagination-item-button { background: linear-gradient(135deg, var(--cc-iris), var(--cc-iris-2)) !important; }
.fi-pagination-item.fi-active .fi-pagination-item-button, .fi-pagination-item.fi-active .fi-pagination-item-button * { color: #fff !important; font-weight: 700; }
/* Archive-status rows (class set by the app): complete rows stay neutral; only missing files get a faint coral marker */
.row-status-complete { background: transparent !important; box-shadow: none; }
.row-status-missing { background: rgb(255 107 74 / .07) !important; box-shadow: inset 3px 0 0 var(--cc-coral); }

/* ---------- Buttons ---------- */
.fi-btn { border-radius: 13px !important; font-weight: 600 !important; transition: transform .2s var(--cc-ease), box-shadow .25s, filter .2s; }
.fi-btn:hover { transform: translateY(-2px); }
.fi-btn:active { transform: translateY(0) scale(.98); }
.fi-btn.fi-color-primary:not(.fi-outlined):not(.fi-btn-color-gray) {
    background: linear-gradient(110deg, var(--cc-iris), var(--cc-iris-2), var(--cc-coral), var(--cc-iris)) !important;
    background-size: 250% 100% !important; color: #fff !important;
    box-shadow: 0 12px 24px -10px rgb(91 61 245 / .75), inset 0 1px 0 rgb(255 255 255 / .3);
    transition: background-position .6s var(--cc-ease), transform .2s var(--cc-ease), box-shadow .25s;
}
.fi-btn.fi-color-primary:not(.fi-outlined):hover { background-position: 100% 0 !important; box-shadow: 0 16px 30px -10px rgb(255 107 74 / .55); }
.fi-icon-btn { border-radius: 10px !important; }
.fi-badge { border-radius: 999px !important; font-weight: 600; }

/* ---------- Inputs ---------- */
.fi-input-wrp {
    border-radius: var(--cc-radius-sm) !important; background: #fff !important;
    --tw-ring-color: var(--cc-line) !important; box-shadow: 0 1px 2px rgb(60 40 120 / .05) !important;
    transition: box-shadow .25s ease, transform .25s var(--cc-ease);
}
.fi-input-wrp:focus-within { --tw-ring-color: var(--cc-iris) !important; box-shadow: 0 0 0 5px rgb(91 61 245 / .14) !important; transform: translateY(-1px); }
.fi-fo-field-wrp-label span { font-weight: 600 !important; font-size: .82rem; color: var(--cc-ink-2); }
.fi-tabs-item { border-radius: 10px !important; font-weight: 600; }
.fi-tabs-item.fi-active { background: rgb(91 61 245 / .1) !important; color: var(--cc-iris) !important; }

/* ---------- Overlays ---------- */
.fi-modal-window { border-radius: 24px !important; box-shadow: var(--cc-shadow-lg) !important; border: 1px solid var(--cc-line); animation: cc-rise .4s var(--cc-ease) both; }
.fi-dropdown-panel { border-radius: 16px !important; border: 1px solid var(--cc-line); box-shadow: var(--cc-shadow-lg) !important; backdrop-filter: blur(14px); }
.fi-no-notification { border-radius: 16px !important; box-shadow: var(--cc-shadow-lg) !important; }

/* ---------- Shared text ---------- */
.cc-eyebrow { font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; font-weight: 700; margin: 0;
    background: linear-gradient(90deg, var(--cc-iris), var(--cc-coral)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cc-lede { color: var(--cc-muted); max-width: 34rem; line-height: 1.65; font-size: 1.02rem; margin: 0; }

/* ---------- Auth: split screen ---------- */
.fi-simple-layout { background: var(--cc-paper) !important; min-height: 100vh; }
body.cc-auth .fi-simple-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
body.cc-auth .fi-simple-main-ctn { grid-column: 2; display: flex; align-items: center; justify-content: center; padding: 2rem; position: relative; z-index: 1; }
body.cc-auth .fi-simple-main {
    background: rgb(255 255 255 / .8) !important; backdrop-filter: blur(18px);
    border: 1px solid rgb(255 255 255 / .9); border-radius: 28px !important;
    box-shadow: var(--cc-shadow-lg), 0 0 0 1px var(--cc-line) !important; --tw-ring-shadow: 0 0 #0000 !important;
    max-width: 27rem !important; width: 100%; padding: 2.5rem 2.25rem !important;
    animation: cc-rise .8s .1s var(--cc-ease) both;
}
body.cc-auth .fi-simple-header { align-items: flex-start !important; text-align: left; margin-bottom: 1.5rem; }
body.cc-auth .fi-simple-header-heading { font-family: var(--cc-display); font-size: 2.1rem !important; letter-spacing: -.025em; text-align: left; }
body.cc-auth .fi-logo { display: none; }
body.cc-auth .fi-btn { width: 100%; padding-block: .85rem !important; font-size: .95rem; animation: cc-pulse-ring 2.6s ease-out infinite; }
body.cc-auth .fi-btn:hover { animation: none; }

.cc-auth-panel { position: fixed; inset: 0 auto 0 0; width: 52.4%; z-index: 0; overflow: hidden; background: #f6f0ff; }
.cc-auth-panel .cc-aurora { position: absolute; }
.cc-auth-panel .cc-aurora i { opacity: .8; }
.cc-auth-panel__inner { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; justify-content: space-between; padding: 3rem 3.5rem; }
.cc-auth-panel__copy { max-width: 32rem; }
.cc-auth-panel__copy > * { animation: cc-rise .9s var(--cc-ease) both; }
.cc-auth-panel__copy > :nth-child(1) { animation-delay: .1s; } .cc-auth-panel__copy > :nth-child(2) { animation-delay: .22s; } .cc-auth-panel__copy > :nth-child(3) { animation-delay: .34s; }
.cc-auth-panel__copy h1 { font-size: clamp(2.3rem, 3.8vw, 3.6rem); line-height: 1.05; margin: .8rem 0 1.1rem; }
.cc-auth-panel__copy h1 span {
    font-style: italic; background: linear-gradient(100deg, var(--cc-iris), var(--cc-coral), var(--cc-iris)); background-size: 200% auto;
    -webkit-background-clip: text; background-clip: text; color: transparent; animation: cc-shimmer 6s linear infinite;
}
/* Floating glass "document" cards */
.cc-docs { position: relative; height: 15rem; }
.cc-doc {
    --r: -4deg; position: absolute; display: flex; align-items: center; gap: .85rem; padding: .9rem 1.1rem; width: 17rem;
    background: rgb(255 255 255 / .72); backdrop-filter: blur(14px); border: 1px solid rgb(255 255 255 / .95); border-radius: 18px;
    box-shadow: var(--cc-shadow-lg); animation: cc-float 7s ease-in-out infinite;
}
.cc-doc:nth-child(1) { left: 0; top: 0; --r: -4deg; }
.cc-doc:nth-child(2) { left: 8rem; top: 4.6rem; --r: 3deg; animation-delay: -2.4s; }
.cc-doc:nth-child(3) { left: 1.5rem; top: 9.2rem; --r: -2deg; animation-delay: -4.6s; }
.cc-doc__icon { flex: none; display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 12px; color: #fff; background: linear-gradient(135deg, var(--cc-iris), var(--cc-iris-2)); }
.cc-doc:nth-child(2) .cc-doc__icon { background: linear-gradient(135deg, var(--cc-coral), #ff9a6b); }
.cc-doc:nth-child(3) .cc-doc__icon { background: linear-gradient(135deg, #2f9bff, #6cc5ff); }
.cc-doc__icon svg { width: 1.25rem; height: 1.25rem; }
.cc-doc strong { display: block; font-size: .88rem; color: var(--cc-ink); }
.cc-doc small { display: block; font-size: .72rem; color: var(--cc-muted); margin-top: .1rem; }
.cc-doc__check { margin-left: auto; width: 1.4rem; height: 1.4rem; border-radius: 50%; background: #34be82; display: grid; place-items: center; }
.cc-doc__check svg { width: .8rem; height: .8rem; stroke: #fff; fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 20; stroke-dashoffset: 20; animation: cc-draw .6s 1.2s var(--cc-ease) forwards; }
.cc-auth-mobile-brand { display: none; margin-bottom: 1.75rem; }

@media (max-width: 960px) {
    body.cc-auth .fi-simple-layout { display: flex; }
    body.cc-auth .fi-simple-main-ctn { grid-column: auto; }
    .cc-auth-panel { display: none; }
    .cc-auth-mobile-brand { display: block; }
    body.cc-auth .fi-simple-main { padding: 2rem 1.5rem !important; }
}
@media (max-width: 640px) {
    .fi-header-heading { font-size: 1.6rem !important; }
    .fi-topbar > nav { padding-inline: 1rem !important; }
}
body.cc-auth .fi-simple-page { display: flex; flex-direction: column; }
body.cc-auth .cc-auth-mobile-brand { order: -1; }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .cc-doc__check svg { stroke-dashoffset: 0; }
}
