/* ── FONTS & RESET ─────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Hanken+Grotesk:wght@400;600;700;800&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@24,400,0,0&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Inter', sans-serif; background: #f1f5f9; color: #0f172a; }
input, button, select, textarea { font-family: 'Inter', sans-serif; }
input::placeholder, textarea::placeholder { color: #94a3b8; }
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }
select option { background: white; color: #374151; }
.material-symbols-outlined { font-variation-settings:'FILL' 0,'wght' 400,'GRAD' 0,'opsz' 24; vertical-align: middle; line-height: 1; display: inline-block; }

/* ── ROLE COLOR VARS ────────────────────────────────────────────── */
:root {
  --role-color: #7C3AED;
  --role-light: #F5F3FF;
  --role-border: rgba(124,58,237,0.2);
  --role-bg-grad: linear-gradient(135deg,#6D28D9 0%,#4F46E5 55%,#1E40AF 100%);
}
body.role-admin   { --role-color:#1E40AF; --role-light:#EFF6FF; --role-border:rgba(30,64,175,0.2); --role-bg-grad:linear-gradient(135deg,#1E3A8A 0%,#1E40AF 55%,#2563EB 100%); }
body.role-teknisi { --role-color:#059669; --role-light:#ECFDF5; --role-border:rgba(5,150,105,0.2); --role-bg-grad:linear-gradient(135deg,#047857 0%,#059669 55%,#10b981 100%); }
body.role-user    { --role-color:#D97706; --role-light:#FFFBEB; --role-border:rgba(217,119,6,0.2);  --role-bg-grad:linear-gradient(135deg,#B45309 0%,#D97706 55%,#F59E0B 100%); }

/* ── PAGES ──────────────────────────────────────────────────────── */
.page { display: none; }
.page.active { display: block; }

/* ── ANIMATIONS ─────────────────────────────────────────────────── */
@keyframes bf1{0%,100%{transform:translate(0,0) scale(1)}50%{transform:translate(22px,-18px) scale(1.05)}}
@keyframes bf2{0%,100%{transform:translate(0,0) scale(1)}50%{transform:translate(-18px,22px) scale(0.96)}}
@keyframes bf3{0%,100%{transform:translate(0,0) scale(1)}50%{transform:translate(12px,15px) scale(1.03)}}
@keyframes fadein{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}
@keyframes slideUp{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}
@keyframes spin{to{transform:rotate(360deg)}}

/* ══════════════════════════════════════════════════════════════════
   LOGIN PAGE
══════════════════════════════════════════════════════════════════ */
#page-login { height: 100vh; overflow: hidden; }
.login-split {
  position: relative; height: 100vh; background: #070c18;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.login-left { display: none; }
.blob { position: absolute; border-radius: 50%; pointer-events: none; }
.b1 { top:-120px;left:-120px;width:520px;height:520px;background:radial-gradient(circle,rgba(124,58,237,0.33),transparent 65%);animation:bf1 9s ease-in-out infinite; }
.b2 { bottom:-80px;right:-80px;width:440px;height:440px;background:radial-gradient(circle,rgba(5,150,105,0.28),transparent 65%);animation:bf2 11s ease-in-out infinite; }
.b3 { top:42%;left:52%;width:320px;height:320px;background:radial-gradient(circle,rgba(30,64,175,0.36),transparent 65%);animation:bf3 7s ease-in-out infinite; }
.b4 { bottom:22%;left:10%;width:240px;height:240px;background:radial-gradient(circle,rgba(217,119,6,0.22),transparent 65%);animation:bf2 13s ease-in-out infinite; }
.grid-overlay { position:absolute;inset:0;background-image:linear-gradient(rgba(255,255,255,0.022) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,0.022) 1px,transparent 1px);background-size:56px 56px;pointer-events:none; }

.login-right {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  width: 100%; padding: 24px;
}
.login-form-box {
  width: 100%; max-width: 420px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.5);
  animation: fadein 0.4s ease;
}

/* brand at top of form */
.login-brand { display:flex;align-items:center;gap:12px;margin-bottom:32px;justify-content:center; }
.login-brand-icon { width:46px;height:46px;background:linear-gradient(135deg,#7C3AED,#1E40AF);border-radius:12px;display:flex;align-items:center;justify-content:center;box-shadow:0 8px 24px rgba(124,58,237,0.45);flex-shrink:0; }
.login-brand-icon img { width:30px;height:30px;object-fit:cover;border-radius:6px; }
.login-brand-name { font-family:'Hanken Grotesk',sans-serif;font-size:22px;font-weight:800;color:white;letter-spacing:-0.5px;line-height:1; }
.login-brand-sub { font-size:9px;color:rgba(255,255,255,0.38);letter-spacing:2px;text-transform:uppercase;font-family:'JetBrains Mono',monospace;margin-top:2px; }

.lf-header { margin-bottom:24px;text-align:center; }
.lf-header h2 { font-family:'Hanken Grotesk',sans-serif;font-size:22px;font-weight:700;color:white;margin-bottom:4px;letter-spacing:-0.5px; }
.lf-header p { font-size:13px;color:rgba(255,255,255,0.45);line-height:1.5; }

/* form fields dark */
.login-form-box .form-group label { color:rgba(255,255,255,0.55); }
.login-form-box .form-group input {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.12);
  color: white;
}
.login-form-box .form-group input::placeholder { color:rgba(255,255,255,0.25); }
.login-form-box .form-group input:focus {
  border-color: rgba(124,58,237,0.7);
  background: rgba(255,255,255,0.1);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.2);
}
.login-form-box .alert-error { background:rgba(220,38,38,0.15);border-color:rgba(220,38,38,0.35);color:#fca5a5; }
.login-form-box .btn-primary { background:linear-gradient(135deg,#7C3AED,#4F46E5);color:white;box-shadow:0 4px 20px rgba(124,58,237,0.4); }
.login-form-box .btn-primary:hover { opacity:0.9;transform:translateY(-1px); }
.login-form-box .divider { color:rgba(255,255,255,0.25);font-size:11px;margin:16px 0; }

.quick-login-grid { display:grid;grid-template-columns:1fr 1fr;gap:8px; }
.ql-btn { padding:9px;border-radius:8px;font-size:12px;font-weight:600;cursor:pointer;border:1.5px solid;transition:all 0.15s; }
.ql-btn.root    { background:rgba(124,58,237,0.15);border-color:rgba(124,58,237,0.4);color:#c4b5fd; }
.ql-btn.admin   { background:rgba(30,64,175,0.15);border-color:rgba(30,64,175,0.4);color:#93c5fd; }
.ql-btn.teknisi { background:rgba(5,150,105,0.15);border-color:rgba(5,150,105,0.4);color:#6ee7b7; }
.ql-btn.user    { background:rgba(217,119,6,0.15);border-color:rgba(217,119,6,0.4);color:#fbbf24; }
.ql-btn:hover { opacity: 0.8; }

.login-hint { padding:10px 14px;background:rgba(255,255,255,0.04);border-radius:8px;border:1px solid rgba(255,255,255,0.08);margin-top:12px; }
.login-hint p { font-size:10px;color:rgba(255,255,255,0.3);font-family:'JetBrains Mono',monospace;line-height:2; text-align:center; }

/* ── FORMS ──────────────────────────────────────────────────────── */
.form-group { margin-bottom:14px; }
.form-group label { display:block;font-size:11px;font-weight:700;color:#374151;margin-bottom:5px;letter-spacing:0.4px;text-transform:uppercase; }
.form-group input, .form-group select, .form-group textarea {
  width:100%;padding:10px 13px;border:1.5px solid #e2e8f0;border-radius:8px;
  font-size:13px;color:#0f172a;background:#f8fafc;outline:none;transition:border-color 0.15s,background 0.15s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color:#7C3AED;background:white;box-shadow:0 0 0 3px rgba(124,58,237,0.08); }
.form-group textarea { resize:vertical;min-height:80px; }
.form-group input[readonly] { color:#64748b;background:#f1f5f9;cursor:default; }
.form-row { display:grid;grid-template-columns:1fr 1fr;gap:14px; }

.alert-error { display:flex;align-items:center;gap:8px;padding:11px 14px;background:#FEF2F2;border:1px solid #FECACA;border-radius:8px;margin-bottom:16px;font-size:13px;color:#DC2626;font-weight:500; }
.alert-error .material-symbols-outlined { font-size:18px;flex-shrink:0; }

/* ── BUTTONS ────────────────────────────────────────────────────── */
.btn { padding:10px 18px;border-radius:8px;font-size:13.5px;font-weight:600;cursor:pointer;border:none;transition:all 0.15s;display:inline-flex;align-items:center;gap:6px; }
.btn-primary { background:#0f172a;color:white; }
.btn-primary:hover { background:#1e293b;transform:translateY(-1px); }
.btn-full { width:100%;justify-content:center;margin-bottom:16px;padding:13px; }
.btn-secondary { background:white;color:#374151;border:1.5px solid #e2e8f0; }
.btn-secondary:hover { background:#f8fafc;border-color:#cbd5e1; }
.btn-danger { background:#fee2e2;color:#dc2626;border:none; }
.btn-danger:hover { background:#fecaca; }
.btn-sm { padding:7px 14px;font-size:12.5px; }
.btn-icon { padding:6px;background:transparent;border:none;cursor:pointer;border-radius:6px;color:#64748b;display:inline-flex;align-items:center;transition:background 0.15s; }
.btn-icon:hover { background:#f1f5f9;color:#0f172a; }
.btn-icon .material-symbols-outlined { font-size:18px; }
.divider { display:flex;align-items:center;gap:12px;margin-bottom:14px;color:#94a3b8;font-size:11.5px;font-weight:500; }
.divider::before, .divider::after { content:'';flex:1;height:1px;background:#e2e8f0; }

/* ══════════════════════════════════════════════════════════════════
   APP LAYOUT
══════════════════════════════════════════════════════════════════ */
#page-app { height: 100vh; }
.app-layout { display:flex;height:100vh;overflow:hidden; }

/* ── SIDEBAR (WHITE) ────────────────────────────────────────────── */
.sidebar {
  width: 256px; flex-shrink: 0;
  background: white;
  border-right: 1px solid #e8ecf0;
  display: flex; flex-direction: column;
  height: 100vh; overflow: hidden;
  transition: transform 0.28s cubic-bezier(.4,0,.2,1);
  z-index: 200;
}

/* Mobile overlay backdrop */
.sidebar-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 199;
}

/* Hamburger button (only visible on mobile) */
.btn-hamburger {
  display: none;
  align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border: 1px solid #e2e8f0; border-radius: 8px;
  background: #f8fafc; cursor: pointer;
  margin-right: 10px; flex-shrink: 0;
}
.btn-hamburger .material-symbols-outlined { font-size: 20px; color: #64748b; }

@media (max-width: 768px) {
  .sidebar {
    position: fixed !important;
    left: 0; top: 0; bottom: 0;
    height: 100vh !important;
    width: 260px !important;
    transform: translateX(-260px) !important;
  }
  .sidebar.open {
    transform: translateX(0) !important;
    box-shadow: 4px 0 24px rgba(0,0,0,0.18);
  }
  .sidebar-overlay.open { display: block; }
  .btn-hamburger { display: flex; }
  .main-content { width: 100%; min-width: 0; }
  .topbar-search { display: none; }
}
.sb-brand {
  padding: 18px 16px 14px;
  border-bottom: 1px solid #f0f4f8;
  display: flex; flex-direction: column; gap: 0;
}
.sb-brand-row { display:flex;align-items:center;gap:11px;margin-bottom:14px; }
.sb-brand-icon { width:36px;height:36px;background:linear-gradient(135deg,#7C3AED,#1E40AF);border-radius:9px;display:flex;align-items:center;justify-content:center;flex-shrink:0; }
.sb-brand-icon .material-symbols-outlined { color:white;font-size:19px; }
.sb-brand-name { font-family:'Hanken Grotesk',sans-serif;font-size:18px;font-weight:800;color:#0f172a;letter-spacing:-0.5px;line-height:1; }
.sb-brand-ver { font-family:'JetBrains Mono',monospace;font-size:9px;color:#94a3b8;letter-spacing:1.5px;text-transform:uppercase;margin-top:2px; }

/* Role badge in sidebar */
.sb-role-badge {
  display:flex;align-items:center;gap:9px;
  padding:9px 11px;border-radius:9px;border:1.5px solid var(--role-border);
  background:var(--role-light);
}
.sb-role-icon { width:32px;height:32px;background:var(--role-color);border-radius:7px;display:flex;align-items:center;justify-content:center;flex-shrink:0;font-size:15px; }
.sb-role-name { font-size:11.5px;font-weight:700;color:var(--role-color);white-space:nowrap;overflow:hidden;text-overflow:ellipsis; }
.sb-role-session { font-family:'JetBrains Mono',monospace;font-size:9px;color:#94a3b8;letter-spacing:1px;text-transform:uppercase;margin-top:1px; }

/* Nav */
.sb-nav { flex:1;overflow-y:auto;padding:8px 6px; }
.sb-nav-label { font-family:'JetBrains Mono',monospace;font-size:9px;font-weight:700;color:#cbd5e1;text-transform:uppercase;letter-spacing:1.5px;padding:6px 12px;margin-bottom:2px;display:block; }
.nav-item {
  display:flex;align-items:center;gap:10px;
  padding:9px 11px;margin:1px 2px;border-radius:7px;
  cursor:pointer;font-size:13px;font-weight:400;color:#64748b;
  border-left:3px solid transparent;transition:all 0.15s;
  border:none;background:transparent;width:100%;text-align:left;
}
.nav-item:hover { background:#f8fafc;color:#0f172a; }
.nav-item.active { font-weight:600;border-left-color:var(--role-color);color:var(--role-color);background:var(--role-light); }
.nav-item .material-symbols-outlined { font-size:18px;flex-shrink:0; }
.nav-item.active .material-symbols-outlined { color:var(--role-color); }

.sb-footer { padding:10px 6px;border-top:1px solid #f0f4f8; }
.sb-logout { display:flex;align-items:center;gap:10px;padding:9px 11px;border-radius:7px;cursor:pointer;color:#64748b;font-size:13px;border:none;background:transparent;width:100%;transition:all 0.15s; }
.sb-logout:hover { background:#FEF2F2;color:#DC2626; }
.sb-logout .material-symbols-outlined { font-size:18px; }

/* ── MAIN AREA ──────────────────────────────────────────────────── */
.main-content { flex:1;display:flex;flex-direction:column;overflow:hidden;min-width:0; }

/* ── BOTTOM NAV (mobile only) ───────────────────────────────────── */
.bottom-nav {
  display: none;
}
@media (max-width: 768px) {
  .bottom-nav {
    display: flex;
    position: fixed; bottom: 0; left: 0; right: 0;
    height: 60px;
    background: white;
    border-top: 1px solid #e8ecf0;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.07);
    z-index: 300;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
  }
  .bottom-nav::-webkit-scrollbar { display: none; }
  .bn-item {
    flex: 1; min-width: 56px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 2px; cursor: pointer;
    border: none; background: transparent;
    color: #94a3b8; font-size: 10px; font-weight: 500;
    padding: 6px 4px; white-space: nowrap;
    transition: color 0.15s;
    font-family: inherit;
  }
  .bn-item .material-symbols-outlined { font-size: 22px; }
  .bn-item.active { color: var(--role-color); }
  .bn-item.active .material-symbols-outlined {
    font-variation-settings: 'FILL' 1;
  }
  /* push content above bottom nav */
  .content-area { padding-bottom: 68px !important; }
  /* hide hamburger — bottom nav replaces it */
  .btn-hamburger { display: none !important; }
  /* sidebar hidden completely on mobile */
  .sidebar { display: none !important; }
}

/* Topbar */
.topbar {
  height:58px;background:white;border-bottom:1px solid #e8ecf0;
  display:flex;align-items:center;justify-content:space-between;
  padding:0 26px;flex-shrink:0;
}
.topbar-left { display:flex;align-items:center;gap:10px; }
.topbar-title { font-family:'Hanken Grotesk',sans-serif;font-size:16px;font-weight:700;color:#0f172a; }
.topbar-dot { font-size:11px;color:#94a3b8; }
.topbar-app { font-size:11px;color:#94a3b8;font-family:'JetBrains Mono',monospace; }
.topbar-right { display:flex;align-items:center;gap:8px; }
.topbar-search { display:flex;align-items:center;gap:7px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:7px;padding:6px 11px;width:190px; }
.topbar-search .material-symbols-outlined { font-size:15px;color:#94a3b8;flex-shrink:0; }
.topbar-search input { background:none;border:none;outline:none;font-size:12px;color:#374151;width:100%; }
.topbar-bell { position:relative;width:32px;height:32px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:7px;display:flex;align-items:center;justify-content:center;cursor:pointer; }
.topbar-bell .material-symbols-outlined { font-size:18px;color:#64748b; }
.topbar-bell-dot { position:absolute;top:5px;right:5px;width:6px;height:6px;background:#EF4444;border-radius:50%;border:1.5px solid white; }
.topbar-user { display:flex;align-items:center;gap:7px;padding:4px 10px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:7px;cursor:pointer; }
.topbar-avatar { width:24px;height:24px;background:var(--role-color);border-radius:50%;display:flex;align-items:center;justify-content:center;flex-shrink:0; }
.topbar-avatar span { font-size:10px;font-weight:700;color:white; }
.topbar-uname { font-size:11.5px;font-weight:600;color:#0f172a;max-width:100px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
.topbar-expand { font-size:14px;color:#94a3b8; }
.btn-topbar-logout {
  display: none;
  align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border: 1px solid #fecaca; border-radius: 8px;
  background: #fef2f2; cursor: pointer; flex-shrink: 0;
}
.btn-topbar-logout .material-symbols-outlined { font-size: 18px; color: #DC2626; }
@media (max-width: 768px) {
  .btn-topbar-logout { display: flex; }
}

/* Content */
.content-area { flex:1;overflow-y:auto;padding:22px 26px;animation:fadein 0.2s ease; }

/* ── BANNER ─────────────────────────────────────────────────────── */
.banner {
  border-radius:14px;padding:24px 30px;color:white;
  margin-bottom:18px;position:relative;overflow:hidden;
  background:var(--role-bg-grad);
}
.banner::before { content:'';position:absolute;top:-50px;right:-50px;width:200px;height:200px;background:rgba(255,255,255,0.06);border-radius:50%; }
.banner::after {
  content:'';position:absolute;top:0;left:-75%;width:50%;height:100%;
  background:linear-gradient(120deg,transparent 0%,rgba(255,255,255,0.18) 50%,transparent 100%);
  transform:skewX(-20deg);
  animation:shine-sweep 4s ease-in-out infinite;
  pointer-events:none;
}
@keyframes shine-sweep {
  0%   { left:-75%; opacity:0; }
  10%  { opacity:1; }
  50%  { left:125%; opacity:1; }
  51%  { opacity:0; }
  100% { left:125%; opacity:0; }
}
.banner-inner { position:relative; }
.banner-subtitle { display:flex;align-items:center;gap:7px;margin-bottom:6px;font-size:10.5px;font-family:'JetBrains Mono',monospace;color:rgba(255,255,255,0.52);letter-spacing:1.5px;text-transform:uppercase; }
.banner-subtitle .material-symbols-outlined { font-size:17px;color:rgba(255,255,255,0.65); }
.banner h2 { font-family:'Hanken Grotesk',sans-serif;font-size:22px;font-weight:700;margin-bottom:3px; }
.banner p { font-size:12.5px;color:rgba(255,255,255,0.66); }
.banner-right { position:absolute;top:50%;right:30px;transform:translateY(-50%);text-align:right; }
.banner-right .label { font-size:11px;color:rgba(255,255,255,0.6); }
.banner-right .value { font-size:28px;font-weight:800;font-family:'Hanken Grotesk',sans-serif;line-height:1; }

/* ── STAT CARDS ─────────────────────────────────────────────────── */
.stat-grid { display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:16px; }
.stat-grid.three { grid-template-columns:repeat(3,1fr); }
.stat-card {
  background:white;border-radius:10px;padding:16px;
  border:1px solid #e8ecf0;box-shadow:0 2px 10px rgba(30,41,59,0.04);
  position:relative;overflow:hidden;
}
.stat-card::before { content:'';position:absolute;top:0;left:0;right:0;height:3px;background:var(--sc-grad,linear-gradient(90deg,#7C3AED,#6D28D9)); }
.sc-purple { --sc-grad:linear-gradient(90deg,#7C3AED,#6D28D9); }
.sc-blue   { --sc-grad:linear-gradient(90deg,#1E40AF,#3B82F6); }
.sc-green  { --sc-grad:linear-gradient(90deg,#059669,#10b981); }
.sc-amber  { --sc-grad:linear-gradient(90deg,#D97706,#FBBF24); }
.sc-red    { --sc-grad:linear-gradient(90deg,#DC2626,#EF4444); }
.sc-cyan   { --sc-grad:linear-gradient(90deg,#0891B2,#06B6D4); }
.sc-slate  { --sc-grad:linear-gradient(90deg,#475569,#64748b); }

.sc-header { display:flex;align-items:center;justify-content:space-between;margin-bottom:11px; }
.sc-icon { width:36px;height:36px;border-radius:8px;display:flex;align-items:center;justify-content:center; }
.sc-icon .material-symbols-outlined { font-size:19px; }
.sc-icon.purple { background:#F5F3FF; } .sc-icon.purple .material-symbols-outlined { color:#7C3AED; }
.sc-icon.blue   { background:#EFF6FF; } .sc-icon.blue   .material-symbols-outlined { color:#1E40AF; }
.sc-icon.green  { background:#ECFDF5; } .sc-icon.green  .material-symbols-outlined { color:#059669; }
.sc-icon.amber  { background:#FFFBEB; } .sc-icon.amber  .material-symbols-outlined { color:#D97706; }
.sc-icon.red    { background:#FEF2F2; } .sc-icon.red    .material-symbols-outlined { color:#DC2626; }
.sc-icon.cyan   { background:#ECFEFF; } .sc-icon.cyan   .material-symbols-outlined { color:#0891B2; }
.sc-icon.slate  { background:#F1F5F9; } .sc-icon.slate  .material-symbols-outlined { color:#475569; }
.sc-badge { font-size:10px;font-weight:700;padding:2px 7px;border-radius:20px; }
.sc-badge.green { background:#ECFDF5;color:#059669; }
.sc-badge.red   { background:#FEF2F2;color:#DC2626; }
.sc-badge.blue  { background:#EFF6FF;color:#1E40AF; }
.sc-badge.amber { background:#FFFBEB;color:#D97706; }
.sc-badge.purple{ background:#F5F3FF;color:#7C3AED; }
.sc-val { font-size:26px;font-weight:800;color:#0f172a;font-family:'Hanken Grotesk',sans-serif;line-height:1; }
.sc-val.red { color:#DC2626; }
.sc-label { font-size:11px;color:#64748b;margin-top:2px;font-weight:500; }

/* ── SECTION LABEL ──────────────────────────────────────────────── */
.section-label {
  font-size:9.5px;font-weight:700;color:#94a3b8;
  font-family:'JetBrains Mono',monospace;letter-spacing:1.5px;text-transform:uppercase;
  margin-bottom:8px;display:flex;align-items:center;gap:6px;
}
.section-label .material-symbols-outlined { font-size:13px; }

/* ── CARDS & TABLES ─────────────────────────────────────────────── */
.card { background:white;border-radius:10px;padding:16px 20px;border:1px solid #e8ecf0;box-shadow:0 2px 10px rgba(30,41,59,0.04); }
.card-header {
  padding:13px 16px;border-bottom:1px solid #f0f4f8;
  display:flex;align-items:center;justify-content:space-between;
  position:relative;overflow:hidden;
}
.card-header::after {
  content:'';position:absolute;top:0;left:-75%;width:40%;height:100%;
  background:linear-gradient(120deg,transparent 0%,rgba(255,255,255,0.55) 50%,transparent 100%);
  transform:skewX(-20deg);
  animation:shine-sweep 6s ease-in-out infinite;
  pointer-events:none;
}
.card-title { font-family:'Hanken Grotesk',sans-serif;font-size:13.5px;font-weight:700;color:#0f172a;display:flex;align-items:center;gap:6px; }
.card-title .material-symbols-outlined { font-size:16px;color:var(--role-color); }
.card-link { font-size:11px;color:var(--role-color);font-weight:700;cursor:pointer; }

.table-container { background:white;border-radius:10px;border:1px solid #e8ecf0;box-shadow:0 2px 8px rgba(30,41,59,0.04);overflow:hidden;overflow-x:auto;-webkit-overflow-scrolling:touch; }
.table-toolbar { padding:13px 16px;border-bottom:1px solid #f0f4f8;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap; }
.table-toolbar-title { font-family:'Hanken Grotesk',sans-serif;font-size:13.5px;font-weight:700;color:#0f172a; }
.table-actions { display:flex;align-items:center;gap:8px; }
.search-input { padding:7px 11px;border:1px solid #e2e8f0;border-radius:7px;font-size:12px;color:#374151;outline:none;width:200px;background:#f8fafc;transition:border-color 0.15s; }
.search-input:focus { border-color:var(--role-color);background:white; }

table { width:100%;border-collapse:collapse; }
thead tr { background:#f8fafc; }
th { padding:9px 14px;text-align:left;font-size:9.5px;font-weight:700;color:#94a3b8;font-family:'JetBrains Mono',monospace;letter-spacing:0.5px;border-bottom:1px solid #e8ecf0;white-space:nowrap; }
td { padding:11px 14px;border-bottom:1px solid #f0f4f8;font-size:12.5px;color:#374151;vertical-align:middle; }
tr:last-child td { border-bottom:none; }
tbody tr:hover td { background:#fafafa; }
.td-actions { display:flex;gap:4px; }

/* ── BADGES ─────────────────────────────────────────────────────── */
.badge { display:inline-flex;align-items:center;padding:2px 9px;border-radius:20px;font-size:9.5px;font-weight:700; }
.badge-green  { background:#ECFDF5;color:#059669; }
.badge-red    { background:#FEF2F2;color:#DC2626; }
.badge-amber  { background:#FFFBEB;color:#D97706; }
.badge-blue   { background:#EFF6FF;color:#1E40AF; }
.badge-purple { background:#F5F3FF;color:#7C3AED; }
.badge-slate  { background:#F1F5F9;color:#475569; }
.badge-white  { background:white;color:#374151;border:1px solid #e2e8f0; }
.badge-root    { background:#F5F3FF;color:#7C3AED; }
.badge-admin   { background:#EFF6FF;color:#1E40AF; }
.badge-teknisi { background:#ECFDF5;color:#059669; }
.badge-user    { background:#FFFBEB;color:#D97706; }

/* ── PAGINATION ─────────────────────────────────────────────────── */
.pagination { padding:10px 16px;display:flex;align-items:center;justify-content:space-between;border-top:1px solid #f0f4f8;font-size:12px;color:#64748b; }
.page-btns { display:flex;gap:4px; }
.page-btn { padding:4px 9px;border:1px solid #e2e8f0;border-radius:6px;cursor:pointer;background:white;font-size:11.5px;transition:all 0.15s; }
.page-btn:hover, .page-btn.active { background:#0f172a;color:white;border-color:#0f172a; }

/* ── PROGRESS BAR ───────────────────────────────────────────────── */
.progress-bar { height:12px;background:#f1f5f9;border-radius:6px;overflow:hidden;position:relative; }
.progress-fill { height:100%;border-radius:6px;position:relative; }

/* ── ITEM TIMELINE ──────────────────────────────────────────────── */
.timeline-item { display:flex;align-items:center;gap:8px;padding:8px 10px;border-radius:8px;border-left:3px solid; }
.timeline-item.done    { background:#ECFDF5;border-color:#059669; }
.timeline-item.running { background:#EFF6FF;border-color:#1E40AF; }
.timeline-item.wait    { background:#f8fafc;border-color:#e2e8f0; }
.timeline-item.late    { background:#FEF2F2;border-color:#DC2626; }

/* ── QUICK ACCESS ───────────────────────────────────────────────── */
.quick-access-grid { display:grid;grid-template-columns:repeat(4,1fr);gap:6px; }
.qa-item { display:flex;flex-direction:column;align-items:center;gap:4px;padding:9px 5px;border-radius:8px;cursor:pointer;transition:opacity 0.15s; }
.qa-item:hover { opacity:0.8; }
.qa-item .material-symbols-outlined { font-size:19px; }
.qa-item span.label { font-size:8.5px;font-weight:700;text-align:center; }

/* ── SPM BAR ────────────────────────────────────────────────────── */
.spm-bar { background:white;border-radius:10px;padding:16px 20px;border:1px solid #e8ecf0;box-shadow:0 2px 8px rgba(30,41,59,0.04);margin-bottom:14px; }
.spm-header { display:flex;align-items:center;justify-content:space-between;margin-bottom:10px; }
.spm-title { display:flex;align-items:center;gap:8px; }
.spm-title .material-symbols-outlined { font-size:17px;color:#D97706; }
.spm-title span { font-family:'Hanken Grotesk',sans-serif;font-size:13.5px;font-weight:700;color:#0f172a; }
.spm-chip { font-size:9.5px;font-family:'JetBrains Mono',monospace;color:#94a3b8;background:#f8fafc;padding:2px 8px;border-radius:20px;border:1px solid #e8ecf0; }
.spm-value { text-align:right; }
.spm-value .big { font-size:22px;font-weight:800;font-family:'Hanken Grotesk',sans-serif;color:#D97706; }
.spm-value .small { font-size:12px;color:#64748b; }

/* ── MODAL ──────────────────────────────────────────────────────── */
.modal-overlay { position:fixed;inset:0;background:rgba(0,0,0,0.5);display:flex;align-items:center;justify-content:center;z-index:1000;backdrop-filter:blur(4px); }
.modal-box { background:white;border-radius:14px;width:90%;max-width:560px;max-height:85vh;overflow-y:auto;animation:fadein 0.2s ease; }
.modal-box.wide { max-width:760px; }
.modal-header { padding:18px 22px 14px;border-bottom:1px solid #e2e8f0;display:flex;align-items:center;justify-content:space-between;position:sticky;top:0;background:white;z-index:1; }
.modal-header h3 { font-family:'Hanken Grotesk',sans-serif;font-size:16px;font-weight:700;color:#0f172a; }
.modal-close { background:none;border:none;cursor:pointer;color:#94a3b8;padding:4px;border-radius:6px;display:flex; }
.modal-close:hover { background:#f1f5f9;color:#374151; }
.modal-body { padding:18px 22px; }
.modal-footer { padding:14px 22px;border-top:1px solid #e2e8f0;display:flex;justify-content:flex-end;gap:8px; }

/* ── TOAST ──────────────────────────────────────────────────────── */
#toast-container { position:fixed;bottom:24px;right:24px;z-index:2000;display:flex;flex-direction:column;gap:8px; }
.toast { padding:11px 16px;border-radius:10px;font-size:13px;font-weight:500;display:flex;align-items:center;gap:8px;min-width:260px;animation:slideUp 0.25s ease;box-shadow:0 4px 20px rgba(0,0,0,0.12); }
.toast-success { background:#ECFDF5;color:#059669;border:1px solid #bbf7d0; }
.toast-error   { background:#FEF2F2;color:#dc2626;border:1px solid #fecaca; }
.toast-info    { background:#EFF6FF;color:#1d4ed8;border:1px solid #bfdbfe; }
.toast .material-symbols-outlined { font-size:17px;flex-shrink:0; }

/* ── EMPTY & LOADING ────────────────────────────────────────────── */
.empty-state { padding:50px 20px;text-align:center;color:#94a3b8; }
.empty-state .material-symbols-outlined { font-size:44px;margin-bottom:10px;display:block;opacity:0.35; }
.empty-state p { font-size:13px; }
.loading-spinner { display:flex;align-items:center;justify-content:center;padding:50px;color:#94a3b8;gap:10px;font-size:13px; }
.spinner { width:22px;height:22px;border:3px solid #e2e8f0;border-top-color:var(--role-color,#7C3AED);border-radius:50%;animation:spin 0.7s linear infinite;flex-shrink:0; }

/* ── TWO/THREE COL GRIDS ────────────────────────────────────────── */
.two-col   { display:grid;grid-template-columns:1fr 1fr;gap:12px; }
.two-col-a { display:grid;grid-template-columns:1fr 1.5fr;gap:12px; }
.two-col-b { display:grid;grid-template-columns:1fr 1.3fr;gap:12px; }
.mb12 { margin-bottom:12px; }
.mb16 { margin-bottom:16px; }
.mb18 { margin-bottom:18px; }

/* ── STEP WIZARD ────────────────────────────────────────────────── */
.step-wizard { display:grid;grid-template-columns:repeat(4,1fr);gap:0;padding:16px 20px; }
.step-item { display:flex;flex-direction:column;align-items:center;gap:6px; }
.step-circle { width:32px;height:32px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:700;border:2px solid; }
.step-label { font-size:10.5px;font-weight:600;text-align:center; }
.step-done   .step-circle { background:#059669;border-color:#059669;color:white; }
.step-done   .step-label  { color:#059669; }
.step-active .step-circle { background:#EFF6FF;border-color:#1E40AF;color:#1E40AF; }
.step-active .step-label  { color:#1E40AF; }
.step-wait   .step-circle { background:#f8fafc;border-color:#e2e8f0;color:#94a3b8; }
.step-wait   .step-label  { color:#94a3b8; }

/* ── KONDISI PROGRESS ───────────────────────────────────────────── */
.kond-row { margin-bottom:12px; }
.kond-header { display:flex;justify-content:space-between;margin-bottom:5px;font-size:12px;color:#374151;font-weight:500; }
.kond-pct { font-weight:700; }
.kond-pct.green { color:#059669; }
.kond-pct.amber { color:#D97706; }
.kond-pct.red   { color:#DC2626; }

/* ── CHANGE PASSWORD PAGE ───────────────────────────────────────── */
#page-change-pw { display:none; }
#page-change-pw.active { display:flex;height:100vh;align-items:center;justify-content:center;background:linear-gradient(135deg,#0f172a 0%,#1e293b 100%); }

/* ── ASSET LIST ROW ─────────────────────────────────────────────── */
.asset-row { display:flex;align-items:center;justify-content:space-between;padding:9px 11px;background:#f8fafc;border-radius:8px;margin-bottom:7px; }
.asset-row-info { display:flex;align-items:center;gap:8px; }
.asset-row-info .material-symbols-outlined { font-size:17px;color:#64748b; }
.asset-row-info span { font-size:12px;color:#374151;font-weight:500; }
.asset-row.danger { background:#FEF2F2;border:1px solid #FECACA; }
.asset-row.danger .material-symbols-outlined { color:#DC2626; }
.asset-row.danger span { color:#DC2626;font-weight:600; }

/* ── AUTOCOMPLETE ───────────────────────────────────────────────── */
.autocomplete-wrap { position:relative; flex:1; }
.autocomplete-dropdown {
  position:absolute;top:calc(100% + 4px);left:0;right:0;z-index:500;
  background:white;border:1.5px solid #e2e8f0;border-radius:10px;
  box-shadow:0 8px 24px rgba(0,0,0,0.10);max-height:260px;overflow-y:auto;
}
.ac-item {
  display:flex;align-items:center;gap:10px;padding:9px 12px;cursor:pointer;
  border-bottom:1px solid #f0f4f8;transition:background 0.1s;
}
.ac-item:last-child { border-bottom:none; }
.ac-item:hover, .ac-item.focused { background:#f5f3ff; }
.ac-seri { font-size:13px;font-weight:700;color:#0f172a;font-family:'JetBrains Mono',monospace;min-width:90px; }
.ac-info { font-size:11.5px;color:#64748b;overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
.ac-seri mark { background:#ede9fe;color:#7C3AED;border-radius:3px;padding:0 2px; }
.ac-empty { padding:14px 16px;text-align:center;color:#94a3b8;font-size:13px; }
.ac-loading { padding:12px 16px;display:flex;align-items:center;gap:8px;color:#94a3b8;font-size:12px; }

/* ── HEATMAP ────────────────────────────────────────────────────── */
.heatmap-table { width:100%;border-collapse:separate;border-spacing:3px;table-layout:fixed; }
.heatmap-table th, .heatmap-table td { text-align:center;padding:2px 4px; }
.heatmap-cell { border-radius:4px;padding:5px 2px;text-align:center; }
.hc-dark  { background:#1E40AF; }
.hc-mid   { background:#3B82F6; }
.hc-light { background:#93C5FD; }
.hc-faint { background:#BFDBFE; }
.hc-pale  { background:#DBEAFE; }

/* ══════════════════════════════════════════════════════════════════
   MOBILE RESPONSIVE — max-width: 640px
   ══════════════════════════════════════════════════════════════════ */
@media (max-width: 640px) {

  /* ── LAYOUT ──────────────────────────────────────────── */
  .content-area { padding: 12px 10px 72px !important; }
  .topbar { padding: 0 12px; }
  .topbar-title { font-size: 13px; }
  .topbar-uname { max-width: 60px; }
  .topbar-app, .topbar-dot { display: none; }

  /* ── BANNER ──────────────────────────────────────────── */
  .banner { padding: 14px 16px !important; }
  .banner h2 { font-size: 15px !important; }
  .banner p  { font-size: 11px !important; }
  .banner-right { display: none !important; }
  /* override inline banner-right style */
  [style*="position:absolute"][style*="right:30px"] { display: none !important; }

  /* ── STAT CARDS ──────────────────────────────────────── */
  .stat-grid                      { grid-template-columns: repeat(2,1fr) !important; gap: 8px !important; }
  .stat-grid.three                { grid-template-columns: repeat(2,1fr) !important; }
  .stat-card                      { padding: 12px 10px !important; }
  .sc-val                         { font-size: 20px !important; }
  .sc-label                       { font-size: 10px !important; white-space: normal !important; }

  /* ── CSS-CLASS GRIDS → 1 KOLOM ───────────────────────── */
  .two-col, .two-col-a, .two-col-b { grid-template-columns: 1fr !important; }

  /* ── INLINE-STYLE GRIDS → 1 KOLOM (important override) ─ */
  /* 2-col */
  div[style*="grid-template-columns:1fr 1fr"],
  div[style*="grid-template-columns: 1fr 1fr"],
  div[style*="grid-template-columns:repeat(2,1fr)"],
  div[style*="grid-template-columns:repeat(2, 1fr)"] {
    grid-template-columns: 1fr !important;
  }
  /* 3-col */
  div[style*="grid-template-columns:repeat(3,1fr)"],
  div[style*="grid-template-columns:repeat(3, 1fr)"] {
    grid-template-columns: 1fr !important;
  }
  /* 4-col */
  div[style*="grid-template-columns:repeat(4,1fr)"],
  div[style*="grid-template-columns:repeat(4, 1fr)"] {
    grid-template-columns: repeat(2,1fr) !important;
  }
  /* auto-fit cards */
  div[style*="minmax(220px"] {
    grid-template-columns: 1fr !important;
  }

  /* ── FLEX ROWS → VERTIKAL ────────────────────────────── */
  /* tab jadwal, filter bar dll */
  div[style*="display:flex;gap:8px;margin-bottom:16px"],
  div[style*="display:flex;gap:16px;margin-bottom"],
  div[style*="display:flex;gap:12px;margin-bottom"] {
    flex-direction: column !important;
  }
  /* SPM bar header */
  .spm-header { flex-direction: column !important; align-items: flex-start !important; gap: 6px !important; }
  .spm-value  { text-align: left !important; }

  /* ── TABEL ───────────────────────────────────────────── */
  .table-container { overflow-x: auto !important; -webkit-overflow-scrolling: touch !important; }
  .table-container > div[style*="overflow-x"] { -webkit-overflow-scrolling: touch; }
  th, td { padding: 8px 10px !important; font-size: 11px !important; }
  .table-toolbar { flex-direction: column !important; align-items: flex-start !important; gap: 8px !important; }
  .table-actions { width: 100% !important; flex-wrap: wrap !important; }
  .search-input  { width: 100% !important; box-sizing: border-box !important; }
  .hide-mobile   { display: none !important; }

  /* ── MODAL BOTTOM SHEET ──────────────────────────────── */
  .modal-overlay { align-items: flex-end !important; padding: 0 !important; }
  .modal-box     { width: 100% !important; max-width: 100% !important;
                   border-radius: 18px 18px 0 0 !important; max-height: 92dvh !important; }
  .modal-box.wide { max-width: 100% !important; }

  /* ── TOAST ───────────────────────────────────────────── */
  #toast-container { left: 10px !important; right: 10px !important; bottom: 70px !important; }
  .toast { min-width: unset !important; width: 100% !important; }

  /* ── MISC ────────────────────────────────────────────── */
  .quick-access-grid { grid-template-columns: repeat(4,1fr) !important; gap: 4px; }
  .qa-item { padding: 6px 2px !important; }
  .qa-item .material-symbols-outlined { font-size: 16px !important; }
  .qa-item span.label { font-size: 8px !important; }

  .step-wizard { grid-template-columns: repeat(2,1fr) !important; gap: 8px; }
  .pill { font-size: 9px !important; padding: 2px 5px !important; }
  .btn { font-size: 12px !important; padding: 7px 12px !important; }
  .btn-sm { font-size: 11px !important; padding: 5px 9px !important; }

  /* card kalender bulan */
  .kal-card { padding: 12px 14px !important; }
}

/* ── SHINE EFFECT (global) ──────────────────────────────────────── */
@keyframes shine-sweep {
  0%   { transform: translateX(-100%) skewX(-15deg); }
  100% { transform: translateX(300%)  skewX(-15deg); }
}
.shine {
  position: relative;
  overflow: hidden;
}
.shine::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 40%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent);
  animation: shine-sweep 3s ease-in-out infinite;
  pointer-events: none;
}

/* ── MOBILE SHOW/HIDE HELPERS ───────────────────────────────────── */
.hide-on-mobile { display: flex; }
.show-on-mobile { display: none; }
@media (max-width: 640px) {
  .hide-on-mobile { display: none !important; }
  .show-on-mobile { display: block !important; }
}

/* ── ACTION SHEET (mobile bottom menu) ─────────────────────────── */
.action-sheet-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.45);
  z-index: 1500; display: flex; align-items: flex-end;
  animation: fadein .15s ease;
}
.action-sheet {
  width: 100%; background: white;
  border-radius: 20px 20px 0 0;
  padding: 12px 0 32px;
  animation: slideUp .2s ease;
}
.action-sheet-handle {
  width: 40px; height: 4px; background: #e2e8f0;
  border-radius: 2px; margin: 0 auto 16px;
}
.action-sheet-title {
  font-size: 12px; font-weight: 700; color: #94a3b8;
  letter-spacing: .05em; text-transform: uppercase;
  padding: 0 20px 10px; border-bottom: 1px solid #f0f4f8;
}
.action-sheet-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 20px; font-size: 14px; font-weight: 500;
  color: #0f172a; cursor: pointer; border: none;
  background: transparent; width: 100%; text-align: left;
  transition: background .1s;
}
.action-sheet-item:hover { background: #f8fafc; }
.action-sheet-item .material-symbols-outlined { font-size: 20px; }
.action-sheet-item.danger { color: #dc2626; }
.action-sheet-cancel {
  margin: 8px 16px 0; padding: 13px;
  background: #f8fafc; border: 1px solid #e2e8f0;
  border-radius: 12px; font-size: 14px; font-weight: 600;
  color: #64748b; cursor: pointer; width: calc(100% - 32px);
  transition: background .1s;
}
.action-sheet-cancel:hover { background: #f1f5f9; }

/* ── NEON LOGOUT BUTTON ─────────────────────────────────────────── */
@keyframes neon-pulse {
  0%, 100% { box-shadow: 0 0 6px rgba(220,38,38,.6), 0 0 14px rgba(220,38,38,.3); }
  50%       { box-shadow: 0 0 12px rgba(220,38,38,.9), 0 0 28px rgba(220,38,38,.5), 0 0 4px rgba(220,38,38,1); }
}
/* ── LOGOUT BUTTON — ROLE THEME ─────────────────────────────────── */
@keyframes logout-bg-shift {
  0%,100% { background-position: 0% 50%; }
  50%     { background-position: 100% 50%; }
}
@keyframes role-neon-pulse {
  0%,100% { box-shadow: 0 0 6px var(--role-color), 0 0 14px color-mix(in srgb, var(--role-color) 50%, transparent); }
  50%     { box-shadow: 0 0 14px var(--role-color), 0 0 30px color-mix(in srgb, var(--role-color) 40%, transparent); }
}
.sb-logout {
  position: relative; overflow: hidden;
  background: var(--role-bg-grad) !important;
  background-size: 300% 300% !important;
  animation: logout-bg-shift 3s ease infinite !important;
  color: white !important;
  border: 1px solid color-mix(in srgb, var(--role-color) 50%, transparent) !important;
  box-shadow: 0 0 10px color-mix(in srgb, var(--role-color) 40%, transparent) !important;
  transition: all 0.2s !important;
}
.sb-logout .material-symbols-outlined { color: white !important; filter: drop-shadow(0 0 4px rgba(255,255,255,.5)); }
.sb-logout:hover {
  box-shadow: 0 0 20px var(--role-color), 0 0 40px color-mix(in srgb, var(--role-color) 35%, transparent) !important;
  filter: brightness(1.12);
}
.sb-logout::after {
  content: ''; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.25), transparent);
  transform: skewX(-15deg);
  animation: shine-sweep 2.8s ease-in-out infinite;
  pointer-events: none;
}
.btn-topbar-logout {
  background: var(--role-light) !important;
  border-color: var(--role-color) !important;
  animation: role-neon-pulse 2.2s ease-in-out infinite !important;
}
.btn-topbar-logout:hover {
  background: var(--role-color) !important;
  animation: none !important;
  box-shadow: 0 0 16px var(--role-color) !important;
}
.btn-topbar-logout .material-symbols-outlined { color: var(--role-color) !important; }
.btn-topbar-logout:hover .material-symbols-outlined { color: white !important; }
