/* ============================================================
   ALPHASTRATS CREATIVE HUB — Core Stylesheet (BLACK & PINK THEME)
   ============================================================ */

:root{
  --font-head:'Sora', Arial, sans-serif;
  --font-body:'Inter', Arial, sans-serif;

  /* Backgrounds */
  --bg:#fdfafb;                /* Pinkish-white background */
  --surface:#ffffff;
  --surface-soft:#fef5f7;
  
  /* Text */
  --ink:#0f0f0f;               /* Hampir hitam */
  --muted:#787878;             /* Kelabu gelap */
  
  /* Borders */
  --line:#f0e6e9;
  --line-soft:#fdf0f4;

  /* PRIMARY — HOT PINK */
  --primary:#d81b60;           /* Hot Pink */
  --primary-600:#c2185b;       
  --primary-700:#880e4f;       /* Deep Pink (Sidebar gradient) */
  --primary-light:#fce4ec;
  --primary-tint:#fff0f5;

  /* SECONDARY — PINK ACCENT */
  --secondary:#f06292;
  --secondary-light:#fce4ec;

  /* Status colors */
  --green:#15803d;   --green-bg:#e7f8ee;   --green-line:#bfeacf;
  --orange:#b45309;  --orange-bg:#fff4e0;  --orange-line:#f6dfad;
  --red:#c22a2a;     --red-bg:#fdecec;     --red-line:#f6c9c9;

  --radius-sm:8px; --radius-md:12px; --radius-lg:18px; --radius-pill:999px;
  
  /* Shadows tinted with pink */
  --shadow-sm:0 1px 2px rgba(216,27,96,.04);
  --shadow-md:0 8px 24px rgba(216,27,96,.08);
  --shadow-lg:0 20px 45px rgba(216,27,96,.16);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:var(--font-body);
  background:var(--bg);
  color:var(--ink);
  -webkit-font-smoothing:antialiased;
}
h1,h2,h3{font-family:var(--font-head);margin:0}
button,input,select,textarea{font:inherit;color:inherit}
button{cursor:pointer}
a{color:var(--secondary)}
.hidden{display:none !important}

/* ============================================================
   AUTH PAGES (Login + Register)
   ============================================================ */
.auth-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 40px 8%; /* Letak kotak kat kiri, tinggalkan ruang kanan untuk gambar */
  box-sizing: border-box;
  
  /* Guna gambar kau */
  background-image: url('background.png'); 
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.authbox {
  width: min(440px, 100%);
  background: rgba(255, 255, 255, 0.95); /* Putih tapi transparent sikit */
  backdrop-filter: blur(10px);           /* Effect kaca */
  border-radius: 24px;                   /* Bucu lagi bulat */
  padding: 40px 36px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4); /* Shadow gelap supaya nampak timbul */
  max-height: 90vh;
  overflow-y: auto;
  margin-left: 0; /* Paksa dia duduk kat kiri */
}

.authmark{
  width:46px;height:46px;
  border-radius:13px;
  background:linear-gradient(140deg,var(--primary),var(--secondary));
  display:flex;align-items:center;justify-content:center;
  color:#fff;font-weight:800;font-family:var(--font-head);
  font-size:16px;margin-bottom:16px;
  box-shadow:var(--shadow-md);
  letter-spacing:-.02em;
}

.authbox h1{
  font-size:24px;
  letter-spacing:-.01em;
  margin:0 0 4px;
}

.auth-sub{
  color:var(--muted);
  font-size:13px;
  line-height:1.5;
  margin-bottom:24px;
}

.field{
  display:flex;flex-direction:column;gap:5px;
  margin-bottom:12px; /* Tukar dari 14px ke 12px */
}

.field label{
  font-size:10.5px;font-weight:800;color:#5c5878;
  letter-spacing:.03em;text-transform:uppercase;
}

.field input,
.field select,
.field textarea{
  border:1.5px solid var(--line);
  border-radius:9px;
  padding:10px 12px; /* Kecilkan padding sikit */
  background:var(--surface);
  color:var(--ink);
  transition:border-color .15s ease,box-shadow .15s ease;
  font-size:13.5px; /* Saiz font kecil sikit */
  font-family:var(--font-body);
}

.field input:focus,
.field select:focus,
.field textarea:focus{
  outline:none;
  border-color:var(--primary);
  box-shadow:0 0 0 3px var(--primary-light);
}

.authbtn{
  width:100%;
  justify-content:center;
  padding:12px;
  font-size:14px;
  margin-top:6px;
}

