/* ==========================================================================
   CYBER HUD theme — futuristic admin look (neon cyan on deep navy)
   Active only when <html data-theme="cyber">. Every other theme ignores this file.
   ========================================================================== */

/* elements that exist only for the HUD */
.hud-only, .hud-clock { display: none; }
html[data-theme="cyber"] .hud-only { display: block; }
html[data-theme="cyber"] .hud-clock { display: flex !important; }

html[data-theme="cyber"] {
  --hud-cyan: #19c6ff;
  --hud-blue: #1e7bff;
  --hud-line: rgba(25,198,255,.55);
  --hud-glow: 0 0 14px rgba(25,198,255,.35);
  --font-hud: 'Orbitron', 'Rajdhani', 'Inter', sans-serif;
  --radius: 6px;
}

/* ---------- Page background: faint blueprint grid ---------- */
html[data-theme="cyber"] body { font-family: 'Rajdhani', 'Inter', system-ui, sans-serif; font-size: 15px; font-weight: 500; letter-spacing: .01em; }
html[data-theme="cyber"] .main-content {
  background:
    linear-gradient(rgba(25,198,255,.045) 1px, transparent 1px) 0 0 / 38px 38px,
    linear-gradient(90deg, rgba(25,198,255,.045) 1px, transparent 1px) 0 0 / 38px 38px,
    radial-gradient(900px 420px at 50% -120px, rgba(30,123,255,.28), transparent 70%),
    var(--bg);
  background-attachment: local;
}
html[data-theme="cyber"][data-bs-theme="light"] .main-content {
  background:
    linear-gradient(rgba(11,124,255,.08) 1px, transparent 1px) 0 0 / 38px 38px,
    linear-gradient(90deg, rgba(11,124,255,.08) 1px, transparent 1px) 0 0 / 38px 38px,
    radial-gradient(900px 420px at 50% -120px, rgba(30,123,255,.18), transparent 70%),
    var(--bg);
}

/* ---------- Typography ---------- */
html[data-theme="cyber"] h1, html[data-theme="cyber"] h2, html[data-theme="cyber"] h3,
html[data-theme="cyber"] h4, html[data-theme="cyber"] h5, html[data-theme="cyber"] h6,
html[data-theme="cyber"] .section-title, html[data-theme="cyber"] .auth-title {
  font-family: var(--font-hud); text-transform: uppercase; letter-spacing: .08em; font-weight: 700;
}
html[data-theme="cyber"] .main-content h4.fw-bold { font-size: 1.15rem; }
html[data-theme="cyber"] .main-content h4 > i.bi:first-child { border-radius: 4px; background: rgba(25,198,255,.12); box-shadow: inset 0 0 0 1px var(--hud-line), var(--hud-glow); color: var(--hud-cyan) !important; }
html[data-theme="cyber"] .text-muted, html[data-theme="cyber"] small { letter-spacing: .03em; }
html[data-theme="cyber"] .form-label, html[data-theme="cyber"] .table th, html[data-theme="cyber"] .sidebar-heading, html[data-theme="cyber"] .stat-label-v2, html[data-theme="cyber"] .badge {
  text-transform: uppercase; letter-spacing: .12em; font-family: 'Rajdhani', sans-serif; font-weight: 700;
}
html[data-theme="cyber"] .stat-number-v2, html[data-theme="cyber"] .fs-3.fw-bold, html[data-theme="cyber"] .fs-4.fw-bold, html[data-theme="cyber"] .fs-2.fw-bold,
html[data-theme="cyber"] .stat-card .h3, html[data-theme="cyber"] .stat-card .h4 { font-family: var(--font-hud); font-weight: 700; letter-spacing: .02em; }

