/* Futuristic HUD skin (dark glass + neon glow). Active when <html data-style="futuristic">. Colours still come from the chosen palette. */
html[data-style="futuristic"] {
  --fx-glow: color-mix(in srgb, var(--md-primary) 55%, transparent);
  --fx-line: color-mix(in srgb, var(--md-primary) 28%, transparent);
  --fx-glass: color-mix(in srgb, var(--md-surface-container) 62%, transparent);
  --fx-glass-strong: color-mix(in srgb, var(--md-surface-container-high) 78%, transparent);
  --md-surface-container-lowest: color-mix(in srgb, var(--md-surface) 60%, #000);
}
html[data-style="futuristic"] body {
  background:
    radial-gradient(900px 500px at 85% -10%, color-mix(in srgb, var(--md-primary) 22%, transparent), transparent 60%),
    radial-gradient(700px 500px at -5% 105%, color-mix(in srgb, var(--md-primary) 14%, transparent), transparent 60%),
    linear-gradient(var(--fx-line) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(90deg, var(--fx-line) 1px, transparent 1px) 0 0 / 44px 44px,
    var(--md-surface) !important;
  background-attachment: fixed !important;
}
html[data-style="futuristic"] .app-page, html[data-style="futuristic"] .app-shell, html[data-style="futuristic"] .login-page { background: transparent !important; }

/* glass panels with neon edge */
html[data-style="futuristic"] .toolbar, html[data-style="futuristic"] .employee-form, html[data-style="futuristic"] .analytics-card,
html[data-style="futuristic"] .table-wrap, html[data-style="futuristic"] .summary-layout article, html[data-style="futuristic"] .form-card,
html[data-style="futuristic"] .panel-card, html[data-style="futuristic"] .card, html[data-style="futuristic"] .collapsible,
html[data-style="futuristic"] .login-box {
  background: var(--fx-glass) !important;
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid var(--fx-line) !important;
  border-radius: 14px !important;
  box-shadow: 0 0 0 1px rgba(255,255,255,.03) inset, 0 8px 30px rgba(0,0,0,.35) !important;
}
html[data-style="futuristic"] .analytics-card, html[data-style="futuristic"] .login-box { position: relative; }
/* HUD corner brackets */
html[data-style="futuristic"] .analytics-card::before, html[data-style="futuristic"] .analytics-card::after {
  content: ""; display: block !important; position: absolute; width: 14px; height: 14px; pointer-events: none; border: 0 solid var(--md-primary);
  filter: drop-shadow(0 0 4px var(--fx-glow));
}
html[data-style="futuristic"] .analytics-card::before { top: -1px; left: -1px; border-top-width: 2px; border-left-width: 2px; border-top-left-radius: 14px; }
html[data-style="futuristic"] .analytics-card::after { bottom: -1px; right: -1px; border-bottom-width: 2px; border-right-width: 2px; border-bottom-right-radius: 14px; }

/* drawer + top bar */
html[data-style="futuristic"] .sidebar {
  background: linear-gradient(180deg, color-mix(in srgb, var(--md-surface-container-low) 88%, transparent), color-mix(in srgb, var(--md-surface) 92%, #000)) !important;
  border-right: 1px solid var(--fx-line) !important;
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
html[data-style="futuristic"] .brand-mark { background: transparent !important; color: var(--md-primary) !important; border: 1.5px solid var(--md-primary) !important; box-shadow: 0 0 14px var(--fx-glow), inset 0 0 10px var(--fx-line) !important; }
html[data-style="futuristic"] .sidebar .sidebar-nav .tab { border-radius: 10px !important; border-left: 2px solid transparent !important; }
html[data-style="futuristic"] .sidebar .sidebar-nav .tab.active {
  background: linear-gradient(90deg, color-mix(in srgb, var(--md-primary) 30%, transparent), transparent) !important;
  color: var(--md-on-surface) !important; border-left-color: var(--md-primary) !important;
  box-shadow: -6px 0 18px -8px var(--fx-glow) !important;
}
html[data-style="futuristic"] .sidebar .tab.active .nav-icon { color: var(--md-primary) !important; filter: drop-shadow(0 0 5px var(--fx-glow)); }
html[data-style="futuristic"] .topbar { background: color-mix(in srgb, var(--md-surface) 70%, transparent) !important; border-bottom: 1px solid var(--fx-line) !important; }
html[data-style="futuristic"] .topbar h1 { letter-spacing: .04em !important; text-shadow: 0 0 18px var(--fx-glow); }
html[data-style="futuristic"] .header-pill, html[data-style="futuristic"] .storage-status { background: var(--fx-glass-strong) !important; border: 1px solid var(--fx-line) !important; color: var(--md-on-surface) !important; }
html[data-style="futuristic"] .storage-status::before { box-shadow: 0 0 8px var(--md-ok); }

/* KPI tiles: glowing numbers */
html[data-style="futuristic"] .stats-grid > div, html[data-style="futuristic"] .kpi-grid > div,
html[data-style="futuristic"] .performance-summary-grid > article, html[data-style="futuristic"] .employee-summary-grid > div, html[data-style="futuristic"] .leave-overview > div {
  background: var(--fx-glass) !important; border: 1px solid var(--fx-line) !important; border-radius: 12px !important;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
html[data-style="futuristic"] .stats-grid strong, html[data-style="futuristic"] .kpi-grid strong { text-shadow: 0 0 14px var(--fx-glow); font-weight: 300 !important; }
html[data-style="futuristic"] .panel-heading h2, html[data-style="futuristic"] .tab-panel > h2 { font-weight: 300 !important; letter-spacing: .03em !important; }
html[data-style="futuristic"] .eyebrow { text-shadow: 0 0 10px var(--fx-glow); }

/* tables */
html[data-style="futuristic"] thead th, html[data-style="futuristic"] th { background: color-mix(in srgb, var(--md-primary) 14%, transparent) !important; color: var(--md-primary) !important; text-transform: uppercase !important; letter-spacing: .08em !important; font-size: 11.5px !important; border-bottom: 1px solid var(--fx-line) !important; }
html[data-style="futuristic"] td { border-bottom: 1px solid color-mix(in srgb, var(--md-primary) 12%, transparent) !important; background: transparent !important; }

/* controls */
html[data-style="futuristic"] button:not(.tab):not(.icon-button):not(.md-swatch):not(.md-fab):not(.link-button):not(.login-mode-tab):not(.employee-thumb):not(.pw-x):not(.md-theme-x):not(.ghost):not(.secondary):not(.danger):not([class*="fm-"]):not([class*="sm-"]):not([class*="hr-"]) {
  box-shadow: 0 0 16px -2px var(--fx-glow) !important;
}
html[data-style="futuristic"] button.ghost, html[data-style="futuristic"] button.secondary { border-color: var(--fx-line) !important; }
html[data-style="futuristic"] button.ghost:hover, html[data-style="futuristic"] button.secondary:hover { border-color: var(--md-primary) !important; box-shadow: 0 0 12px -2px var(--fx-glow) !important; }
html[data-style="futuristic"] input:not([type="checkbox"]):not([type="radio"]):not([type="color"]), html[data-style="futuristic"] select, html[data-style="futuristic"] textarea {
  background: color-mix(in srgb, var(--md-surface) 55%, transparent) !important; border: 1px solid var(--fx-line) !important;
}
html[data-style="futuristic"] input:focus, html[data-style="futuristic"] select:focus, html[data-style="futuristic"] textarea:focus { border-color: var(--md-primary) !important; box-shadow: 0 0 0 1px var(--md-primary), 0 0 14px -2px var(--fx-glow) !important; }
html[data-style="futuristic"] .form-modal-card, html[data-style="futuristic"] .pw-card { background: var(--fx-glass-strong) !important; -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); border: 1px solid var(--fx-line) !important; box-shadow: 0 0 40px -10px var(--fx-glow), 0 20px 50px rgba(0,0,0,.5) !important; border-radius: 18px !important; }
html[data-style="futuristic"] .md-fab { background: var(--md-primary); color: var(--md-on-primary); box-shadow: 0 0 22px var(--fx-glow); }
html[data-style="futuristic"] .md-theme-panel { background: var(--fx-glass-strong); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); border: 1px solid var(--fx-line); }
html[data-style="futuristic"] ::-webkit-scrollbar { width: 10px; height: 10px; }
html[data-style="futuristic"] ::-webkit-scrollbar-thumb { background: var(--fx-line); border-radius: 8px; }

html[data-style="futuristic"] .sidebar .sidebar-nav button.tab:not(.secondary):not(.ghost):not(.danger):not(.link-button):not(.login-mode-tab):not(.icon-button) { border-radius: 10px !important; color: var(--md-on-surface-variant) !important; }
html[data-style="futuristic"] .sidebar .sidebar-nav button.tab.active:not(.secondary):not(.ghost):not(.danger):not(.link-button):not(.login-mode-tab):not(.icon-button) {
  background: linear-gradient(90deg, color-mix(in srgb, var(--md-primary) 30%, transparent), transparent) !important;
  color: var(--md-on-surface) !important; border-left: 2px solid var(--md-primary) !important; box-shadow: -6px 0 18px -8px var(--fx-glow) !important;
}
html[data-style="futuristic"] .sidebar .sidebar-footer button:not(.tab):not(.icon-button) { border-color: var(--fx-line) !important; }