.btn{
  border:1.5px solid var(--line);
  background:var(--surface);
  padding:9px 15px;
  border-radius:9px;
  font-weight:700;
  font-size:12.5px;
  display:inline-flex;
  align-items:center;
  gap:7px;
  transition:transform .1s ease, box-shadow .15s ease,
             background .15s ease, border-color .15s ease;
  white-space:nowrap;
  font-family:var(--font-body);
}
.btn:hover{
  border-color:var(--primary);
  color:var(--primary-700);
  box-shadow:0 2px 8px rgba(216,27,96,.10);
}
.btn:active{transform:translateY(1px)}
.btn.primary{
  background:linear-gradient(135deg,var(--primary),var(--primary-600));
  color:#fff;
  border-color:var(--primary);
}
.btn.primary:hover{
  box-shadow:0 6px 16px rgba(216,27,96,.32);
  color:#fff;
  filter:brightness(1.04);
}
.btn.small{padding:6px 10px;font-size:11px;border-radius:7px}
.btn.red{
  color:var(--red);
  border-color:var(--red-line);
  background:var(--red-bg);
}
.btn[disabled]{opacity:.5;cursor:not-allowed}

.auth-error{
  color:var(--red);
  font-size:12.5px;
  font-weight:600;
  margin-top:12px;
  text-align:center;
  min-height:18px;
}

.auth-success{
  color:var(--green);
  font-size:12.5px;
  font-weight:600;
  margin-top:12px;
  text-align:center;
  min-height:18px;
}
.auth-success a{
  color:var(--primary);
  font-weight:700;
  text-decoration:none;
}

.auth-alt{
  text-align:center;
  margin-top:16px;
  font-size:12.5px;
  color:var(--muted);
}
.auth-alt a{
  color:var(--primary);
  font-weight:700;
  text-decoration:none;
}

.auth-notice{
  margin-top:20px;
  padding:10px 14px;
  border-radius:var(--radius-md);
  background:var(--surface-soft);
  color:var(--muted);
  font-size:11px;
  line-height:1.5;
  border:1px dashed var(--line);
}
.auth-notice b{
  color:var(--ink);
  display:block;
  margin-bottom:4px;
  font-size:12px;
}
.auth-notice code{
  background:var(--primary-light);
  color:var(--primary-700);
  padding:2px 6px;
  border-radius:4px;
  font-family:monospace;
  font-size:11px;
}
.auth-notice span{
  display:inline-block;
  margin-right:8px;
  font-family:monospace;
  color:var(--ink);
}

/* ============================================================
   LAYOUT (Dashboard)
   ============================================================ */
