/* =====================================================================
   Glass / silver theme with curved sidebar
   ===================================================================== */
:root {
  --sb-w: 280px;
  --sb-w-collapsed: 92px;
  --glass: rgba(255, 255, 255, .07);
  --glass-strong: rgba(255, 255, 255, .12);
  --glass-border: rgba(255, 255, 255, .14);
  --text-dim: rgba(255, 255, 255, .62);
  --font: "Outfit", "Hind Siliguri", system-ui, -apple-system, "Segoe UI", sans-serif;
}
body { font-family: var(--font); font-size: 15px; }
.min-w-0 { min-width: 0; }

body.app {
  background: #111214 url("bg-waves.svg") center / cover fixed no-repeat;
  color: #e9eaee;
  min-height: 100vh;
  --bs-link-color-rgb: 205, 214, 228;
  --bs-link-hover-color-rgb: 255, 255, 255;
}
.app .table a { text-decoration: none; }
.app ::-webkit-scrollbar { width: 6px; height: 6px; }
.app ::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .18); border-radius: 6px; }

/* ---------- layout ---------- */
.layout { display: flex; min-height: 100vh; }
.main-content { flex: 1; min-width: 0; padding: 18px 22px 28px; }
.content { min-width: 0; }

/* ---------- sidebar shell ---------- */
.sb-wrap { width: var(--sb-w); flex-shrink: 0; transition: width .25s ease; }
@media (min-width: 992px) {
  .sb-wrap { position: sticky; top: 0; height: 100vh; padding: 16px 0 16px 16px; }
}
@media (max-width: 991.98px) {
  .sb-wrap.offcanvas-lg { --bs-offcanvas-bg: transparent; --bs-offcanvas-width: 300px; border: 0 !important; padding: 12px; }
}
.sb-shell { position: relative; height: 100%; isolation: isolate; }
.sb-glass {
  position: absolute; inset: 0; z-index: -1;
  border-radius: 28px; /* fallback until JS builds the curved path */
  background:
    radial-gradient(120% 60% at 0% 0%, rgba(255, 255, 255, .22), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .06) 45%, rgba(255, 255, 255, .12));
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35);
}
.sb-edge { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: -1; }
.sb-inner { height: 100%; display: flex; flex-direction: column; padding: 18px 22px 16px; gap: 10px; }

/* brand row */
.sb-brand { display: flex; align-items: center; gap: 10px; }
.sb-logo, .sb-collapse {
  width: 32px; height: 32px; flex-shrink: 0; border-radius: 10px; display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .08); color: #fff;
}
.sb-collapse { margin-left: auto; cursor: pointer; transition: background .2s; }
.sb-collapse:hover { background: rgba(255, 255, 255, .18); }
.sb-name { font-weight: 600; font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: rgba(255, 255, 255, .9); }
.sb-name.spaced { text-transform: uppercase; letter-spacing: .22em; font-size: .78rem; }

