/* =========================================================
   SIAP-CK — B-SMART Blue Dashboard Theme
   ========================================================= */

:root {
  --primary: #1a4f8a;
  --primary-light: #2563eb;
  --primary-dark: #0f2d5a;
  --accent: #38bdf8;
  --accent-soft: #e0f2fe;
  --success: #10b981;
  --success-soft: #d1fae5;
  --warning: #f59e0b;
  --warning-soft: #fef3c7;
  --danger: #ef4444;
  --danger-soft: #fee2e2;
  --info: #06b6d4;
  --info-soft: #cffafe;
  --purple: #8b5cf6;
  --purple-soft: #ede9fe;
  --secondary: #64748b;
  --secondary-soft: #f1f5f9;

  --bg-base: #f0f4f8;
  --bg-white: #ffffff;
  --bg-sidebar: #0f1f3d;

  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;

  --border: #e2e8f0;
  --border-light: #f1f5f9;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;

  --shadow-card: 0 2px 12px rgba(15, 45, 90, 0.08);
  --shadow-card-hover: 0 6px 20px rgba(15, 45, 90, 0.12);
  --shadow-btn: 0 4px 12px rgba(26, 79, 138, 0.3);

  --transition: all .2s cubic-bezier(.4,0,.2,1);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'DM Sans', sans-serif;
  background: var(--bg-base);
  color: var(--text-primary);
  font-size: 14.5px;
  line-height: 1.5;
}

h1, h2, h3, h4, h5, h6, .heading-font {
  font-family: 'Plus Jakarta Sans', sans-serif;
}