.layout{display:flex;min-height:100vh}
.content-col{
  flex:1;
  display:flex;
  flex-direction:column;
  min-width:0;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.side{
  width:264px;
  flex:none;
  /* Tukar ke Black -> Deep Pink */
  background:linear-gradient(185deg, #141414 0%, #2d0f1b 65%, #4a0f26 100%);
  padding:20px 14px 18px;
  position:sticky;
  top:0;
  height:100vh;
  overflow:auto;
  display:flex;
  flex-direction:column;
  gap:2px;
}

.side-brand{
  display:flex;
  align-items:center;
  gap:11px;
  padding:4px 10px 20px;
}

.sidelogo{
  width:40px;
  height:40px;
  border-radius:10px;
  background:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  flex:none;
  overflow:hidden;
  padding:0;
  box-sizing:border-box;
}

.sidelogo img{
  width:100%;
  height:100%;
  object-fit:contain;
  display:block;
  max-width:100%;
  max-height:100%;
}

.side-brand .brand{
  font-family:var(--font-head);
  font-weight:700;
  font-size:15px;
  line-height:1.15;
  color:#fff;
  letter-spacing:.01em;
}
.side-brand .brand small{
  display:block;
  font-family:var(--font-body);
  font-weight:500;
  font-size:10.5px;
  color:rgba(255,255,255,.72);
  letter-spacing:.06em;
}

.navtitle{
  font-size:10.5px;
  font-weight:800;
  color:rgba(255,255,255,.45);
  padding:10px 12px 6px;
  letter-spacing:.07em;
  text-transform:uppercase;
}

.nav{display:flex;flex-direction:column;gap:2px}

.navbtn{
  width:100%;
  border:0;
  background:transparent;
  text-align:left;
  padding:10.5px 12px;
  border-radius:10px;
  margin:1px 0;
  color:rgba(255,255,255,.78);
  font-size:13.5px;
  font-weight:600;
  display:flex;
  align-items:center;
  gap:11px;
  position:relative;
  transition:background .15s ease,color .15s ease;
  font-family:var(--font-body);
}
.navbtn:hover{background:rgba(255,255,255,.08);color:#fff}
.navbtn.active{background:rgba(255,255,255,.16);color:#fff;font-weight:800}
.navbtn.active::before{
  content:'';position:absolute;left:-14px;top:8px;bottom:8px;
  width:4px;border-radius:0 4px 4px 0;background:#fff;
}

.sidefoot{
  margin-top:auto;
  padding:16px 12px 4px;
  font-size:11px;
  color:rgba(255,255,255,.85);
  line-height:1.5;
}
.sidefoot b{
  display:block;
  font-family:var(--font-head);
  font-size:15px;
  font-weight:800;
  color:#fff;
  line-height:1.3;
}
.sidefoot .wordmark{
  display:block;
  margin-top:14px;
  font-size:10px;
  letter-spacing:.12em;
  color:rgba(255,255,255,.35);
  font-weight:800;
}

/* ============================================================
   TOP BAR
   ============================================================ */
.top{
  height:64px;
  background:var(--surface);
  color:var(--ink);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:0 24px;
  position:sticky;
  top:0;
  z-index:30;
  border-bottom:1px solid var(--line);
}

.menuBtn{display:none}

.topright{
  display:flex;
  gap:10px;
  align-items:center;
  margin-left:auto;
}

.pill{
  background:var(--primary-tint);
  color:var(--primary-700);
  padding:8px 14px;
  border-radius:var(--radius-pill);
  font-size:12.5px;
  font-weight:600;
  display:flex;
  align-items:center;
  gap:7px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  max-width:280px;
}
.pill .dot{
  width:7px;height:7px;border-radius:50%;
  background:#16a34a;flex:none;
}

.topbell{position:relative;display:flex;align-items:center}

.bellbtn{
  position:relative;
  width:38px;height:38px;
  border-radius:50%;
  background:var(--surface);
  border:1px solid var(--line);
  display:flex;align-items:center;justify-content:center;
  color:var(--ink);
}
.bellbtn:hover{border-color:var(--primary);color:var(--primary-700)}

.bellbtn .dotcount{
  position:absolute;top:-3px;right:-3px;
  background:var(--red);color:#fff;
  font-size:9.5px;font-weight:800;
  min-width:16px;height:16px;
  border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  padding:0 3px;
}

/* ============================================================
   NOTIFICATION PANEL
   ============================================================ */
.notifpanel{
  position:absolute;
  top:48px;right:0;
  width:360px;max-width:88vw;
  max-height:440px;
  overflow:auto;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius-md);
  box-shadow:var(--shadow-lg);
  z-index:70;
  padding:10px;
}

.notifhead{
  display:flex;justify-content:space-between;align-items:center;
  padding:4px 6px 10px;
  border-bottom:1px solid var(--line-soft);
  margin-bottom:6px;gap:8px;
}
.notifhead b{font-family:var(--font-head);font-size:14px}

.notiflist{display:flex;flex-direction:column;gap:4px}

.notifitem{
  display:flex;gap:10px;align-items:flex-start;
  padding:9px 8px;border-radius:9px;
  cursor:pointer;position:relative;
  transition:background .12s ease;
}
.notifitem:hover{background:var(--surface-soft)}
.notifitem.unread{background:var(--primary-tint)}

.notifempty{
  text-align:center;padding:30px 10px;
  color:var(--muted);font-size:12.5px;
}

/* ============================================================
   MAIN CONTENT
   ============================================================ */
.main{
  flex:1;
  padding:26px 28px 40px;
  max-width:1560px;
  width:100%;
  margin:0 auto;
}

.loading{
  display:flex;flex-direction:column;align-items:center;
  justify-content:center;
  padding:80px 20px;
  color:var(--muted);
  gap:16px;
  font-size:13px;
}

.spinner{
  width:32px;height:32px;
  border:3px solid var(--primary-light);
  border-top-color:var(--primary);
  border-radius:50%;
  animation:spin .8s linear infinite;
}
@keyframes spin{to{transform:rotate(360deg)}}

.page-title{
  display:flex;justify-content:space-between;
  align-items:flex-start;gap:16px;
  margin-bottom:20px;flex-wrap:wrap;
}
.page-title h1{font-size:25px;letter-spacing:-.01em}
.page-title .sub{
  color:var(--muted);font-size:13px;
  margin-top:5px;max-width:64ch;line-height:1.5;
}

/* ============================================================
   CARDS
   ============================================================ */
.card{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius-md);
  padding:18px;
  box-shadow:var(--shadow-sm);
}

.grid{display:grid;gap:14px}
.cards{grid-template-columns:repeat(5,minmax(0,1fr))}
.two{grid-template-columns:1.25fr .75fr}
.three{grid-template-columns:repeat(3,1fr)}

.section-title{
  font-size:15.5px;font-weight:800;
  margin:0 0 13px;
  display:flex;align-items:center;gap:8px;
  letter-spacing:-.005em;
}

/* KPI */
.kpi{padding:17px 18px}
.kpi .label{
  font-size:11px;color:var(--muted);
  font-weight:700;text-transform:uppercase;
  letter-spacing:.045em;
}
.kpi .num{
  font-size:28px;font-weight:800;
  margin-top:6px;font-family:var(--font-head);
  letter-spacing:-.01em;
}
.kpi .hint{
  font-size:11.5px;color:var(--muted);
  margin-top:5px;
}

/* ============================================================
   TABLES
   ============================================================ */
.tablewrap{
  overflow:auto;
  border:1px solid var(--line);
  border-radius:var(--radius-md);
}

.table{
  width:100%;
  border-collapse:collapse;
  min-width:800px;
}
.table th,.table td{
  padding:11px 12px;
  border-bottom:1px solid var(--line-soft);
  text-align:left;
  font-size:12.5px;
  vertical-align:top;
}
.table th{
  background:var(--surface-soft);
  color:#57536f;
  font-size:10.5px;
  font-weight:800;
  letter-spacing:.04em;
  text-transform:uppercase;
}
.table tbody tr:hover{background:var(--primary-tint)}
.table tr:last-child td{border-bottom:0}

/* ============================================================
   BADGES
   ============================================================ */
.badge{
  display:inline-flex;
  align-items:center;
  gap:5px;
  padding:4px 10px;
  border-radius:var(--radius-pill);
  font-size:10.5px;
  font-weight:800;
  border:1px solid transparent;
}
.greenbg{background:var(--green-bg);color:var(--green);border-color:var(--green-line)}
.amberbg{background:var(--orange-bg);color:var(--orange);border-color:var(--orange-line)}
.redbg{background:var(--red-bg);color:var(--red);border-color:var(--red-line)}
.bluebg{background:var(--secondary-light);color:var(--secondary);border-color:#f8bbd0}
.graybg{background:var(--surface-soft);color:var(--muted);border-color:var(--line)}

/* ============================================================
   MODAL
   ============================================================ */
.modal{
  position:fixed;inset:0;
  background:rgba(15,15,15,.55);
  backdrop-filter:blur(2px);
  display:flex;align-items:center;justify-content:center;
  padding:20px;z-index:50;
}
.modalbox{
  background:var(--surface);
  border-radius:var(--radius-lg);
  width:min(1000px,100%);
  max-height:92vh;
  overflow:auto;
  padding:26px 28px;
  box-shadow:var(--shadow-lg);
}
.modalhead{
  display:flex;justify-content:space-between;align-items:center;
  margin-bottom:18px;padding-bottom:14px;
  border-bottom:1px solid var(--line);
}
.modalhead h2{font-size:19px;letter-spacing:-.01em}

/* ============================================================
   TOASTS
   ============================================================ */
#toastwrap{
  position:fixed;right:20px;bottom:20px;
  z-index:80;display:flex;flex-direction:column;
  gap:9px;align-items:flex-end;
}
.toast{
  background:var(--ink);color:#fff;
  padding:12px 16px;border-radius:11px;
  font-size:12.5px;font-weight:600;
  box-shadow:var(--shadow-lg);
  animation:toastin .25s ease;
  max-width:320px;
}
.toast.tgreen{background:#0f5132}
.toast.tred{background:#7a1f1f}
@keyframes toastin{
  from{opacity:0;transform:translateY(8px)}
  to{opacity:1;transform:translateY(0)}
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media(max-width:1150px){
  .cards{grid-template-columns:repeat(2,1fr)}
  .two,.three{grid-template-columns:1fr}
  .side{width:210px}
}

@media(max-width:760px){
  .side{
    position:fixed;
    left:0;top:0;bottom:0;
    z-index:60;
    transform:translateX(-100%);
    transition:transform .2s ease;
    box-shadow:var(--shadow-lg);
  }
  .side.open{transform:translateX(0)}
  .menuBtn{display:inline-flex}
  .main{padding:16px}
  .top{padding:0 12px;gap:6px}
  .pill{max-width:120px;font-size:10.5px;padding:7px 10px}
  .notifpanel{position:fixed;top:60px;right:8px;left:8px;width:auto;max-width:none}
  .cards{grid-template-columns:repeat(2,1fr)}
  .table{min-width:820px}
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ============================================================
   TABLE POLISH
   ============================================================ */
.table tbody tr{
  transition:background .12s ease, transform .1s ease;
}
.table tbody tr:hover{
  background:var(--primary-tint);
}
.table tbody tr:hover td{
  color:var(--ink);
}
.table td b{
  color:var(--primary-700);
  font-weight:800;
}

/* Better nav buttons with icon */
.navbtn{
  display:flex;
  align-items:center;
  gap:11px;
}
.navbtn svg{
  flex:none;
  opacity:.85;
  transition:opacity .15s ease;
}
.navbtn:hover svg,
.navbtn.active svg{
  opacity:1;
}

/* Smoother modal entrance */
.modal:not(.hidden) .modalbox{
  animation:modalIn .2s ease;
}
@keyframes modalIn{
  from { opacity:0; transform:translateY(-8px) scale(.98); }
  to   { opacity:1; transform:translateY(0) scale(1); }
}

/* ============================================================
   DASHBOARD — KPI 6-UP (horizontal, kecil)
   ============================================================ */
.kpis6 {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  margin-bottom: 15px;
}

.kpis6 .kpi {
  padding: 16px;
  min-width: 0;
}

.kpis6 .kpi .kicon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  font-size: 14px;
}

.kpis6 .kpi .label {
  font-size: 10.5px;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  line-height: 1.3;
}

.kpis6 .kpi .num {
  font-size: 28px;
  font-weight: 800;
  font-family: var(--font-head);
  margin-top: 6px;
  letter-spacing: -.01em;
  line-height: 1;
}

.kpis6 .kpi.k-violet .kicon {
  background: var(--primary-light);
  color: var(--primary);
}
.kpis6 .kpi.k-blue .kicon {
  background: var(--secondary-light);
  color: var(--secondary);
}
.kpis6 .kpi.k-green .kicon {
  background: var(--green-bg);
  color: var(--green);
}
.kpis6 .kpi.k-orange .kicon {
  background: var(--orange-bg);
  color: var(--orange);
}
.kpis6 .kpi.k-red .kicon {
  background: var(--red-bg);
  color: var(--red);
}

/* ============================================================
   DASHBOARD — 3-COLUMN GRID
   ============================================================ */
.dash-3col {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 15px;
  margin-bottom: 15px;
}

/* ============================================================
   VIZ HEAD — section header with tag
   ============================================================ */
.vizhead {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
  gap: 10px;
  flex-wrap: wrap;
}

.vizhead .section-title {
  margin: 0;
  font-size: 15px;
}

.stag {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--muted);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

/* ============================================================
   BAR CHART — proper sizing
   ============================================================ */
.barchart {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  height: 180px;
  padding: 14px 4px 0;
  border-bottom: 1px solid var(--line);
}

.baritem {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  height: 100%;
  gap: 6px;
}

.barwrap {
  height: 130px;
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.barx {
  width: min(48px, 70%);
  min-height: 4px;
  border-radius: 8px 8px 3px 3px;
  transition: height .4s ease;
}

.barvalue {
  font-weight: 800;
  font-size: 12.5px;
  font-family: var(--font-head);
}

.barlabel {
  font-size: 10px;
  color: var(--muted);
  text-align: center;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
}

/* ============================================================
   DONUT CHART
   ============================================================ */
.donutbox {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 8px 0;
}

.donut {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  position: relative;
  flex: none;
}

.donut::after {
  content: "";
  position: absolute;
  inset: 34px;
  background: var(--surface);
  border-radius: 50%;
}

.donutnum {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 800;
  font-family: var(--font-head);
}

.legend {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  width: 100%;
}

.leg {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ldot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex: none;
}

.leg b {
  margin-left: auto;
  font-weight: 800;
}

/* ============================================================
   WORKLOAD CARDS — 3-column small
   ============================================================ */
.workload-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.workload-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  background: var(--surface);
  min-width: 0;
}

.wl-top {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 14px;
}

.wl-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-family: var(--font-head);
  font-size: 14px;
  color: #fff;
  flex: none;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.wl-name {
  font-weight: 800;
  font-size: 13.5px;
  line-height: 1.25;
  font-family: var(--font-head);
}

.wl-pos {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

.wl-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 12px;
}

.wl-stat {
  background: var(--surface-soft);
  border-radius: 9px;
  padding: 8px 6px;
  text-align: center;
}

.wl-stat b {
  display: block;
  font-size: 15px;
  font-family: var(--font-head);
  line-height: 1;
  margin-bottom: 3px;
}

.wl-stat span {
  font-size: 9px;
  color: var(--muted);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.wl-pctrow {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}

.wl-pct {
  font-weight: 800;
  font-size: 14px;
  font-family: var(--font-head);
}

.wl-bar {
  height: 8px;
  border-radius: 999px;
  background: var(--line-soft);
  overflow: hidden;
  margin-bottom: 10px;
  position:relative;
  width:100%;
}

.wl-bar > div {
  height: 100%;
  border-radius: 999px;
  transition: width .4s ease;
  min-width:2px; 
}

.wl-status {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .05em;
  padding: 4px 12px;
  border-radius: 999px;
  display: inline-block;
}

/* Workload color tones */
.wl-available .wl-bar > div { background: var(--green); }
.wl-available .wl-pct { color: var(--green); }
.wl-available .wl-status { background: var(--green-bg); color: var(--green); }

.wl-moderate .wl-bar > div { background: var(--orange); }
.wl-moderate .wl-pct { color: var(--orange); }
.wl-moderate .wl-status { background: var(--orange-bg); color: var(--orange); }

.wl-heavy .wl-bar > div { background: var(--red); }
.wl-heavy .wl-pct { color: var(--red); }
.wl-heavy .wl-status { background: var(--red-bg); color: var(--red); }

/* ============================================================
   PROD STATS (Monthly KPI panel)
   ============================================================ */
.prod-big {
  font-size: 24px;
  font-weight: 800;
  font-family: var(--font-head);
  margin-bottom: 4px;
}

.prod-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 16px;
}

.prod-stat {
  text-align: center;
  background: var(--surface-soft);
  border-radius: 9px;
  padding: 10px 4px;
}

.prod-stat b {
  display: block;
  font-size: 16px;
  font-family: var(--font-head);
  line-height: 1;
  margin-bottom: 4px;
}

.prod-stat span {
  font-size: 9px;
  color: var(--muted);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .03em;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1150px) {
  .kpis6 { grid-template-columns: repeat(3, 1fr); }
  .dash-3col { grid-template-columns: 1fr; }
  .workload-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .kpis6 { grid-template-columns: repeat(2, 1fr); }
  .workload-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   ADDITIONS — Classes used in app.js but missing from CSS
   ============================================================ */

/* ---------- Dashboard Head (greeting bar) ---------- */
.dashhead{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:20px;
  flex-wrap:wrap;
  margin-bottom:20px;
}
.dashhead h1{
  font-size:26px;
  letter-spacing:-.015em;
  line-height:1.2;
  margin:0 0 4px;
  color:var(--ink);
}
.dashhead .sub{
  color:var(--muted);
  font-size:13.5px;
  line-height:1.5;
}
.dashhead-right{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
}

.datepill{
  display:inline-flex;
  align-items:center;
  gap:7px;
  background:var(--surface);
  border:1px solid var(--line);
  color:var(--ink);
  padding:9px 14px;
  border-radius:var(--radius-pill);
  font-size:12.5px;
  font-weight:600;
  white-space:nowrap;
  box-shadow:var(--shadow-sm);
}
.datepill svg{color:var(--primary);flex:none}

.miniprofile{
  display:flex;
  align-items:center;
  gap:10px;
  background:var(--surface);
  border:1px solid var(--line);
  padding:7px 14px 7px 8px;
  border-radius:var(--radius-pill);
  box-shadow:var(--shadow-sm);
}
.miniavatar{
  width:32px;height:32px;
  border-radius:50%;
  background:linear-gradient(135deg,var(--primary),var(--secondary));
  color:#fff;
  display:flex;align-items:center;justify-content:center;
  font-family:var(--font-head);
  font-weight:800;
  font-size:13px;
  flex:none;
}
.mp-name{
  font-weight:800;
  font-size:12.5px;
  line-height:1.2;
  font-family:var(--font-head);
}
.mp-role{
  font-size:10.5px;
  color:var(--muted);
  line-height:1.2;
  margin-top:1px;
}

/* ---------- Progress bar ---------- */
.progress{
  height:10px;
  background:var(--line-soft);
  border-radius:999px;
  overflow:hidden;
}
.progress > div{
  height:100%;
  background:linear-gradient(90deg,var(--primary),var(--secondary));
  border-radius:999px;
  transition:width .5s ease;
}

/* ---------- Dashboard banner ---------- */
.dash-banner{
  background:
    radial-gradient(600px 200px at 10% 0%, rgba(255,255,255,.12), transparent 60%),
    linear-gradient(120deg,var(--primary-700) 0%,var(--primary) 55%,var(--secondary) 100%);
  color:#fff;
  border-radius:var(--radius-lg);
  padding:26px 30px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  flex-wrap:wrap;
  box-shadow:var(--shadow-md);
  position:relative;
  overflow:hidden;
}
.dash-banner h2{
  font-family:var(--font-head);
  font-size:22px;
  letter-spacing:.02em;
  margin:0 0 6px;
  font-weight:800;
  color:#fff;
}
.dash-banner .sub2{
  font-size:11px;
  letter-spacing:.18em;
  color:rgba(255,255,255,.72);
  font-weight:700;
}
.dash-banner .bmark{
  font-family:var(--font-head);
  font-weight:800;
  font-size:14px;
  letter-spacing:.16em;
  color:rgba(255,255,255,.28);
}

/* ---------- Inline helpers used in app.js ---------- */
.muted{ color:var(--muted); }
.link{
  color:var(--primary-700);
  font-weight:700;
  text-decoration:none;
  background:transparent;
  border-color:transparent;
}
.link:hover{
  color:var(--primary);
  background:var(--primary-tint);
  border-color:transparent;
  box-shadow:none;
}

/* Small icon-only buttons inside tables */
.btn.icononly{padding:6px 8px;gap:0}

/* ---------- Stat rows (viewContent / viewRequest) ---------- */
.statrow{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  padding:9px 0;
  border-bottom:1px dashed var(--line-soft);
  font-size:12.5px;
  line-height:1.5;
}
.statrow:last-child{border-bottom:0}
.statrow > span{
  color:var(--muted);
  font-weight:700;
  font-size:11.5px;
  letter-spacing:.02em;
  text-transform:uppercase;
}
.statrow > b{
  color:var(--ink);
  font-weight:700;
  text-align:right;
  max-width:60%;
  word-break:break-word;
}
.statrow > div{
  color:var(--ink);
  font-size:12.5px;
  line-height:1.6;
  white-space:pre-wrap;
}

/* ---------- Toolbar (filter bars) ---------- */
.toolbar{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  align-items:flex-end;
}
.toolbar .field{flex:1 1 160px;margin-bottom:0}

/* ---------- KPI icon (generic, works outside .kpis6) ---------- */
.card.kpi .kicon{
  width:36px;height:36px;
  border-radius:10px;
  display:flex;align-items:center;justify-content:center;
  margin-bottom:12px;
  flex:none;
}

/* KPI tone colors — generic */
.card.kpi.k-violet .kicon{background:var(--primary-light);color:var(--primary)}
.card.kpi.k-blue   .kicon{background:var(--secondary-light);color:var(--secondary)}
.card.kpi.k-green  .kicon{background:var(--green-bg);color:var(--green)}
.card.kpi.k-orange .kicon{background:var(--orange-bg);color:var(--orange)}
.card.kpi.k-red    .kicon{background:var(--red-bg);color:var(--red)}

/* ============================================================
   POLISH — subtle upgrades on existing components
   ============================================================ */

/* Card hover lift (only for interactive-ish cards) */
.card{
  transition:box-shadow .18s ease, border-color .18s ease;
}

/* KPI card polish */
.card.kpi{
  position:relative;
  overflow:hidden;
}
.card.kpi::before{
  content:'';
  position:absolute;
  top:0;left:0;right:0;height:3px;
  background:linear-gradient(90deg,var(--primary),var(--secondary));
  opacity:0;
  transition:opacity .2s ease;
}
.card.kpi:hover::before{opacity:1}

/* Section title subtle underline */
.section-title{
  position:relative;
  padding-bottom:2px;
}

/* Better table zebra + border radius */
.tablewrap{
  box-shadow:var(--shadow-sm);
}

/* Badge icons spacing */
.badge svg{vertical-align:-2px}

/* Buttons — smoother active state */
.btn:focus-visible{
  outline:none;
  box-shadow:0 0 0 3px var(--primary-light);
  border-color:var(--primary);
}

/* Modal scrollbar (webkit) */
.modalbox::-webkit-scrollbar,
.notifpanel::-webkit-scrollbar,
.tablewrap::-webkit-scrollbar{width:10px;height:10px}
.modalbox::-webkit-scrollbar-thumb,
.notifpanel::-webkit-scrollbar-thumb,
.tablewrap::-webkit-scrollbar-thumb{
  background:var(--line);
  border-radius:999px;
  border:2px solid transparent;
  background-clip:content-box;
}
.modalbox::-webkit-scrollbar-thumb:hover,
.notifpanel::-webkit-scrollbar-thumb:hover,
.tablewrap::-webkit-scrollbar-thumb:hover{
  background:var(--muted);
  background-clip:content-box;
}

/* Notification item polish */
.notifitem{
  border:1px solid transparent;
}
.notifitem:hover{
  border-color:var(--line);
}
.notifitem.unread{
  border-color:var(--primary-light);
}

/* Sidebar nav active glow */
.navbtn.active{
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.08);
}

/* Responsive: dashhead on mobile */
@media (max-width:760px){
  .dashhead{flex-direction:column;align-items:stretch}
  .dashhead-right{justify-content:flex-start}
  .datepill{font-size:11.5px;padding:8px 12px}
  .dash-banner{padding:20px 22px}
  .dash-banner h2{font-size:18px}
  .toolbar .field{flex:1 1 100%}
}

/* Responsive: dashhead on tablet */
@media (max-width:1150px){
  .dashhead h1{font-size:23px}
}

/* ============================================================
   LOGIN PAGE — RED / BLACK THEME
   ============================================================ */

/* Background — merah gradient dengan subtle pattern */
/*.auth-body.auth-red {
  background:
    radial-gradient(1200px 600px at 10% 10%, rgba(200, 35, 61, 0.85), transparent 60%),
    radial-gradient(900px 500px at 90% 90%, rgba(20, 22, 27, 0.95), transparent 70%),
    linear-gradient(135deg, #9c1730 0%, #c8233d 40%, #14161b 100%) !important;
}

/* Auth box — putih dengan shadow kuat */
/*.auth-body.auth-red .authbox {
  background: #ffffff;
  box-shadow: 0 25px 60px rgba(20, 22, 27, 0.35), 0 0 0 1px rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 42px 38px;
}

/* ============================================================
   BACKGROUND RESPONSIVE (ALL DEVICES)
   ============================================================ */
.auth-body.auth-red {
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end; /* Desktop: Letak kotak kat kanan */
  padding: 40px 8%; 
  box-sizing: border-box;
  overflow-y: auto; /* Benarkan skrol kalau skrin kecik */
  
  background-image: url('background.png'); 
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Kotak Putih (Glassmorphism) */
.auth-body.auth-red .authbox {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
  border-radius: 24px;
  
  padding: 32px 36px; 
  width: 100%;
  max-width: 420px; /* Lebar maksimum desktop */
  
  max-height: 90vh; /* Elak terkeluar skrin laptop */
  overflow-y: auto; /* Bagi skrol dalam kotak kalau form panjang */
  margin: 0; 
}

/* Custom Scrollbar untuk kotak login (optional) */
.auth-body.auth-red .authbox::-webkit-scrollbar {
  width: 6px;
}
.auth-body.auth-red .authbox::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 10px;
}
/* Logo mark — kotak putih dengan logo Alphastrats */
.auth-body.auth-red .authmark.logo-mark {
  width: 56px;
  height: 56px;
  background: #fff;
  border-radius: 14px;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(200, 35, 61, 0.15);
  margin-bottom: 20px;
}

.auth-body.auth-red .authmark.logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Heading — hitam bold */
.auth-body.auth-red .authbox h1 {
  color: #14161b;
  font-size: 26px;
  letter-spacing: -.02em;
  margin-bottom: 6px;
}

.auth-body.auth-red .auth-sub {
  color: #737f90;
  font-size: 13px;
  line-height: 1.55;
}

/* Inputs — focus merah */
.auth-body.auth-red .field input {
  border-color: #e4e8ee;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.auth-body.auth-red .field input:focus {
  border-color: #c8233d;
  box-shadow: 0 0 0 3px rgba(200, 35, 61, 0.12);
}

/* Button login — hitam dengan accent merah */
.auth-body.auth-red .btn.primary.authbtn {
  background: linear-gradient(135deg, #14161b 0%, #2a2e38 100%);
  border-color: #14161b;
  color: #fff;
  font-weight: 800;
  padding: 14px;
  font-size: 14px;
  letter-spacing: .02em;
  box-shadow: 0 6px 18px rgba(20, 22, 27, 0.25);
  transition: transform .12s ease, box-shadow .15s ease, background .15s ease;
}

.auth-body.auth-red .btn.primary.authbtn:hover {
  background: linear-gradient(135deg, #c8233d 0%, #9c1730 100%);
  border-color: #c8233d;
  box-shadow: 0 8px 22px rgba(200, 35, 61, 0.35);
  transform: translateY(-1px);
}

.auth-body.auth-red .btn.primary.authbtn:active {
  transform: translateY(0);
}

/* Link register — merah */
.auth-body.auth-red .auth-alt a,
.auth-body.auth-red .auth-success a {
  color: #c8233d;
  font-weight: 800;
}

.auth-body.auth-red .auth-alt a:hover {
  text-decoration: underline;
}

/* Test accounts box — gray tint */
.auth-body.auth-red .auth-notice {
  background: #fafbfc;
  border: 1px dashed #e4e8ee;
  color: #737f90;
}

.auth-body.auth-red .auth-notice b {
  color: #14161b;
}

.auth-body.auth-red .auth-notice code {
  background: #fef0f2;
  color: #c8233d;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 11px;
}

.auth-body.auth-red .auth-notice span {
  display: inline-block;
  margin-right: 8px;
  font-family: monospace;
  color: #14161b;
  font-size: 11.5px;
}

/* Error message — merah */
.auth-body.auth-red .auth-error {
  color: #c8233d;
  font-weight: 700;
}

/* Mobile */
@media (max-width: 768px) {
  .auth-body.auth-red {
    justify-content: center;
    padding: 20px;
    background-position: left center; /* Fokus gambar kat kiri sikit */
  }
}

/* ============================================================
   PENDEKKAN KOTAK REGISTER/LOGIN (TANPA KURUSKAN)
   ============================================================ */

/* 1. Kecilkan padding atas & bawah kotak putih */
.auth-body.auth-red .authbox {
  padding-top: 24px !important;
  padding-bottom: 24px !important;
  /* Width dibiarkan (tak ubah max-width) */
}

/* 2. Rapatkan jarak antara input (margin-bottom) */
.auth-body.auth-red .field {
  margin-bottom: 10px !important; /* Asal 14px/12px */
  gap: 4px !important; /* Jarak antara label & input */
}

/* 3. Kecilkan sikit tinggi dalam input supaya tak tebal sangat */
.auth-body.auth-red .field input,
.auth-body.auth-red .field select {
  padding-top: 8px !important;
  padding-bottom: 8px !important;
}

/* 4. Rapatkan heading dengan form */
.auth-body.auth-red .authbox h1 {
  margin-bottom: 2px !important;
}

.auth-body.auth-red .auth-sub {
  margin-bottom: 16px !important; /* Asal 24px */
}

/* 5. Rapatkan kotak Note kat bawah tu */
.auth-body.auth-red .auth-notice {
  margin-top: 16px !important;
  padding-top: 10px !important;
  padding-bottom: 10px !important;
}

/* 6. Rapatkan butang Register dengan input atas dia */
.auth-body.auth-red .btn.primary.authbtn {
  margin-top: 6px !important;
  padding-top: 10px !important;
  padding-bottom: 10px !important;
}

/* ============================================================
   RESPONSIVE TABLET (iPad / Skrin 768px - 1024px)
   ============================================================ */
@media (max-width: 768px) {
  .auth-body.auth-red {
    justify-content: center; /* Letak kotak kat tengah */
    padding: 30px 5%;
  }
  .auth-body.auth-red .authbox {
    max-width: 480px; /* Kotak sikit besar kat tablet */
  }
}

/* ============================================================
   RESPONSIVE MOBILE (Phone / Skrin < 768px)
   ============================================================ */
@media (max-width: 600px) {
  .auth-body.auth-red {
    justify-content: center;
    padding: 15px;
    
    /* Zoom masuk supaya teks hilang (tengok tingkap je) */
    background-size: 250%; 
    background-position: 50% 50%; /* Fokus ke arah tingkap KLCC */
  }
  
  /* Kekalkan overlay sikit supaya form senang baca */
  .auth-body.auth-red::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4); 
    z-index: 0;
  }

  /* Kotak putih */
  .auth-body.auth-red .authbox {
    position: relative;
    z-index: 1;
    padding: 32px 24px; 
    border-radius: 20px;
    width: 100%;
    max-width: 100%; 
    margin: 0;
    max-height: none; 
    overflow-y: visible;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4); 
    background: rgba(255, 255, 255, 0.98);
  }
  
  .auth-body.auth-red .authbox h1 {
    font-size: 24px;
  }
}

