/* Dashboard Operasi Digdaya Publika — gaya login DDSE Connect (split indigo). */

:root {
  --indigo: #4f46e5;
  --violet: #7c3aed;
  --navy: #0b0b1e;
  --indigo-deep: #312e81;
  --ink: #0f172a;
  --gray: #64748b;
  --gray-light: #94a3b8;
  --border: #e2e8f0;
  --input-bg: #f8fafc;
  --red: #c8102e;
  --status-belum: #d9d9d9;
  --status-progress: #fff2cc;
  --status-tunda: #f4cccc;
  --status-selesai: #d9ead3;
}

* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: #f1f5f9; }
.hidden { display: none !important; }
.error { color: #b91c1c; font-size: 14px; }
.muted { color: var(--gray); font-size: 13px; margin: 4px 0 0; }

/* ---------- Login: split screen ---------- */
.login-screen { display: flex; min-height: 100vh; }
.brand-panel {
  flex: 0 0 70%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--navy) 0%, var(--indigo-deep) 55%, var(--indigo) 100%);
  color: #fff; padding: 40px;
}
.brand-inner { text-align: center; max-width: 520px; }
.brand-mark { font-size: 48px; line-height: 1; }
.brand-inner h1 { font-size: 34px; letter-spacing: 4px; margin: 16px 0 8px; }
.brand-sub { font-size: 22px; font-weight: 600; opacity: .9; margin: 0; }
.brand-desc { font-size: 15px; opacity: .75; margin: 16px 0 0; line-height: 1.6; }

.form-panel { flex: 1; display: flex; align-items: center; background: #fff; padding: 32px; }
.form-inner { width: 100%; max-width: 340px; margin: 0 auto; }
.form-inner h2 { font-size: 32px; margin: 0 0 8px; }
.form-sub { color: var(--gray); font-size: 14px; margin: 0 0 28px; line-height: 1.5; }
.form-inner label { display: block; font-size: 11px; font-weight: 700; letter-spacing: 1px; color: #475569; margin-bottom: 8px; }
.form-inner input {
  width: 100%; height: 48px; padding: 0 14px; font-size: 15px;
  background: var(--input-bg); border: 1px solid var(--border); border-radius: 12px; outline: none;
}
.form-inner input:focus { border-color: var(--indigo); }
.btn-primary {
  width: 100%; height: 50px; margin-top: 20px; border: 0; border-radius: 12px;
  background: linear-gradient(90deg, var(--indigo), var(--violet));
  color: #fff; font-size: 15px; font-weight: 700; cursor: pointer;
  box-shadow: 0 8px 20px rgba(124, 58, 237, .35);
}
.btn-primary:disabled { opacity: .6; cursor: wait; }
.form-foot { color: var(--gray-light); font-size: 12px; text-align: center; margin-top: 32px; }

/* ---------- Dashboard ---------- */
.topbar {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
  background: #fff; border-bottom: 1px solid var(--border); padding: 20px 28px;
}
.topbar h1 { font-size: 22px; margin: 0; }
.topbar-actions { display: flex; gap: 8px; flex-shrink: 0; }
.btn-ghost {
  height: 38px; padding: 0 14px; border: 1px solid var(--border); border-radius: 10px;
  background: #fff; font-size: 14px; cursor: pointer;
}
.btn-ghost:hover { border-color: var(--indigo); color: var(--indigo); }

.filters {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 16px 28px 0; font-size: 14px;
}
.filters select { height: 36px; border: 1px solid var(--border); border-radius: 8px; padding: 0 8px; font-size: 14px; background: #fff; }

.operations { padding: 16px 28px 40px; display: grid; gap: 20px; }
.op-card { background: #fff; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.op-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.op-head h2 { font-size: 18px; margin: 0; }
.op-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.badge { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: #eef2ff; color: var(--indigo); }
.badge-green { background: #dcfce7; color: #166534; }
.op-body { padding: 16px 20px; }
.summary-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px 20px; margin-bottom: 16px; }
.summary-grid dt { font-size: 11px; font-weight: 700; letter-spacing: .5px; color: var(--gray); text-transform: uppercase; }
.summary-grid dd { margin: 4px 0 0; font-size: 14px; line-height: 1.5; }
.members { margin: 0 0 16px; padding: 0; list-style: none; font-size: 14px; line-height: 1.7; }
.members li::before { content: "• "; color: var(--red); font-weight: 700; }

.misi-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.misi-table th { text-align: left; background: var(--red); color: #fff; padding: 9px 10px; font-size: 13px; }
.misi-table td { padding: 9px 10px; border-bottom: 1px solid #f1f5f9; vertical-align: top; line-height: 1.5; }
.misi-table tr:nth-child(even) td { background: #fafafa; }
.status-pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.status-belum { background: var(--status-belum); }
.status-progress { background: var(--status-progress); }
.status-tunda { background: var(--status-tunda); }
.status-selesai { background: var(--status-selesai); }
.sheet-link { display: inline-block; margin-top: 14px; font-size: 13px; color: var(--indigo); font-weight: 600; text-decoration: none; }
.sheet-link:hover { text-decoration: underline; }
.empty-note { color: var(--gray); font-size: 14px; }

@media (max-width: 820px) {
  .login-screen { flex-direction: column; }
  .brand-panel { flex: none; padding: 28px 20px; }
  .brand-inner h1 { font-size: 24px; }
  .topbar { flex-direction: column; }
  .misi-table { display: block; overflow-x: auto; }
}