/* ---------- Navbar ---------- */
html[data-theme="cyber"] .navbar.bg-primary {
  background: var(--navbar-bg) !important; border-bottom: 1px solid var(--hud-line);
  box-shadow: 0 1px 0 rgba(25,198,255,.15), 0 8px 30px rgba(0,0,0,.45) !important; position: sticky;
}
html[data-theme="cyber"] .navbar .navbar-brand { font-family: var(--font-hud); text-transform: uppercase; letter-spacing: .14em; font-size: .95rem; color: var(--navbar-text) !important; text-shadow: 0 0 12px rgba(25,198,255,.5); }
html[data-theme="cyber"] .navbar .btn-primary, html[data-theme="cyber"] .navbar .btn-outline-light, html[data-theme="cyber"] .navbar .theme-btn {
  background: rgba(25,198,255,.08); border: 1px solid var(--hud-line); border-radius: 4px; color: var(--hud-cyan); box-shadow: inset 0 0 12px rgba(25,198,255,.08);
}
html[data-theme="cyber"] .navbar .btn-primary:hover, html[data-theme="cyber"] .navbar .btn-outline-light:hover, html[data-theme="cyber"] .navbar .theme-btn:hover { background: rgba(25,198,255,.2); box-shadow: var(--hud-glow); color: #fff; transform: none; }
html[data-theme="cyber"] .navbar .form-control { border-radius: 4px; background: rgba(25,198,255,.06); border-color: var(--hud-line); color: #dff3ff; }
html[data-theme="cyber"] .navbar .form-control::placeholder { color: #6f9bc6; }
html[data-theme="cyber"] .navbar .input-group .btn-light { background: var(--hud-blue); color: #fff; border-radius: 0 4px 4px 0; }
html[data-theme="cyber"] .header-menu-link { border-radius: 4px !important; text-transform: uppercase; letter-spacing: .1em; color: var(--hud-cyan) !important; border-color: var(--hud-line) !important; }
.hud-clock { align-items: baseline; gap: .7rem; font-family: var(--font-hud, 'Orbitron', sans-serif); color: #dff3ff; line-height: 1; }
.hud-clock .hc-time { font-size: 1.15rem; font-weight: 700; letter-spacing: .06em; text-shadow: 0 0 12px rgba(25,198,255,.7); }
.hud-clock .hc-time small { font-size: .55em; color: var(--hud-cyan); letter-spacing: .1em; }
.hud-clock .hc-date { font-size: .68rem; letter-spacing: .14em; color: #7ea6cc; text-transform: uppercase; }
@media (max-width: 1199.98px) { .hud-clock .hc-date { display: none; } }

/* ---------- Sidebar ---------- */
html[data-theme="cyber"] .sidebar { border-right: 1px solid var(--hud-line); background: linear-gradient(180deg, #051233, #030b1f) !important; box-shadow: inset -1px 0 0 rgba(25,198,255,.08); }
html[data-theme="cyber"] .sidebar .nav-link { border-radius: 3px; text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; font-weight: 700; font-family: 'Rajdhani', sans-serif; color: #8fb6de; margin: 2px 8px; }
html[data-theme="cyber"] .sidebar .nav-link i { color: var(--hud-cyan); opacity: .85; }
html[data-theme="cyber"] .sidebar .nav-link:hover { background: rgba(25,198,255,.10); color: #fff; box-shadow: inset 0 0 0 1px rgba(25,198,255,.25); }
html[data-theme="cyber"] .sidebar .nav-link.active {
  background: linear-gradient(90deg, rgba(25,198,255,.28), rgba(25,198,255,.04)) !important; color: #fff !important;
  box-shadow: inset 3px 0 0 var(--hud-cyan), inset 0 0 0 1px rgba(25,198,255,.35), 0 0 16px rgba(25,198,255,.18);
}
html[data-theme="cyber"] .sidebar .sidebar-heading { color: #4f8fc8 !important; font-family: var(--font-hud); font-size: .6rem; letter-spacing: .22em; }

/* ---------- HUD frame for cards (corner brackets instead of clipping, so dropdowns still work) ---------- */
html[data-theme="cyber"] .main-content .card, html[data-theme="cyber"] .modal-content, html[data-theme="cyber"] .dropdown-menu, html[data-theme="cyber"] .theme-panel {
  border-radius: 4px !important; border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(25,198,255,.045), transparent 40%), var(--surface);
}
html[data-theme="cyber"][data-bs-theme="dark"] .main-content .card { border-color: rgba(25,198,255,.32); box-shadow: inset 0 0 22px rgba(25,198,255,.05), 0 0 0 1px rgba(0,0,0,.4); }
html[data-theme="cyber"] .main-content .card::before, html[data-theme="cyber"] .main-content .card > .card-header::before { content: none; }
html[data-theme="cyber"] .main-content .card::before {
  content: ""; position: absolute; inset: -1px; pointer-events: none; z-index: 2; border-radius: inherit;
  background:
    linear-gradient(var(--hud-cyan), var(--hud-cyan)) top left / 14px 2px no-repeat,
    linear-gradient(var(--hud-cyan), var(--hud-cyan)) top left / 2px 14px no-repeat,
    linear-gradient(var(--hud-cyan), var(--hud-cyan)) bottom right / 14px 2px no-repeat,
    linear-gradient(var(--hud-cyan), var(--hud-cyan)) bottom right / 2px 14px no-repeat;
  filter: drop-shadow(0 0 3px rgba(25,198,255,.7));
}
html[data-theme="cyber"] .main-content .card-header { background: linear-gradient(90deg, rgba(25,198,255,.14), transparent 70%); font-family: var(--font-hud); text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; color: var(--hud-cyan); border-bottom: 1px solid var(--border); border-radius: 0 !important; }
html[data-theme="cyber"][data-bs-theme="light"] .main-content .card-header { color: var(--acc); }
html[data-theme="cyber"] .main-content a.card:hover, html[data-theme="cyber"] .quick-link-card:hover, html[data-theme="cyber"] .cat-tile:hover { box-shadow: var(--hud-glow) !important; border-color: var(--hud-cyan); transform: none; }
html[data-theme="cyber"] .quick-link-card { border-radius: 4px !important; }

/* gradient stat cards → glowing HUD tiles */
html[data-theme="cyber"] .stat-card-v2 { border-radius: 4px !important; border: 1px solid rgba(255,255,255,.18) !important; box-shadow: 0 0 22px -6px rgba(25,198,255,.5), inset 0 0 30px rgba(0,0,0,.25) !important; }
html[data-theme="cyber"] .stat-icon-v2 { border-radius: 4px; background: rgba(255,255,255,.14); box-shadow: inset 0 0 0 1px rgba(255,255,255,.3); }
html[data-theme="cyber"] .main-content .card[style*="linear-gradient"] { border-radius: 4px; }

/* ---------- Buttons / forms / tables ---------- */
html[data-theme="cyber"] .btn { border-radius: 3px; text-transform: uppercase; letter-spacing: .1em; font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: .78rem; }
html[data-theme="cyber"] .btn-primary {
  background: linear-gradient(180deg, #1e90ff, #0b6bff); border: 1px solid #54baff; color: #fff;
  box-shadow: 0 0 16px rgba(30,144,255,.45), inset 0 1px 0 rgba(255,255,255,.3);
}
html[data-theme="cyber"] .btn-primary:hover { color: #fff; filter: brightness(1.15); box-shadow: 0 0 24px rgba(30,144,255,.75); transform: none; }
html[data-theme="cyber"] .btn-outline-primary, html[data-theme="cyber"] .btn-outline-secondary, html[data-theme="cyber"] .btn-outline-success, html[data-theme="cyber"] .btn-outline-danger, html[data-theme="cyber"] .btn-light {
  background: rgba(25,198,255,.05); border-color: var(--hud-line); color: var(--hud-cyan);
}
html[data-theme="cyber"][data-bs-theme="light"] .btn-outline-primary, html[data-theme="cyber"][data-bs-theme="light"] .btn-outline-secondary, html[data-theme="cyber"][data-bs-theme="light"] .btn-light { color: var(--acc); border-color: var(--border); }
html[data-theme="cyber"] .btn-outline-primary:hover, html[data-theme="cyber"] .btn-outline-secondary:hover, html[data-theme="cyber"] .btn-light:hover { background: rgba(25,198,255,.18); border-color: var(--hud-cyan); color: #fff; box-shadow: var(--hud-glow); }
html[data-theme="cyber"] .btn-outline-danger { color: #ff6b81; border-color: rgba(255,107,129,.55); }
html[data-theme="cyber"] .btn-outline-success { color: #3be8a0; border-color: rgba(59,232,160,.5); }
html[data-theme="cyber"] .form-control, html[data-theme="cyber"] .form-select, html[data-theme="cyber"] .input-group-text { border-radius: 3px; background-color: rgba(25,198,255,.05); border-color: var(--border); }
html[data-theme="cyber"][data-bs-theme="dark"] .form-control, html[data-theme="cyber"][data-bs-theme="dark"] .form-select { background-color: #061330; border-color: #134a8f; }
html[data-theme="cyber"] .form-control:focus, html[data-theme="cyber"] .form-select:focus { border-color: var(--hud-cyan); box-shadow: 0 0 0 .2rem rgba(25,198,255,.2), var(--hud-glow); }
html[data-theme="cyber"] .main-content .table thead th { background: rgba(25,198,255,.10) !important; color: var(--hud-cyan) !important; font-family: var(--font-hud); font-size: .62rem; letter-spacing: .16em; border-bottom: 1px solid var(--hud-line); }
html[data-theme="cyber"][data-bs-theme="light"] .main-content .table thead th { color: var(--acc) !important; }
html[data-theme="cyber"] .table-hover > tbody > tr:hover > * { background-color: rgba(25,198,255,.09); }
html[data-theme="cyber"] .main-content .badge { border-radius: 2px; border: 1px solid currentColor; background: transparent !important; }
html[data-theme="cyber"] .main-content .badge.bg-primary { color: var(--hud-cyan) !important; background: rgba(25,198,255,.12) !important; }
html[data-theme="cyber"] .main-content .btn .badge.bg-danger { border-color: #ff4d6d; }
html[data-theme="cyber"] .nav-tabs .nav-link.active, html[data-theme="cyber"] .main-content .nav-tabs .nav-link.active { color: var(--hud-cyan); border-bottom-color: var(--hud-cyan); text-shadow: 0 0 10px rgba(25,198,255,.6); }
html[data-theme="cyber"] .pagination .page-link { border-radius: 3px !important; }
html[data-theme="cyber"] .alert { border-radius: 4px; border-left-width: 3px; }
html[data-theme="cyber"] .theme-chip, html[data-theme="cyber"] .mode-seg, html[data-theme="cyber"] .mode-seg button { border-radius: 4px; }
html[data-theme="cyber"] footer.footer { border-top: 1px solid var(--hud-line); }
html[data-theme="cyber"] ::selection { background: rgba(25,198,255,.35); }

/* ==========================================================================
   DASHBOARD HUD HERO  (markup lives in modules/dashboard/index.php, shown only in Cyber HUD)
   ========================================================================== */
.hud-hero { margin-bottom: 1.4rem; }
.hud-reactor { position: relative; width: 138px; height: 138px; margin: 0 auto 1.1rem; display: grid; place-items: center; }
.hud-reactor .ring { position: absolute; inset: 0; border-radius: 50%; }
.hud-reactor .r1 { border: 2px solid rgba(25,198,255,.25); box-shadow: 0 0 22px rgba(25,198,255,.35), inset 0 0 22px rgba(25,198,255,.15); }
.hud-reactor .r2 { inset: 7px; background: repeating-conic-gradient(from 0deg, rgba(25,198,255,.9) 0 2deg, transparent 2deg 9deg); -webkit-mask: radial-gradient(circle, transparent 62%, #000 63%, #000 70%, transparent 71%); mask: radial-gradient(circle, transparent 62%, #000 63%, #000 70%, transparent 71%); animation: hudspin 28s linear infinite; }
.hud-reactor .r3 { inset: 20px; border-radius: 50%; border: 3px solid transparent; border-top-color: var(--hud-cyan); border-right-color: var(--hud-cyan); filter: drop-shadow(0 0 6px var(--hud-cyan)); animation: hudspin 5s linear infinite reverse; }
.hud-reactor .r4 { inset: 34px; border-radius: 50%; border: 1px solid var(--hud-line); background: radial-gradient(circle, #0a2a66, #051233); box-shadow: inset 0 0 18px rgba(25,198,255,.35); }
.hud-reactor .core { position: relative; z-index: 2; text-align: center; font-family: var(--font-hud); line-height: 1.1; color: #fff; text-shadow: 0 0 10px var(--hud-cyan); }
.hud-reactor .core b { display: block; font-size: .82rem; letter-spacing: .1em; max-width: 78px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hud-reactor .core small { display: block; font-size: .5rem; letter-spacing: .3em; color: var(--hud-cyan); margin-top: 3px; }
@keyframes hudspin { to { transform: rotate(360deg); } }

.hud-panel { position: relative; padding: 1.1rem 1.25rem; height: 100%;
  background: linear-gradient(160deg, rgba(25,198,255,.10), rgba(4,14,36,.85) 55%), #061330;
  border: 1px solid rgba(25,198,255,.45); color: #dff3ff;
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 22px 100%, 0 calc(100% - 22px));
  box-shadow: inset 0 0 40px rgba(25,198,255,.06);
}
.hud-panel::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--hud-cyan), transparent); opacity: .9; }
.hud-panel-title { font-family: var(--font-hud); font-size: .62rem; letter-spacing: .3em; text-transform: uppercase; color: #5fa9e6; margin-bottom: .8rem; display: flex; justify-content: space-between; align-items: center; }
.hud-panel-title .hud-count { font-size: .7rem; letter-spacing: .05em; color: #fff; background: linear-gradient(90deg, #1e7bff, #19c6ff); padding: 2px 9px; border-radius: 2px; }

.hud-welcome { display: flex; align-items: center; gap: 1.1rem; margin-bottom: 1rem; }
.hud-avatar { position: relative; width: 74px; height: 74px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-hud); font-weight: 800; font-size: 1.7rem; color: #fff; background: radial-gradient(circle at 30% 25%, #2a7bff, #082a6a); box-shadow: 0 0 20px rgba(25,198,255,.5), inset 0 0 14px rgba(0,0,0,.4); }
.hud-avatar::before { content: ""; position: absolute; inset: -7px; border-radius: 50%; border: 1px dashed rgba(25,198,255,.8); animation: hudspin 18s linear infinite; }
.hud-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.hud-welcome h3 { margin: 0; font-size: 1.25rem; color: var(--hud-cyan); text-shadow: 0 0 14px rgba(25,198,255,.5); text-transform: none; letter-spacing: .02em; }
.hud-welcome .role { font-size: .86rem; color: #9fc3e8; }
.hud-welcome .greet { font-size: .95rem; color: #dff3ff; margin-top: .15rem; }
.hud-wave { display: flex; align-items: center; gap: 3px; height: 22px; margin-top: .4rem; }
.hud-wave i { display: block; width: 3px; height: 100%; border-radius: 2px; background: var(--hud-cyan); box-shadow: 0 0 6px var(--hud-cyan); transform-origin: center; animation: hudwave 1.2s ease-in-out infinite; }
.hud-wave i:nth-child(3n) { animation-duration: .9s; } .hud-wave i:nth-child(4n) { animation-duration: 1.5s; } .hud-wave i:nth-child(5n) { animation-delay: -.5s; } .hud-wave i:nth-child(2n) { animation-delay: -.25s; }
@keyframes hudwave { 0%,100% { transform: scaleY(.25); } 50% { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) { .hud-wave i, .hud-reactor .r2, .hud-reactor .r3, .hud-avatar::before { animation: none; } }

.hud-mini-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: .55rem; }
.hud-mini { padding: .55rem .7rem; border: 1px solid rgba(25,198,255,.35); background: rgba(25,198,255,.06); border-radius: 2px; text-decoration: none; color: #dff3ff; transition: all .15s; display: block; }
a.hud-mini:hover { background: rgba(25,198,255,.18); box-shadow: var(--hud-glow); border-color: var(--hud-cyan); color: #fff; }
.hud-mini b { display: block; font-family: var(--font-hud); font-size: 1.15rem; font-weight: 700; line-height: 1.1; text-shadow: 0 0 10px rgba(25,198,255,.45); }
.hud-mini span { font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: #7fb0e0; font-weight: 700; }
.hud-mini.warn { border-color: rgba(255,193,7,.55); background: rgba(255,193,7,.08); } .hud-mini.warn b { color: #ffd54a; text-shadow: 0 0 10px rgba(255,193,7,.5); }
.hud-mini.danger { border-color: rgba(255,77,109,.6); background: rgba(255,77,109,.09); } .hud-mini.danger b { color: #ff7b93; }
.hud-mini.ok b { color: #3be8a0; text-shadow: 0 0 10px rgba(59,232,160,.5); }
.hud-actions { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: .9rem; }
.hud-actions .btn { padding: .5rem .95rem; }

.hud-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .8rem; margin-top: 1.1rem; }
.hud-tile { position: relative; padding: .9rem 1rem; border: 1px solid rgba(25,198,255,.4); background: linear-gradient(160deg, rgba(25,198,255,.10), #061330 70%); color: #dff3ff;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%); text-decoration: none; display: block; }
a.hud-tile:hover { color: #fff; border-color: var(--hud-cyan); box-shadow: var(--hud-glow); }
.hud-tile .lbl { font-family: var(--font-hud); font-size: .56rem; letter-spacing: .26em; text-transform: uppercase; color: #5fa9e6; display: flex; align-items: center; gap: .4rem; }
.hud-tile .val { font-family: var(--font-hud); font-size: 1.55rem; font-weight: 700; margin: .25rem 0 .1rem; text-shadow: 0 0 12px rgba(25,198,255,.45); }
.hud-tile .sub { font-size: .8rem; color: #8fb6de; }
.hud-bar { height: 4px; background: rgba(25,198,255,.15); margin-top: .5rem; } .hud-bar > i { display: block; height: 100%; background: linear-gradient(90deg, #1e7bff, #19c6ff); box-shadow: 0 0 8px var(--hud-cyan); }
html[data-theme="cyber"][data-bs-theme="light"] .hud-panel, html[data-theme="cyber"][data-bs-theme="light"] .hud-tile { box-shadow: 0 10px 30px -14px rgba(11,60,140,.5); }

/* ---------- Auth screens in HUD ---------- */
html[data-theme="cyber"] .auth-brand { background: radial-gradient(700px 400px at 20% 10%, rgba(30,123,255,.35), transparent 60%), linear-gradient(160deg, #061a45, #030a1b); border-right: 1px solid var(--hud-line); }
html[data-theme="cyber"] .auth-points li, html[data-theme="cyber"] .auth-brand-logo i { border-radius: 4px; border-color: var(--hud-line); }
html[data-theme="cyber"] .hero-section, html[data-theme="cyber"] .cta-band { background: radial-gradient(800px 380px at 20% 0, rgba(30,123,255,.4), transparent 60%), linear-gradient(160deg, #061a45, #030a1b); }
html[data-theme="cyber"] .cat-tile, html[data-theme="cyber"] .hs-card, html[data-theme="cyber"] .auth-card { border-radius: 4px; }

/* ---------- fixes: keep HUD tiles dark in light mode, tighter sidebar ---------- */
html[data-theme="cyber"] .hud-tile { background: linear-gradient(160deg, #0a2a66 0%, #061330 70%) !important; color: #dff3ff !important; }
html[data-theme="cyber"] .hud-tile .lbl { color: #6fb6f0 !important; }
html[data-theme="cyber"] .hud-tile .sub { color: #9fc3e8 !important; }
html[data-theme="cyber"] .hud-panel { background: linear-gradient(160deg, rgba(25,198,255,.12), #061330 60%) !important; }
html[data-theme="cyber"] .sidebar .nav-link { letter-spacing: .04em; font-size: .74rem; white-space: normal; }