a { color: var(--primary-light); text-decoration: none; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- Layout Shell (after login) ---------- */
.app-shell { display: flex; min-height: 100vh; }

.sidebar {
  width: 260px;
  flex-shrink: 0;
  background: var(--bg-sidebar);
  color: #cbd5e1;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  overflow-y: auto;
  z-index: 100;
  transition: var(--transition);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 22px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.sidebar-brand .logo-icon {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--accent), var(--primary-light));
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: #fff; flex-shrink: 0;
}
.logo-icon-img { background: #fff !important; padding: 4px; overflow: hidden; flex-shrink: 0; }
.logo-icon-img img, .public-navbar .brand .logo-icon img {
  max-width: 100%; max-height: 100%; width: auto; height: auto;
  object-fit: contain; display: block; border-radius: 6px;
}
.sidebar-brand .brand-text .name { font-family:'Plus Jakarta Sans',sans-serif; font-weight: 700; font-size: 15px; color: #fff; }
.sidebar-brand .brand-text .sub { font-size: 11px; color: #8ea2c4; }

.sidebar-menu { padding: 16px 12px; list-style: none; margin: 0; }
.sidebar-menu .menu-label {
  font-size: 11px; text-transform: uppercase; letter-spacing: .06em;
  color: #5c6f8f; padding: 12px 12px 6px; font-weight: 600;
}
.sidebar-menu a.menu-item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px; border-radius: var(--radius-md);
  color: #b6c4dc; font-size: 13.5px; font-weight: 500;
  margin-bottom: 2px; transition: var(--transition);
  position: relative;
}
.sidebar-menu a.menu-item i { width: 18px; text-align: center; font-size: 15px; }
.sidebar-menu a.menu-item:hover { background: rgba(255,255,255,.06); color: #fff; }
.sidebar-menu a.menu-item.active {
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  color: #fff;
  box-shadow: 0 4px 14px rgba(37,99,235,.35);
}
.sidebar-menu a.menu-item .badge-count {
  margin-left: auto;
  background: var(--danger);
  color: #fff; font-size: 10.5px; font-weight: 700;
  padding: 1px 7px; border-radius: 20px;
}

.sidebar-box {
  margin: 14px 12px; padding: 14px 14px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-lg);
}
.sidebar-box .box-title {
  font-size: 12px; font-weight: 700; color: #dce6f5;
  display: flex; align-items: center; gap: 8px; margin-bottom: 10px;
}
.sidebar-box .flow-step {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 11.5px; color: #93a6c4; padding: 5px 0;
}
.sidebar-box .flow-step .num {
  width: 18px; height: 18px; border-radius: 50%;
  background: rgba(56,189,248,.18); color: var(--accent);
  font-size: 10px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px;
}
.sidebar-box.helpdesk a {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(135deg,#25d366,#128c4a);
  color: #fff; padding: 9px; border-radius: var(--radius-md);
  font-size: 12.5px; font-weight: 600; margin-top: 4px;
}

/* ---------- Main content ---------- */
.main-content { margin-left: 260px; width: calc(100% - 260px); min-height: 100vh; display: flex; flex-direction: column; }

.topbar {
  height: 64px; position: sticky; top: 0; z-index: 90;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 26px;
}
.topbar .page-title { font-family:'Plus Jakarta Sans',sans-serif; font-weight: 700; font-size: 17px; color: var(--text-primary); }
.topbar .page-title .subtitle { display:block; font-family:'DM Sans',sans-serif; font-weight:400; font-size:12px; color:var(--text-muted); }

.topbar-right { display: flex; align-items: center; gap: 18px; }
.topbar-user { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.topbar-user .avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px;
}
.topbar-user .user-meta .uname { font-size: 13.5px; font-weight: 600; color: var(--text-primary); }
.topbar-user .user-meta .urole { font-size: 11.5px; color: var(--text-muted); }

.content-area { padding: 26px; flex: 1; }

/* ---------- Cards ---------- */
.card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-light);
  transition: var(--transition);
}
.card-header {
  padding: 18px 22px;
  border-bottom: 1px solid var(--border-light);
  display: flex; align-items: center; justify-content: space-between;
}
.card-header h3 { margin: 0; font-size: 15.5px; font-weight: 700; color: var(--text-primary); }
.card-body { padding: 22px; }

/* ---------- Stat cards ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; margin-bottom: 24px; }
.stat-card {
  background: var(--bg-white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card); padding: 20px 22px;
  display: flex; align-items: center; gap: 16px;
  border: 1px solid var(--border-light);
  transition: var(--transition);
}
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card-hover); }
.stat-card .stat-icon {
  width: 52px; height: 52px; border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center; font-size: 21px; flex-shrink: 0;
}
.stat-card .stat-value { font-family:'Plus Jakarta Sans',sans-serif; font-size: 24px; font-weight: 800; color: var(--text-primary); line-height:1.2; }
.stat-card .stat-label { font-size: 12.5px; color: var(--text-secondary); margin-top: 2px; }

.icon-primary { background: var(--accent-soft); color: var(--primary); }
.icon-warning { background: var(--warning-soft); color: var(--warning); }
.icon-success { background: var(--success-soft); color: var(--success); }
.icon-danger { background: var(--danger-soft); color: var(--danger); }
.icon-info { background: var(--info-soft); color: var(--info); }
.icon-purple { background: var(--purple-soft); color: var(--purple); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: var(--radius-md);
  font-size: 13.5px; font-weight: 600; border: none; cursor: pointer;
  transition: var(--transition); font-family: 'DM Sans', sans-serif;
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: #fff; box-shadow: var(--shadow-btn); }
.btn-primary:hover { box-shadow: 0 6px 18px rgba(26,79,138,.4); color:#fff; }
.btn-success { background: linear-gradient(135deg, #10b981, #059669); color: #fff; box-shadow: 0 4px 12px rgba(16,185,129,.3); }
.btn-danger { background: linear-gradient(135deg, #ef4444, #dc2626); color: #fff; box-shadow: 0 4px 12px rgba(239,68,68,.3); }
.btn-warning { background: linear-gradient(135deg, #f59e0b, #d97706); color: #fff; box-shadow: 0 4px 12px rgba(245,158,11,.3); }
.btn-outline { background: #fff; border: 1.5px solid var(--border); color: var(--text-primary); }
.btn-outline:hover { border-color: var(--primary-light); color: var(--primary-light); }
.btn-sm { padding: 7px 14px; font-size: 12.5px; }
.btn-light { background: var(--bg-base); color: var(--text-primary); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform:none; }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 20px;
  font-size: 11.5px; font-weight: 700;
}
.badge-warning { background: var(--warning-soft); color: #92600a; }
.badge-success { background: var(--success-soft); color: #067a55; }
.badge-danger { background: var(--danger-soft); color: #b91c1c; }
.badge-info { background: var(--info-soft); color: #0e7490; }
.badge-purple { background: var(--purple-soft); color: #6d28d9; }
.badge-secondary { background: var(--secondary-soft); color: var(--text-secondary); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }
table.data-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.data-table thead th {
  text-align: left; padding: 12px 16px; background: var(--bg-base);
  color: var(--text-secondary); font-weight: 700; font-size: 12px;
  text-transform: uppercase; letter-spacing: .03em;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
table.data-table thead th:first-child { border-top-left-radius: var(--radius-sm); }
table.data-table thead th:last-child { border-top-right-radius: var(--radius-sm); }
table.data-table tbody td { padding: 13px 16px; border-bottom: 1px solid var(--border-light); color: var(--text-primary); vertical-align: middle; }
table.data-table tbody tr:hover { background: #f8fafc; }
table.data-table tbody tr:last-child td { border-bottom: none; }

/* ---------- Forms ---------- */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 13px; font-weight: 600; color: var(--text-primary); margin-bottom: 7px; }
.form-label .req { color: var(--danger); }
.form-control, select.form-control, textarea.form-control {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--border);
  border-radius: var(--radius-md); font-size: 13.5px; font-family: 'DM Sans', sans-serif;
  color: var(--text-primary); background: #fff; transition: var(--transition);
}
.form-control:focus { outline: none; border-color: var(--primary-light); box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
textarea.form-control { resize: vertical; min-height: 90px; }
.form-hint { font-size: 12px; color: var(--text-muted); margin-top: 5px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.file-drop {
  border: 2px dashed var(--border); border-radius: var(--radius-md);
  padding: 18px; text-align: center; cursor: pointer; transition: var(--transition);
  background: var(--bg-base);
}
.file-drop:hover { border-color: var(--primary-light); background: var(--accent-soft); }
.file-drop i { font-size: 22px; color: var(--primary-light); margin-bottom: 6px; display:block; }
.file-drop .fname { font-size: 12.5px; color: var(--text-secondary); margin-top: 6px; word-break: break-all; }

/* ---------- Alerts ---------- */
.alert { padding: 14px 18px; border-radius: var(--radius-md); font-size: 13.5px; margin-bottom: 18px; display: flex; align-items: flex-start; gap: 10px; }
.alert-success { background: var(--success-soft); color: #067a55; border: 1px solid #a7f3d0; }
.alert-danger { background: var(--danger-soft); color: #b91c1c; border: 1px solid #fecaca; }
.alert-warning { background: var(--warning-soft); color: #92600a; border: 1px solid #fde68a; }
.alert-info { background: var(--info-soft); color: #0e7490; border: 1px solid #a5f3fc; }

/* ---------- Timeline (detail pengajuan) ---------- */
.timeline { position: relative; margin-left: 8px; padding-left: 30px; }
.timeline::before { content:''; position:absolute; left:9px; top:6px; bottom:6px; width:2px; background: var(--border); }
.timeline-item { position: relative; padding-bottom: 26px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item .dot {
  position: absolute; left: -30px; top: 2px; width: 20px; height: 20px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 10px; color: #fff;
  border: 3px solid #fff; box-shadow: 0 0 0 1px var(--border);
}
.timeline-item.done .dot { background: var(--success); }
.timeline-item.rejected .dot { background: var(--danger); }
.timeline-item.pending .dot { background: var(--text-muted); }
.timeline-item.active .dot { background: var(--primary-light); }
.timeline-item .ti-title { font-weight: 700; font-size: 13.5px; color: var(--text-primary); }
.timeline-item .ti-time { font-size: 11.5px; color: var(--text-muted); margin: 2px 0 6px; }
.timeline-item .ti-note { font-size: 13px; color: var(--text-secondary); background: var(--bg-base); padding: 10px 12px; border-radius: var(--radius-sm); }

/* ---------- Flow grid (5 langkah pencairan) ---------- */
.flow-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.flow-step-card {
  background: #fff; border-radius: var(--radius-lg); padding: 18px 16px; text-align: center;
  border: 1px solid var(--border-light); box-shadow: var(--shadow-card); position: relative;
}
.flow-step-card .fnum {
  width: 34px; height: 34px; border-radius: 50%; margin: 0 auto 10px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light)); color:#fff;
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px;
}
.flow-step-card i { font-size: 20px; color: var(--primary-light); margin-bottom: 8px; display:block; }
.flow-step-card .ftitle { font-weight: 700; font-size: 13px; margin-bottom: 4px; }
.flow-step-card .fdesc { font-size: 11.5px; color: var(--text-secondary); line-height: 1.4; }

/* ---------- Pagination ---------- */
.pagination { display: flex; gap: 6px; justify-content: flex-end; margin-top: 16px; }
.pagination a, .pagination span {
  padding: 7px 13px; border-radius: var(--radius-sm); font-size: 12.5px; font-weight: 600;
  color: var(--text-secondary); border: 1px solid var(--border); background:#fff;
}
.pagination a:hover { border-color: var(--primary-light); color: var(--primary-light); }
.pagination .active { background: var(--primary-light); color: #fff; border-color: var(--primary-light); }

/* ---------- Modal / Toast (vanilla) ---------- */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(15,31,61,.55); display: none;
  align-items: center; justify-content: center; z-index: 1000; padding: 20px;
}
.modal-overlay.show { display: flex; }
.modal-box { background: #fff; border-radius: var(--radius-lg); max-width: 460px; width: 100%; box-shadow: 0 20px 50px rgba(0,0,0,.25); overflow:hidden; }
.modal-box .modal-head { padding: 20px 24px 0; }
.modal-box .modal-head i { font-size: 34px; }
.modal-box .modal-body { padding: 14px 24px 6px; }
.modal-box .modal-title { font-weight: 700; font-size: 16px; margin: 10px 0 6px; }
.modal-box .modal-text { font-size: 13.5px; color: var(--text-secondary); }
.modal-box .modal-foot { padding: 18px 24px 24px; display: flex; gap: 10px; justify-content: flex-end; }

.toast-container { position: fixed; top: 20px; right: 20px; z-index: 2000; display: flex; flex-direction: column; gap: 10px; }
.toast {
  min-width: 280px; max-width: 360px; background: #fff; border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0,0,0,.15); padding: 14px 16px; display: flex; gap: 12px; align-items: flex-start;
  border-left: 4px solid var(--primary-light); animation: toastIn .25s ease;
}
.toast.success { border-color: var(--success); } .toast.success i { color: var(--success); }
.toast.error { border-color: var(--danger); } .toast.error i { color: var(--danger); }
.toast.warning { border-color: var(--warning); } .toast.warning i { color: var(--warning); }
.toast i { font-size: 18px; margin-top: 1px; }
.toast .t-msg { font-size: 13px; color: var(--text-primary); flex:1; }
@keyframes toastIn { from { opacity:0; transform: translateX(20px);} to {opacity:1; transform:translateX(0);} }

/* ---------- Public portal ---------- */
.public-navbar {
  background: var(--primary); color: #fff; height: 68px;
  display: flex; align-items: center; justify-content: space-between; padding: 0 40px;
  position: sticky; top:0; z-index: 100; box-shadow: 0 2px 12px rgba(15,45,90,.15);
}
.public-navbar .brand { display: flex; align-items: center; gap: 12px; font-family:'Plus Jakarta Sans',sans-serif; font-weight: 800; font-size: 17px; }
.public-navbar .brand .logo-icon { width: 38px; height: 38px; background: rgba(255,255,255,.15); border-radius: var(--radius-md); display:flex; align-items:center; justify-content:center; flex-shrink: 0; overflow: hidden; }
.public-navbar a.btn-masuk { background: #fff; color: var(--primary); padding: 9px 22px; border-radius: var(--radius-md); font-weight: 700; font-size: 13.5px; }

.hero-section {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary) 55%, var(--primary-light));
  color: #fff; padding: 90px 40px 100px; text-align: center; position: relative; overflow: hidden;
}
.hero-section::before {
  content:''; position:absolute; width:600px; height:600px; border-radius:50%;
  background: radial-gradient(circle, rgba(56,189,248,.25), transparent 70%);
  top: -250px; right: -150px;
}
.hero-section h1 { font-size: 38px; font-weight: 800; margin: 0 0 16px; position:relative; }
.hero-section p { font-size: 16px; color: #cfe0f5; max-width: 640px; margin: 0 auto 32px; position:relative; }
.hero-cta { display: flex; gap: 14px; justify-content: center; position: relative; flex-wrap: wrap; }
.hero-cta a { padding: 13px 28px; border-radius: var(--radius-md); font-weight: 700; font-size: 14px; }
.hero-cta .primary { background: #fff; color: var(--primary); }
.hero-cta .ghost { background: rgba(255,255,255,.12); color: #fff; border: 1.5px solid rgba(255,255,255,.35); }

.public-section { max-width: 1140px; margin: 0 auto; padding: 70px 24px; }
.public-section h2 { font-size: 25px; font-weight: 800; text-align:center; margin-bottom: 10px; }
.public-section .section-sub { text-align:center; color: var(--text-secondary); margin-bottom: 40px; font-size: 14px; }
.section-alt { background: #fff; }

.announce-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px,1fr)); gap: 20px; }
.announce-card { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-card); padding: 22px; border-top: 4px solid var(--primary-light); }
.announce-card .a-type { font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--primary-light); margin-bottom: 8px; }
.announce-card h4 { margin: 0 0 8px; font-size: 15.5px; }
.announce-card p { font-size: 13px; color: var(--text-secondary); line-height: 1.6; margin:0; }

.template-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); gap: 18px; }
.template-card { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-card); padding: 20px; display:flex; gap:14px; align-items:flex-start; }
.template-card .t-icon { width:44px; height:44px; border-radius: var(--radius-md); background: var(--accent-soft); color: var(--primary); display:flex; align-items:center; justify-content:center; font-size:18px; flex-shrink:0; }
.template-card h4 { margin: 0 0 4px; font-size: 14px; }
.template-card .t-meta { font-size: 11.5px; color: var(--text-muted); margin-bottom: 10px; }
.template-card a.dl { font-size: 12.5px; font-weight: 700; color: var(--primary-light); }

.syarat-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(320px,1fr)); gap: 14px; }
.syarat-list li { background: #fff; border-radius: var(--radius-md); padding: 14px 18px; box-shadow: var(--shadow-card); display: flex; gap: 12px; align-items: flex-start; font-size: 13.5px; }
.syarat-list li i { color: var(--success); margin-top: 2px; }
.syarat-list li .wajib-tag { font-size: 10.5px; color: var(--danger); font-weight: 700; margin-left: 6px; }

.public-footer { background: var(--bg-sidebar); color: #93a6c4; padding: 40px 40px 24px; }
.public-footer .foot-inner { max-width: 1140px; margin: 0 auto; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.public-footer h5 { color: #fff; font-size: 14px; margin: 0 0 10px; }
.public-footer p, .public-footer a { color: #93a6c4; font-size: 12.5px; text-decoration:none; }
.public-footer .copyright { text-align:center; margin-top: 26px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.08); font-size: 12px; }

/* ---------- Login page ---------- */
.login-shell {
  min-height: 100vh; display:flex; align-items:center; justify-content:center;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary) 60%, var(--primary-light));
  position: relative; overflow: hidden; padding: 20px;
}
.login-shell::before {
  content:''; position:absolute; width:500px; height:500px; border-radius:50%;
  background: radial-gradient(circle, rgba(56,189,248,.3), transparent 70%);
  top:-200px; left:-150px;
}
.login-shell::after {
  content:''; position:absolute; width:500px; height:500px; border-radius:50%;
  background: radial-gradient(circle, rgba(56,189,248,.2), transparent 70%);
  bottom:-220px; right:-150px;
}
.login-card {
  background: #fff; border-radius: var(--radius-xl); box-shadow: 0 25px 60px rgba(0,0,0,.3);
  padding: 44px 40px; width: 100%; max-width: 400px; position: relative; z-index: 2;
}
.login-card .login-logo { width:56px; height:56px; border-radius: var(--radius-lg); background: linear-gradient(135deg,var(--primary),var(--accent)); display:flex; align-items:center; justify-content:center; color:#fff; font-size:24px; margin: 0 auto 18px; }
.login-logo-img { background: #fff !important; padding: 6px; box-shadow: var(--shadow-card); overflow: hidden; }
.login-logo-img img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; display: block; border-radius: 8px; }
.login-card h2 { text-align:center; font-size: 20px; margin: 0 0 4px; }
.login-card .login-sub { text-align:center; color: var(--text-secondary); font-size: 13px; margin-bottom: 28px; }
.login-card .back-link { display:block; text-align:center; margin-top: 20px; font-size: 12.5px; color: var(--text-secondary); }
.demo-accounts { margin-top: 22px; padding-top: 18px; border-top: 1px dashed var(--border); }
.demo-accounts .demo-title { font-size: 11.5px; text-transform: uppercase; color: var(--text-muted); font-weight:700; margin-bottom:10px; text-align:center; }
.demo-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.demo-btns button { font-size: 11.5px; padding: 8px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--bg-base); cursor:pointer; font-weight:600; color: var(--text-secondary); }
.demo-btns button:hover { border-color: var(--primary-light); color: var(--primary-light); }

/* ---------- Misc ---------- */
.text-muted { color: var(--text-muted) !important; }
.text-secondary { color: var(--text-secondary) !important; }
.empty-state { text-align: center; padding: 50px 20px; color: var(--text-muted); }
.empty-state i { font-size: 42px; margin-bottom: 12px; display:block; opacity:.5; }
.doc-item { display:flex; align-items:center; gap:12px; padding: 12px 14px; border:1px solid var(--border-light); border-radius: var(--radius-md); margin-bottom:10px; }
.doc-item i { color: var(--primary-light); font-size: 18px; }
.doc-item .doc-meta { flex:1; }
.doc-item .doc-name { font-size: 13px; font-weight:600; }
.doc-item .doc-sub { font-size: 11.5px; color: var(--text-muted); }
.info-list { list-style:none; margin:0; padding:0; }
.info-list li { display:flex; justify-content:space-between; padding: 10px 0; border-bottom: 1px solid var(--border-light); font-size: 13.5px; }
.info-list li:last-child { border-bottom:none; }
.info-list li .label { color: var(--text-secondary); }
.info-list li .value { font-weight: 600; text-align:right; }

.mobile-toggle { display:none; background:none; border:none; font-size:20px; color: var(--text-primary); cursor:pointer; }

@media (max-width: 992px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; width: 100%; }
  .mobile-toggle { display:block; }
  .flow-grid { grid-template-columns: repeat(2,1fr); }
  .form-row { grid-template-columns: 1fr; }
  .content-area > div[style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
}
@media (max-width: 600px) {
  .flow-grid { grid-template-columns: 1fr; }
  .hero-section h1 { font-size: 28px; }
  .public-navbar { padding: 0 18px; }
  .content-area { padding: 16px; }
}
