/* Catur Dashboard — gaya "brand marketing blue" (tanpa build step) */
:root {
  --blue: #2c49a6;
  --blue-700: #223b8c;
  --blue-800: #1b2f73;
  --blue-100: #e6ebf8;
  --blue-50: #f2f5fc;
  --ink: #1d2433;
  --muted: #6b7489;
  --line: #e3e6ee;
  --bg: #f4f5f9;
  --white: #fff;
  --green: #1f9d6b;
  --amber: #d98a06;
  --red: #d64545;
  --grey: #8a93a6;
  --shadow: 0 6px 18px rgba(29, 36, 51, .07);
  --radius: 4px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: "Lato", system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--ink); background: var(--bg); font-size: 15px; line-height: 1.5; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; font-weight: 900; letter-spacing: -.01em; }
p { margin: 0; }
small, .muted { color: var(--muted); }
.icon { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Shell ---------- */
.shell { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.sidebar { background: var(--blue); color: #fff; padding: 26px 0; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 24px 26px; font-weight: 900; font-size: 15px; color: #fff; }
.brand:hover { text-decoration: none; }
.brand .icon { width: 22px; height: 22px; }
.brand small { display: block; color: rgba(255,255,255,.65); font-weight: 400; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.nav-label { padding: 18px 24px 6px; font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.nav a { display: flex; align-items: center; gap: 12px; padding: 10px 24px; color: rgba(255,255,255,.86); font-size: 14.5px; border-left: 3px solid transparent; }
.nav a:hover { background: rgba(255,255,255,.08); text-decoration: none; color: #fff; }
.nav a.active { background: #fff; color: var(--blue); font-weight: 700; border-left-color: var(--blue-800); }
.nav .count { margin-left: auto; background: #fff; color: var(--blue); font-size: 11px; font-weight: 900; padding: 1px 7px; border-radius: 99px; }
.nav a.active .count { background: var(--blue); color: #fff; }
.sidebar-foot { margin-top: auto; padding: 18px 24px 0; font-size: 11px; color: rgba(255,255,255,.55); letter-spacing: .08em; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; gap: 16px; background: #fff; border-bottom: 1px solid var(--line); padding: 14px 32px; position: sticky; top: 0; z-index: 5; }
.topbar .crumb { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.topbar .spacer { flex: 1; }
.menu-btn { display: none; background: none; border: 0; padding: 4px; cursor: pointer; color: var(--blue); }
.who { display: flex; align-items: center; gap: 10px; }
.who .meta { text-align: right; line-height: 1.2; }
.who .meta b { display: block; font-size: 14px; }
.who .meta span { font-size: 12px; color: var(--muted); }
.content { padding: 28px 32px 48px; }

/* ---------- Typography blocks ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.eyebrow { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--blue); font-weight: 700; display: block; margin-bottom: 4px; }
.page-head h1 { font-size: 30px; }
.page-head p { color: var(--muted); margin-top: 4px; max-width: 640px; }
.section-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; gap: 8px; }
.section-title h2 { font-size: 17px; text-transform: uppercase; letter-spacing: .04em; }
.section-title h2::after { content: ""; display: block; width: 28px; height: 3px; background: var(--blue); margin-top: 6px; }

/* ---------- Hero (meniru slide cover) ---------- */
.hero { position: relative; overflow: hidden; background: var(--blue); color: #fff; padding: 34px 40px; margin-bottom: 26px; border-radius: var(--radius);
  background-image: radial-gradient(ellipse at 85% 10%, rgba(255,255,255,.14), transparent 45%), repeating-radial-gradient(circle at 110% 120%, rgba(255,255,255,.05) 0 2px, transparent 2px 22px); }
.hero .rule { position: absolute; left: 40px; top: 34px; bottom: 34px; width: 2px; background: rgba(255,255,255,.9); }
.hero-inner { padding-left: 26px; max-width: 720px; }
.hero h1 { font-size: 34px; line-height: 1.1; }
.hero p { margin-top: 10px; color: rgba(255,255,255,.85); }
.hero .tag { display: inline-block; margin-top: 18px; border: 1.5px solid #fff; padding: 6px 14px; font-weight: 700; font-size: 13px; }
.hero .vertical { position: absolute; right: 26px; top: 50%; transform: translateY(-50%) rotate(90deg); transform-origin: center; font-size: 10px; letter-spacing: .4em; text-transform: uppercase; color: rgba(255,255,255,.75); white-space: nowrap; }

/* ---------- Stats (01, 02 ...) ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 26px; }
.stat { background: #fff; box-shadow: var(--shadow); padding: 18px 20px; display: flex; gap: 16px; align-items: center; border-radius: var(--radius); border-left: 4px solid var(--blue); }
.stat .num { font-size: 40px; font-weight: 900; color: var(--blue); line-height: 1; min-width: 56px; }
.stat b { display: block; font-size: 14px; }
.stat small { font-size: 12.5px; }
.stat.alert { border-left-color: var(--red); }
.stat.alert .num { color: var(--red); }

/* ---------- Grid & cards ---------- */
.grid { display: grid; gap: 20px; }
.g-2 { grid-template-columns: 1fr 1fr; }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-main { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.card { background: #fff; box-shadow: var(--shadow); border-radius: var(--radius); padding: 22px; min-width: 0; }
.card.flush { padding: 0; }
.card-head { background: var(--blue); color: #fff; padding: 12px 18px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; font-size: 13px; display: flex; justify-content: space-between; align-items: center; border-radius: var(--radius) var(--radius) 0 0; }
.card-body { padding: 18px; }
.split-card { display: grid; grid-template-columns: 120px 1fr; background: #fff; box-shadow: var(--shadow); border-radius: var(--radius); overflow: hidden; }
.split-card .side { background: var(--blue); color: #fff; display: grid; place-items: center; font-size: 42px; font-weight: 900; }

/* ---------- Project cards ---------- */
.projects { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.pcard { background: #fff; box-shadow: var(--shadow); border-radius: var(--radius); display: flex; flex-direction: column; overflow: hidden; color: var(--ink); transition: transform .15s, box-shadow .15s; }
.pcard:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 10px 26px rgba(29,36,51,.12); }
.pcard .top { background: var(--blue); color: #fff; padding: 16px 18px; position: relative; }
.pcard .top .code { font-size: 11px; letter-spacing: .18em; opacity: .8; }
.pcard .top h3 { font-size: 18px; margin-top: 2px; line-height: 1.25; }
.pcard .top .client { font-size: 13px; opacity: .85; }
.pcard .body { padding: 16px 18px; display: grid; gap: 12px; flex: 1; }
.pcard .row { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--muted); }
.pcard.done .top { background: var(--blue-800); }
.pcard.hold .top { background: #59647d; }

/* ---------- Progress ---------- */
.progress { height: 6px; background: var(--blue-100); border-radius: 99px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--blue); border-radius: 99px; }
.progress.lg { height: 10px; }
.pct { font-weight: 900; color: var(--blue); }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 99px; background: var(--blue-100); color: var(--blue-700); white-space: nowrap; }
.badge.light { background: rgba(255,255,255,.18); color: #fff; }
.b-perencanaan, .b-todo { background: #eef0f5; color: #4b556b; }
.b-berjalan, .b-proses { background: var(--blue-100); color: var(--blue-700); }
.b-review { background: #fff4dd; color: #946000; }
.b-selesai, .b-disetujui { background: #e2f5ec; color: #157552; }
.b-ditunda { background: #eceef2; color: #59647d; }
.b-menunggu { background: #fff4dd; color: #946000; }
.b-revisi, .b-tinggi, .b-late { background: #fde8e8; color: #b42f2f; }
.b-sedang { background: #eef0f5; color: #4b556b; }
.b-rendah { background: #f3f4f7; color: #8a93a6; }
.role { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; font-weight: 900; }

/* ---------- Avatar ---------- */
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--blue); color: #fff; display: inline-grid; place-items: center; font-weight: 900; font-size: 13px; flex: none; border: 2px solid #fff; }
.avatar.sm { width: 26px; height: 26px; font-size: 10.5px; }
.avatar.lg { width: 72px; height: 72px; font-size: 24px; border-width: 4px; box-shadow: var(--shadow); }
.avatar.r-administrator { background: #4a67c7; }
.avatar.r-staff_produksi { background: #6f86d6; }
.avatar.r-operation_director { background: var(--blue-800); }
.avatar.r-superadmin { background: #1d2433; }
.stack { display: flex; }
.stack .avatar { margin-left: -8px; }
.stack .avatar:first-child { margin-left: 0; }

/* ---------- Lists ---------- */
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.list li:last-child { border-bottom: 0; }
.list .grow { flex: 1; min-width: 0; }
.list .title { font-weight: 700; }
.list .sub { font-size: 12.5px; color: var(--muted); }
.numbered li .n { font-size: 22px; font-weight: 900; color: var(--blue); min-width: 34px; line-height: 1.1; }

/* ---------- Kanban ---------- */
.board { display: grid; grid-template-columns: repeat(4, minmax(230px, 1fr)); gap: 16px; overflow-x: auto; padding-bottom: 6px; }
.col { background: #e9ecf4; border-radius: var(--radius); min-width: 0; display: flex; flex-direction: column; }
.col-head { background: var(--blue); color: #fff; padding: 10px 14px; font-weight: 900; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; display: flex; justify-content: space-between; border-radius: var(--radius) var(--radius) 0 0; }
.col-head.c-selesai { background: var(--blue-800); }
.col-body { padding: 10px; display: grid; gap: 10px; align-content: start; min-height: 120px; }
.tcard { background: #fff; border-radius: var(--radius); padding: 12px 13px; box-shadow: 0 2px 6px rgba(29,36,51,.06); display: grid; gap: 8px; color: var(--ink); border-left: 3px solid transparent; }
.tcard:hover { text-decoration: none; border-left-color: var(--blue); }
.tcard .proj { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); font-weight: 700; }
.tcard .t { font-weight: 700; font-size: 14px; line-height: 1.3; }
.tcard .meta { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--muted); gap: 6px; }
.tcard.late { border-left-color: var(--red); }
.empty { text-align: center; color: var(--muted); font-size: 13px; padding: 18px 8px; }

/* ---------- Thread (koordinasi) ---------- */
.thread { display: grid; gap: 16px; }
.msg { display: flex; gap: 12px; }
.msg .bubble { background: var(--blue-50); border-radius: 0 var(--radius) var(--radius) var(--radius); padding: 10px 14px; flex: 1; min-width: 0; }
.msg .bubble .h { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; font-size: 13px; }
.msg .bubble .h b { font-size: 14px; }
.msg .bubble p { margin-top: 4px; white-space: pre-line; word-wrap: break-word; }
.msg.me .bubble { background: var(--blue); color: #fff; }
.msg.me .bubble small, .msg.me .bubble .h span { color: rgba(255,255,255,.75); }
.msg .tasklink { font-size: 12px; }
.msg.me .tasklink { color: #fff; text-decoration: underline; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row.three { grid-template-columns: 1fr 1fr 1fr; }
label { display: block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=datetime-local], input[type=number], input[type=search], select, textarea {
  width: 100%; font: inherit; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-100); }
textarea { min-height: 96px; resize: vertical; }
input[type=range] { width: 100%; accent-color: var(--blue); }
.check { display: flex; align-items: center; gap: 8px; text-transform: none; letter-spacing: 0; font-size: 14px; color: var(--ink); font-weight: 400; margin: 0; }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; border: 1.5px solid var(--line); padding: 12px; border-radius: var(--radius); }
.error { color: var(--red); font-size: 12.5px; margin-top: 4px; }
.hint { font-size: 12.5px; color: var(--muted); margin-top: 4px; }

.btn { display: inline-flex; align-items: center; gap: 8px; font: inherit; font-weight: 700; font-size: 14px; padding: 9px 18px; border-radius: var(--radius); border: 1.5px solid var(--blue); background: var(--blue); color: #fff; cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--blue-700); text-decoration: none; }
.btn.ghost { background: #fff; color: var(--blue); }
.btn.ghost:hover { background: var(--blue-50); }
.btn.danger { background: #fff; color: var(--red); border-color: #f0c4c4; }
.btn.danger:hover { background: #fdf0f0; }
.btn.green { background: var(--green); border-color: var(--green); }
.btn.sm { padding: 5px 12px; font-size: 13px; }
.btn.white { background: #fff; color: var(--blue); border-color: #fff; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.inline { display: inline; }

.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; align-items: center; }
.filters select, .filters input { width: auto; min-width: 170px; padding: 8px 12px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { padding: 6px 14px; border: 1.5px solid var(--line); border-radius: 99px; font-size: 13px; color: var(--muted); background: #fff; font-weight: 700; }
.chip:hover { text-decoration: none; border-color: var(--blue); color: var(--blue); }
.chip.on { background: var(--blue); border-color: var(--blue); color: #fff; }

/* ---------- Tables ---------- */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 10px 14px; border-bottom: 2px solid var(--blue); background: #fff; }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:hover td { background: var(--blue-50); }
.table-wrap { overflow-x: auto; }

/* ---------- Alerts ---------- */
.flash { padding: 12px 16px; border-radius: var(--radius); margin-bottom: 20px; font-weight: 700; display: flex; gap: 10px; align-items: center; }
.flash.ok { background: #e2f5ec; color: #157552; border-left: 4px solid var(--green); }
.flash.err { background: #fde8e8; color: #b42f2f; border-left: 4px solid var(--red); }
.notice { background: #fff4dd; border-left: 4px solid var(--amber); padding: 12px 16px; border-radius: var(--radius); font-size: 14px; }
.notice.red { background: #fde8e8; border-left-color: var(--red); }
.notice.green { background: #e2f5ec; border-left-color: var(--green); }

/* ---------- Detail helpers ---------- */
.kv { display: grid; grid-template-columns: 130px 1fr; gap: 8px 14px; font-size: 14px; }
.kv dt { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; padding-top: 2px; }
.kv dd { margin: 0; font-weight: 700; }
.donut { width: 140px; height: 140px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto; }
.donut > div { width: 96px; height: 96px; border-radius: 50%; background: #fff; display: grid; place-items: center; text-align: center; line-height: 1.1; }
.donut b { font-size: 26px; color: var(--blue); }
.legend { display: grid; gap: 8px; margin-top: 16px; font-size: 13px; }
.legend span.dot { width: 10px; height: 10px; border-radius: 2px; display: inline-block; margin-right: 8px; }
.legend div { display: flex; align-items: center; }
.legend div b { margin-left: auto; }
.pre { white-space: pre-line; }

/* ---------- Team ---------- */
.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.member { background: #fff; box-shadow: var(--shadow); border-radius: var(--radius); overflow: hidden; text-align: center; }
.member .band { height: 56px; background: var(--blue); }
.member .avatar.lg { margin-top: -36px; }
.member .inner { padding: 6px 16px 18px; }
.member h3 { font-size: 16px; margin-top: 8px; }
.member .pos { font-size: 13px; color: var(--muted); }
.member .nums { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); margin-top: 14px; }
.member .nums div { padding: 10px; }
.member .nums div + div { border-left: 1px solid var(--line); }
.member .nums b { display: block; font-size: 20px; color: var(--blue); }
.member .nums small { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }

/* ---------- Login ---------- */
.login { min-height: 100vh; display: grid; grid-template-columns: 1.2fr 1fr; }
.login .cover { background: var(--blue); color: #fff; position: relative; padding: 48px; display: flex; flex-direction: column; overflow: hidden;
  background-image: radial-gradient(ellipse at 80% 0%, rgba(255,255,255,.16), transparent 50%), repeating-radial-gradient(circle at 120% 110%, rgba(255,255,255,.05) 0 2px, transparent 2px 26px); }
.login .cover .mid { margin: auto 0; position: relative; padding-left: 30px; }
.login .cover .mid::before { content: ""; position: absolute; left: 0; top: -10px; bottom: -10px; width: 2px; background: #fff; }
.login .cover h1 { font-size: 52px; line-height: 1.05; }
.login .cover p { margin-top: 14px; max-width: 460px; color: rgba(255,255,255,.85); }
.login .cover .tag { display: inline-block; margin-top: 24px; border: 1.5px solid #fff; padding: 7px 16px; font-weight: 700; }
.login .cover .foot { font-weight: 900; letter-spacing: .06em; font-size: 13px; text-align: right; }
.login .cover .vertical { position: absolute; right: 36px; top: 50%; transform: translateY(-50%) rotate(90deg); font-size: 11px; letter-spacing: .45em; text-transform: uppercase; opacity: .8; white-space: nowrap; }
.login .panel { display: grid; place-items: center; padding: 40px; background: #fff; }
.login .panel form { width: 100%; max-width: 360px; }
.login .panel h2 { font-size: 26px; }
.login .panel h2::after { content: ""; display: block; width: 32px; height: 3px; background: var(--blue); margin: 10px 0 24px; }
.demo { margin-top: 26px; font-size: 12.5px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 14px; }
.demo code { background: var(--blue-50); color: var(--blue-700); padding: 1px 6px; border-radius: 3px; }

/* ---------- Pagination ---------- */
nav[role=navigation] { margin-top: 18px; }
nav[role=navigation] svg { width: 16px; height: 16px; }
.pager { display: flex; gap: 6px; margin-top: 18px; }
.pager a, .pager span { padding: 6px 12px; border: 1.5px solid var(--line); border-radius: var(--radius); background: #fff; font-size: 13px; }
.pager .on { background: var(--blue); border-color: var(--blue); color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .g-main, .g-3 { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: -260px; width: 248px; z-index: 30; transition: left .2s; }
  body.nav-open .sidebar { left: 0; box-shadow: 0 0 0 100vmax rgba(0,0,0,.35); }
  .menu-btn { display: block; }
  .content { padding: 20px 16px 40px; }
  .topbar { padding: 12px 16px; }
  .who .meta { display: none; }
  .g-2, .form-row, .form-row.three { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat { padding: 14px; gap: 10px; }
  .stat .num { font-size: 30px; min-width: 40px; }
  .stat small { display: none; }
  .hero { padding: 26px 24px; }
  .hero .rule { left: 24px; top: 26px; bottom: 26px; }
  .hero h1 { font-size: 26px; }
  .hero .vertical { display: none; }
  .login { grid-template-columns: 1fr; }
  .login .cover { min-height: 300px; padding: 32px; }
  .login .cover h1 { font-size: 36px; }
  .login .cover .vertical { display: none; }
  .kv { grid-template-columns: 1fr; gap: 2px; }
  .kv dd { margin-bottom: 8px; }
}