/* profile */
.sb-profile { display: flex; align-items: center; gap: 12px; padding: 10px 0 14px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.sb-avatar { position: relative; width: 52px; height: 52px; flex-shrink: 0; border-radius: 50%; padding: 2px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .8), rgba(255, 255, 255, .15)); }
.sb-avatar img, .sb-avatar span { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: grid; place-items: center;
  background: linear-gradient(135deg, #4b5563, #111827); color: #fff; font-weight: 700; font-size: 1.25rem; }
.sb-online { position: absolute; right: 1px; bottom: 2px; width: 12px; height: 12px; border-radius: 50%; background: #22c55e; border: 2px solid #1f2125; }
.sb-uname { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; font-weight: 600; font-size: 1.05rem; color: #fff; }
.sb-uname > .text-truncate { min-width: 0; max-width: 100%; }
.sb-role { flex-shrink: 0; font-size: .62rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 2px 7px; border-radius: 6px;
  background: linear-gradient(180deg, #fff, #d4d7dd); color: #2b2d31; }
.sb-uid { font-size: .78rem; color: var(--text-dim); }

/* menu */
/* Letter-spacing only for Latin text: it splits Bangla conjuncts apart */
html:not([lang="en"]) .sb-label,
html:not([lang="en"]) .sb-role { letter-spacing: 0 !important; }
.sb-label { font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 255, 255, .45); margin-top: 2px; }
.sb-menu { flex: 1; overflow-y: auto; overflow-x: hidden; margin: 0 -6px; padding: 0 6px; scrollbar-width: none; }
.sb-menu::-webkit-scrollbar { display: none; }
.sb-link {
  display: flex; align-items: center; gap: 11px; padding: 6px 8px; margin: 2px 0; border-radius: 12px;
  color: rgba(255, 255, 255, .8); text-decoration: none; font-size: .93rem; background: none; border: 0; text-align: left;
  transition: background .18s, color .18s;
}
.sb-link:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.sb-ico { width: 30px; height: 30px; flex-shrink: 0; border-radius: 9px; display: grid; place-items: center; font-size: .9rem;
  border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .05); transition: all .18s; }
.sb-link.active { color: #fff; font-weight: 500; }
.sb-link.active .sb-ico { background: linear-gradient(180deg, #fff, #d9dce2); color: #1d1f23; border-color: #fff; box-shadow: 0 4px 14px rgba(0, 0, 0, .35); }
.sb-chev { margin-left: auto; font-size: .7rem; opacity: .55; transition: transform .2s; }
.sb-group:not(.collapsed) .sb-chev { transform: rotate(90deg); opacity: .9; }

.sb-sub { position: relative; margin: 2px 0 6px 22px; padding-left: 16px; border-left: 1px solid rgba(255, 255, 255, .2); }
.sb-sublink { position: relative; display: block; padding: 6px 12px; margin: 2px 0; border-radius: 11px; font-size: .86rem;
  color: rgba(255, 255, 255, .62); text-decoration: none; border: 1px solid transparent; transition: all .18s; }
.sb-sublink::before { content: ""; position: absolute; left: -19px; top: 50%; width: 5px; height: 5px; margin-top: -2.5px; border-radius: 50%;
  background: rgba(255, 255, 255, .5); }
.sb-sublink:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.sb-sublink.active {
  color: #fff; font-weight: 500; background: linear-gradient(180deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, .08));
  border-color: rgba(255, 255, 255, .32); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 6px 18px rgba(0, 0, 0, .25);
}
.sb-sublink.active::before { background: #fff; box-shadow: 0 0 8px #fff; }


.sb-bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 8px; }

/* collapsed (desktop) */
@media (min-width: 992px) {
  .sb-collapsed .sb-wrap { width: var(--sb-w-collapsed); }
  .sb-collapsed .sb-inner { padding-left: 14px; padding-right: 14px; align-items: center; }
  .sb-collapsed .sb-text, .sb-collapsed .sb-chev, .sb-collapsed .sb-sub, .sb-collapsed .sb-label { display: none !important; }
  .sb-collapsed .sb-brand { flex-direction: column; }
  .sb-collapsed .sb-collapse { margin-left: 0; }
  .sb-collapsed .sb-collapse i { transform: rotate(180deg); }
  .sb-collapsed .sb-profile { justify-content: center; padding-bottom: 10px; }
  .sb-collapsed .sb-avatar { width: 44px; height: 44px; }
  .sb-collapsed .sb-link { justify-content: center; padding: 6px; }
  .sb-collapsed .sb-menu, .sb-collapsed .sb-bottom { width: 100%; }
}

/* ---------- top bar ---------- */
.topbar { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.page-title { font-size: 1.45rem; font-weight: 600; margin: 0; color: #fff; }
.topbar-sub { font-size: .8rem; color: var(--text-dim); }
.glass-btn { display: inline-flex; align-items: center; justify-content: center; height: 38px; min-width: 38px; padding: 0 12px; border-radius: 12px;
  border: 1px solid var(--glass-border); background: var(--glass); color: #fff; text-decoration: none;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.glass-btn:hover { background: var(--glass-strong); color: #fff; }

/* ---------- glass components on the dark theme ---------- */
.app .card {
  --bs-card-bg: rgba(22, 23, 27, .55);
  --bs-card-border-color: var(--glass-border);
  --bs-card-cap-bg: transparent;
  border-radius: 18px;
  backdrop-filter: blur(16px) saturate(130%); -webkit-backdrop-filter: blur(16px) saturate(130%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 10px 30px rgba(0, 0, 0, .25);
}
.app .card > .list-group { --bs-list-group-bg: transparent; }
.app .card-header, .app .card-footer { border-color: rgba(255, 255, 255, .08); }
.app .bg-white { background-color: transparent !important; }
.app .bg-light, .app .table-light { --bs-table-bg: rgba(255, 255, 255, .05); background-color: rgba(255, 255, 255, .05) !important; }
.app .table { --bs-table-bg: transparent; --bs-table-hover-bg: rgba(255, 255, 255, .05); --bs-table-border-color: rgba(255, 255, 255, .08); }
.table > :not(caption) > * > * { vertical-align: middle; }
.app .table thead th { background: rgba(255, 255, 255, .04); font-weight: 500; font-size: .8rem; color: var(--text-dim); white-space: nowrap; letter-spacing: .02em; }
.app .form-control, .app .form-select { background-color: rgba(0, 0, 0, .25); border-color: rgba(255, 255, 255, .14); }
.app .form-control:focus, .app .form-select:focus { border-color: rgba(255, 255, 255, .45); box-shadow: 0 0 0 .2rem rgba(255, 255, 255, .08); }
.app .nav-tabs { --bs-nav-tabs-border-color: rgba(255, 255, 255, .12); --bs-nav-tabs-link-active-bg: rgba(255, 255, 255, .08); --bs-nav-tabs-link-active-border-color: rgba(255, 255, 255, .15); }
.app .alert { backdrop-filter: blur(10px); border-radius: 14px; }
.app .pagination { --bs-pagination-bg: rgba(255, 255, 255, .06); --bs-pagination-active-bg: #e9eaee; --bs-pagination-active-color: #111; --bs-pagination-active-border-color: #e9eaee; }

.btn-brand {
  background: linear-gradient(180deg, #fbfbfc, #cfd3da); color: #18191c; border: 1px solid rgba(255, 255, 255, .8);
  font-weight: 500; box-shadow: 0 6px 18px rgba(0, 0, 0, .3), inset 0 1px 0 #fff;
}
.btn-brand:hover, .btn-brand:focus { background: linear-gradient(180deg, #fff, #dfe2e7); color: #000; }

/* stat cards */
.stat-card .stat-icon { width: 46px; height: 46px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem;
  border: 1px solid rgba(255, 255, 255, .12); }
.stat-card .stat-value { font-size: 1.45rem; font-weight: 700; line-height: 1.2; color: #fff; }
.stat-card .stat-label { color: var(--text-dim); font-size: .84rem; }
.app a.text-reset .stat-card { transition: transform .2s, border-color .2s; }
.app a.text-reset:hover .stat-card { transform: translateY(-2px); border-color: rgba(255, 255, 255, .3); }

.avatar { width: 38px; height: 38px; object-fit: cover; border-radius: 50%; }
.avatar-lg { width: 120px; height: 120px; object-fit: cover; border-radius: 16px; border: 1px solid rgba(255, 255, 255, .2); }

/* attendance */
.att-radio .btn { min-width: 2.4rem; }
.att-grid td, .att-grid th { padding: .2rem .3rem !important; text-align: center; font-size: .78rem; }
.att-P { color: #4ade80; font-weight: 600; }
.att-A { color: #f87171; font-weight: 600; }
.att-L { color: #fbbf24; font-weight: 600; }
.att-V { color: #38bdf8; font-weight: 600; }

/* ---------- login ---------- */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.login-card { width: 100%; max-width: 410px; }
.login-card .card-body { padding: 2rem !important; }
.login-logo { width: 58px; height: 58px; margin: 0 auto; border-radius: 18px; display: grid; place-items: center; font-size: 1.7rem;
  background: linear-gradient(180deg, #fff, #d4d7dd); color: #1d1f23; box-shadow: 0 10px 26px rgba(0, 0, 0, .4); }

/* ---------- printable documents (receipt, ID card, TC) stay light ---------- */
.doc { background: #fff; color: #000; max-width: 800px; margin: 0 auto; padding: 2rem; border: 1px solid #ddd; }
.id-card { width: 3.375in; min-height: 2.125in; border: 1px solid #1f4e79; border-radius: 10px; overflow: hidden; background: #fff; color: #000; display: inline-block; vertical-align: top; margin: 6px; }
.id-card .id-head { background: #1f4e79; color: #fff; text-align: center; padding: 4px 6px; font-size: 12px; font-weight: 600; }
.id-card .id-body { display: flex; gap: 8px; padding: 8px; font-size: 11px; line-height: 1.35; }
.id-card .id-photo { width: 70px; height: 84px; object-fit: cover; border: 1px solid #ccc; }

@media print {
  .no-print, .sb-wrap, .topbar { display: none !important; }
  body, body.app { background: #fff !important; color: #000; }
  .main-content { padding: 0 !important; }
  .doc { border: none; padding: 0; }
  .app .card { box-shadow: none; backdrop-filter: none; --bs-card-bg: #fff; color: #000; }
}

/* PDF download on app pages: captured light, like printing */
.pdf-capture .no-print, .pdf-capture .sb-wrap, .pdf-capture .topbar { display: none !important; }
.pdf-capture body, .pdf-capture body.app { background: #fff !important; color: #000 !important; }
.pdf-capture .main-content { padding: 0 !important; }
.pdf-capture .app .card, .pdf-capture .card { box-shadow: none !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; --bs-card-bg: #fff; background: #fff !important; color: #000 !important; }
.pdf-capture .table { --bs-table-bg: #fff; --bs-table-color: #000; color: #000; }
.pdf-capture .text-muted, .pdf-capture .text-dim { color: #444 !important; }
.pdf-capture th, .pdf-capture td, .pdf-capture h1, .pdf-capture h2, .pdf-capture h3, .pdf-capture h4, .pdf-capture h5, .pdf-capture h6, .pdf-capture .card-header, .pdf-capture .form-label, .pdf-capture .fw-semibold { color: #000 !important; }
.pdf-capture .main-content *:not(.text-success):not(.text-danger):not(.text-warning):not(.text-info):not(.text-primary):not(.badge):not(.badge *) { color: #000 !important; }
.pdf-capture .table > :not(caption) > * > * { border-color: #ccc !important; }
.pdf-capture .form-control, .pdf-capture .form-select { background: transparent !important; color: #000 !important; border: 0 !important; padding-left: 0 !important; background-image: none !important; font-weight: 600; }
.pdf-capture .btn { display: none !important; }
.pdf-title { font: 700 18px/1.3 "Hind Siliguri", sans-serif; color: #000; border-bottom: 2px solid #1f6f43; padding: 0 0 6px; margin: 0 0 12px; }
.pdf-title small { display: block; font-weight: 400; font-size: 12px; color: #444; }

/* ---------- Phase 2: results & routine ---------- */
.app .table tr.row-fail > td { background-color: rgba(248, 113, 113, .09) !important; }
.app .routine th, .app .routine td { min-width: 6.5rem; }
.app .routine tr.routine-today > * { background-color: rgba(255, 255, 255, .07) !important; }
.app .routine tr.routine-today > th::after { content: " •"; color: #4ade80; }

/* ---------- Phase 4: notifications ---------- */
.notif-menu { width: 340px; max-width: calc(100vw - 24px); --bs-dropdown-bg: rgba(28, 30, 35, .96); backdrop-filter: blur(16px); border-color: var(--glass-border); }
.notif-menu .dropdown-item { white-space: normal; }

/* ---------- Phase 5: public website ---------- */
.text-dim { color: var(--text-dim); }
.site-nav { background: rgba(18, 19, 22, .72); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--glass-border); }
.site-nav .nav-link { color: rgba(255, 255, 255, .75); border-radius: 10px; }
.site-nav .nav-link:hover, .site-nav .nav-link.active { color: #fff; background: rgba(255, 255, 255, .08); }
.site-footer { background: rgba(10, 11, 13, .75); border-top: 1px solid var(--glass-border); backdrop-filter: blur(12px); }
.hero { padding: 72px 0 56px; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.3rem); font-weight: 800; line-height: 1.1; letter-spacing: -.01em; }
.hero .lead { color: rgba(255, 255, 255, .75); max-width: 40rem; }
.feature-tile { height: 100%; }
.feature-tile i { font-size: 1.5rem; }
.person-card img { width: 96px; height: 96px; object-fit: cover; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .25); }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.gallery-grid figure { margin: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--glass-border); background: rgba(0, 0, 0, .25); }
.gallery-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.gallery-grid figcaption { padding: 8px 10px; font-size: .85rem; }
.site-section-title { font-weight: 700; font-size: 1.5rem; margin-bottom: 1rem; }

/* QR scanner */
#qrReader { border-radius: 16px; overflow: hidden; border: 1px solid var(--glass-border) !important; background: rgba(0, 0, 0, .35); }
#qrReader video { border-radius: 16px; }
.scan-result { transition: background .3s; }
.scan-ok { background: rgba(34, 197, 94, .14) !important; }
.scan-warn { background: rgba(250, 178, 25, .14) !important; }
.scan-bad { background: rgba(208, 59, 59, .18) !important; }

/* analytics */
.chart-box { position: relative; height: 280px; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: .82rem; color: var(--text-dim); }
.chart-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

/* Selected list items follow the silver/glass theme instead of Bootstrap blue */
.app .list-group { --bs-list-group-active-bg: rgba(255, 255, 255, .14); --bs-list-group-active-border-color: rgba(255, 255, 255, .22); --bs-list-group-active-color: #fff; }

/* Academic calendar */
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-head { text-align: center; font-size: .75rem; font-weight: 600; opacity: .75; padding: 4px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-cell { min-height: 84px; border-radius: 10px; padding: 4px 5px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .06); overflow: hidden; }
.cal-cell.empty { background: transparent; border-color: transparent; }
.cal-cell.off { background: rgba(220, 53, 69, .12); border-color: rgba(220, 53, 69, .25); }
.cal-cell.off .cal-day { color: #ff7b86; }
.cal-cell.today { outline: 2px solid var(--bs-primary, #6ea8fe); }
.cal-day { font-weight: 700; font-size: .85rem; }
.cal-ev { font-size: .68rem; line-height: 1.2; border-radius: 4px; padding: 1px 4px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 575px) { .cal-cell { min-height: 56px; } .cal-ev { font-size: .6rem; } }
.att-holiday { background: rgba(220, 53, 69, .14) !important; }

/* =====================================================================
   Aurora theme: violet / magenta / cyan background (assets/bg-aurora.png)
   Colours taken from the picture; these rules come last and override the
   silver theme above. Printed documents keep their own white style.
   ===================================================================== */
:root {
  --au-violet: #5b21b6;
  --au-deep: #2a0a5e;
  --au-magenta: #e83cf0;
  --au-pink: #ff7ad9;
  --au-cyan: #22d3ee;
  --au-lav: #e9d5ff;
  --au-grad: linear-gradient(135deg, #e83cf0 0%, #8b5cf6 50%, #22d3ee 100%);
  --glass: rgba(255, 255, 255, .10);
  --glass-strong: rgba(255, 255, 255, .18);
  --glass-border: rgba(255, 255, 255, .22);
  --text-dim: rgba(245, 235, 255, .74);
}
body.app {
  background:
    linear-gradient(180deg, rgba(34, 8, 78, .30), rgba(34, 8, 78, .42)),
    url("bg-aurora.png") center / cover fixed no-repeat,
    linear-gradient(160deg, #4c1d95, #a21caf 55%, #06b6d4);
  background-color: #3b0a8c;
  color: #fbf7ff;
  --bs-link-color-rgb: 240, 217, 255;
  --bs-link-hover-color-rgb: 255, 255, 255;
  --bs-primary: #c026d3; --bs-primary-rgb: 192, 38, 211;
  --bs-info: #22d3ee; --bs-info-rgb: 34, 211, 238;
  --bs-body-color: #fbf7ff;
  --bs-secondary-color: rgba(245, 235, 255, .74);
  --bs-border-color: rgba(255, 255, 255, .2);
}
.app ::-webkit-scrollbar-thumb { background: rgba(232, 60, 240, .45); }
.app ::selection { background: rgba(232, 60, 240, .55); color: #fff; }

/* sidebar: violet glass */
.sb-glass {
  background:
    radial-gradient(120% 55% at 0% 0%, rgba(255, 122, 217, .30), transparent 60%),
    radial-gradient(90% 45% at 100% 100%, rgba(34, 211, 238, .22), transparent 65%),
    linear-gradient(180deg, rgba(76, 29, 149, .55), rgba(46, 12, 102, .45) 50%, rgba(76, 29, 149, .5));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 18px 40px rgba(30, 6, 70, .35);
}
.sb-logo, .sb-collapse { border-color: rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .12); }
.sb-avatar { background: var(--au-grad); }
.sb-avatar img, .sb-avatar span { background: linear-gradient(135deg, #7c3aed, #3b0764); }
.sb-online { border-color: #3b0a8c; }
.sb-role { background: var(--au-grad); color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .25); }
.sb-label { color: rgba(240, 217, 255, .62); }
.sb-link { color: rgba(255, 255, 255, .86); }
.sb-link:hover { background: rgba(255, 255, 255, .12); }
.sb-ico { border-color: rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .08); }
.sb-link.active .sb-ico { background: var(--au-grad); color: #fff; border-color: rgba(255, 255, 255, .6); box-shadow: 0 6px 18px rgba(232, 60, 240, .45); }
.sb-sub { border-left-color: rgba(255, 255, 255, .28); }
.sb-sublink { color: rgba(245, 235, 255, .74); }
.sb-sublink.active { background: linear-gradient(135deg, rgba(232, 60, 240, .35), rgba(34, 211, 238, .22)); border-color: rgba(255, 255, 255, .4); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 6px 18px rgba(46, 12, 102, .35); }
.sb-sublink.active::before { background: var(--au-cyan); box-shadow: 0 0 8px var(--au-cyan); }

/* top bar */
.page-title { color: #fff; text-shadow: 0 2px 14px rgba(232, 60, 240, .45); }
.glass-btn { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .26); }
.glass-btn:hover { background: rgba(255, 255, 255, .22); }

/* cards: deep violet glass, readable over the bright cyan / pink parts */
.app .card {
  --bs-card-bg: rgba(42, 10, 94, .48);
  --bs-card-border-color: rgba(255, 255, 255, .2);
  --bs-card-color: #fbf7ff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 12px 32px rgba(30, 6, 70, .35);
}
.app .card-header, .app .card-footer { border-color: rgba(255, 255, 255, .12); }
.app .bg-light, .app .table-light { --bs-table-bg: rgba(255, 255, 255, .08); background-color: rgba(255, 255, 255, .08) !important; }
.app .table { --bs-table-color: #fbf7ff; --bs-table-hover-bg: rgba(232, 60, 240, .10); --bs-table-hover-color: #fff; --bs-table-border-color: rgba(255, 255, 255, .12); --bs-table-active-bg: rgba(34, 211, 238, .14); }
.app .table thead th { background: rgba(255, 255, 255, .07); color: var(--au-lav); }
.app .form-control, .app .form-select { background-color: rgba(30, 6, 70, .42); border-color: rgba(255, 255, 255, .22); color: #fff; }
.app .form-control::placeholder { color: rgba(240, 217, 255, .55); }
.app .form-control:focus, .app .form-select:focus { border-color: var(--au-magenta); box-shadow: 0 0 0 .2rem rgba(232, 60, 240, .25); background-color: rgba(30, 6, 70, .55); }
.app .form-check-input:checked { background-color: var(--au-magenta); border-color: var(--au-magenta); }
.app .form-switch .form-check-input:focus { box-shadow: 0 0 0 .2rem rgba(232, 60, 240, .25); }
.app .nav-tabs { --bs-nav-tabs-link-active-bg: rgba(232, 60, 240, .18); --bs-nav-tabs-link-active-border-color: rgba(255, 255, 255, .25); --bs-nav-tabs-border-color: rgba(255, 255, 255, .18); }
.app .nav-pills { --bs-nav-pills-link-active-bg: #c026d3; }
.app .list-group { --bs-list-group-bg: transparent; --bs-list-group-border-color: rgba(255, 255, 255, .14); --bs-list-group-color: #fbf7ff; --bs-list-group-action-hover-bg: rgba(255, 255, 255, .08); }
.app .dropdown-menu { --bs-dropdown-bg: rgba(46, 12, 102, .94); --bs-dropdown-border-color: rgba(255, 255, 255, .2); --bs-dropdown-link-hover-bg: rgba(232, 60, 240, .22); --bs-dropdown-link-active-bg: #c026d3; backdrop-filter: blur(16px); }
.notif-menu { --bs-dropdown-bg: rgba(46, 12, 102, .94); }
.app .modal-content { background: rgba(46, 12, 102, .92); border: 1px solid rgba(255, 255, 255, .22); backdrop-filter: blur(18px); color: #fbf7ff; }
.app .offcanvas { --bs-offcanvas-bg: rgba(46, 12, 102, .94); }
.app .pagination { --bs-pagination-bg: rgba(255, 255, 255, .10); --bs-pagination-color: #fbf7ff; --bs-pagination-border-color: rgba(255, 255, 255, .2); --bs-pagination-active-bg: #c026d3; --bs-pagination-active-color: #fff; --bs-pagination-active-border-color: #c026d3; --bs-pagination-hover-bg: rgba(232, 60, 240, .2); }
.app .progress { --bs-progress-bg: rgba(255, 255, 255, .14); }
.app .progress-bar { background: var(--au-grad); }
.app .alert { border-color: rgba(255, 255, 255, .2); }
.app .badge.text-bg-light { background: rgba(255, 255, 255, .85) !important; color: #3b0764 !important; }

/* buttons */
.btn-brand {
  background: var(--au-grad); color: #fff; border: 1px solid rgba(255, 255, 255, .45);
  font-weight: 600; text-shadow: 0 1px 2px rgba(40, 0, 80, .35); box-shadow: 0 8px 22px rgba(192, 38, 211, .38), inset 0 1px 0 rgba(255, 255, 255, .45);
}
.btn-brand:hover, .btn-brand:focus { background: var(--au-grad); color: #fff; filter: brightness(1.1); }
.app .btn-primary { --bs-btn-bg: #c026d3; --bs-btn-border-color: #c026d3; --bs-btn-hover-bg: #a21caf; --bs-btn-hover-border-color: #a21caf; --bs-btn-active-bg: #86198f; }
.app .btn-outline-light { --bs-btn-color: #fff; --bs-btn-border-color: rgba(255, 255, 255, .45); --bs-btn-hover-bg: rgba(255, 255, 255, .16); --bs-btn-hover-color: #fff; --bs-btn-hover-border-color: #fff; }
.app .btn-outline-secondary { --bs-btn-color: var(--au-lav); --bs-btn-border-color: rgba(233, 213, 255, .5); --bs-btn-hover-bg: rgba(233, 213, 255, .16); --bs-btn-hover-color: #fff; --bs-btn-hover-border-color: #fff; }
.app .btn-outline-primary { --bs-btn-color: var(--au-pink); --bs-btn-border-color: var(--au-magenta); --bs-btn-hover-bg: #c026d3; --bs-btn-hover-border-color: #c026d3; --bs-btn-hover-color: #fff; }
.app .btn-outline-info { --bs-btn-color: var(--au-cyan); --bs-btn-border-color: var(--au-cyan); --bs-btn-hover-bg: #0891b2; --bs-btn-hover-border-color: #0891b2; --bs-btn-hover-color: #fff; }
.app .text-primary { color: var(--au-pink) !important; }
.app .text-info { color: var(--au-cyan) !important; }
.app .text-muted { color: var(--text-dim) !important; }

/* stat cards */
.stat-card .stat-icon { border-color: rgba(255, 255, 255, .25); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25); }
.stat-card .stat-value { color: #fff; text-shadow: 0 2px 12px rgba(232, 60, 240, .35); }
.app a.text-reset:hover .stat-card { border-color: rgba(255, 122, 217, .6); }
.avatar-lg { border-color: rgba(255, 255, 255, .35); }

/* login */
.login-logo { background: var(--au-grad); color: #fff; box-shadow: 0 12px 30px rgba(192, 38, 211, .45); }

/* printing and PDF stay white */
@media print { body.app { background: #fff !important; } }
.pdf-capture body.app { background: #fff !important; }
.pdf-capture .app .text-muted, .pdf-capture .text-muted { color: #444 !important; }
/* brighter accents on the violet background */
.app .btn-outline-success { --bs-btn-color: #4ade80; --bs-btn-border-color: rgba(74, 222, 128, .7); --bs-btn-hover-bg: #16a34a; --bs-btn-hover-border-color: #16a34a; --bs-btn-hover-color: #fff; }
.app .btn-outline-danger { --bs-btn-color: #fb7185; --bs-btn-border-color: rgba(251, 113, 133, .75); --bs-btn-hover-bg: #e11d48; --bs-btn-hover-border-color: #e11d48; --bs-btn-hover-color: #fff; }
.app .btn-outline-warning { --bs-btn-color: #fcd34d; --bs-btn-border-color: rgba(252, 211, 77, .75); --bs-btn-hover-bg: #d97706; --bs-btn-hover-border-color: #d97706; --bs-btn-hover-color: #fff; }
.app .text-success { color: #4ade80 !important; } .app .text-danger { color: #fb7185 !important; } .app .text-warning { color: #fcd34d !important; }
.app .bg-success-subtle { background-color: rgba(74, 222, 128, .2) !important; } .app .bg-danger-subtle { background-color: rgba(251, 113, 133, .22) !important; }
.app .bg-warning-subtle { background-color: rgba(252, 211, 77, .22) !important; } .app .bg-info-subtle { background-color: rgba(34, 211, 238, .22) !important; }
.app .bg-primary-subtle { background-color: rgba(232, 60, 240, .24) !important; } .app .bg-secondary-subtle { background-color: rgba(255, 255, 255, .14) !important; }
.pdf-capture .text-success, .pdf-capture .text-danger, .pdf-capture .text-warning { filter: brightness(.7); }
