*{box-sizing:border-box}body{margin:0;background:#f3f6fb;color:#172033;font:15px/1.5 Arial,sans-serif}header{background:#10264b;color:#fff;padding:15px 5%;display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap}.brand{font-weight:800;letter-spacing:1px;font-size:20px}.brand span{color:#facc15}nav{display:flex;gap:8px;flex-wrap:wrap}nav a{color:#fff;text-decoration:none;padding:8px 10px;border-radius:7px}nav a:hover{background:#24436f}main{max-width:1150px;margin:25px auto;padding:0 18px}h1{margin:0 0 18px;font-size:28px;color:#10264b}h2{font-size:19px;margin:0 0 15px}.panel{background:#fff;border:1px solid #e1e8f0;border-radius:12px;padding:20px;margin:18px 0;box-shadow:0 4px 14px #10264b08}.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:13px}.card{background:#fff;border:1px solid #e2e8f0;border-radius:11px;padding:17px}.card small{display:block;color:#64748b;margin-bottom:8px}.card strong{font-size:22px;color:#153b70}.filter{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin:12px 0}.formgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.formgrid label,.filter label{display:flex;flex-direction:column;gap:6px;font-weight:600;color:#334155}.wide{grid-column:1/-1}input,select{font:inherit;border:1px solid #cbd5e1;border-radius:7px;padding:10px;background:#fff;min-width:0}button,.btn{border:0;background:#1d4ed8;color:white;padding:10px 15px;border-radius:7px;font:inherit;font-weight:700;cursor:pointer;text-decoration:none;display:inline-block}button:hover,.btn:hover{background:#1e40af}.secondary{background:#64748b}.dangerlink{color:#dc2626}.tablewrap{overflow-x:auto}table{width:100%;border-collapse:collapse;min-width:650px}th,td{padding:11px 10px;border-bottom:1px solid #e5e7eb;text-align:left;vertical-align:top}th{background:#f8fafc;color:#334155;font-size:13px}.pill{background:#e0f2fe;color:#075985;padding:3px 8px;border-radius:99px;font-size:12px}.muted{color:#64748b;font-size:13px}.alert{padding:12px 15px;border-radius:8px;margin-bottom:15px}.success{background:#dcfce7;color:#166534}.error{background:#fee2e2;color:#991b1b}footer{text-align:center;color:#64748b;padding:30px;font-size:13px}@media(max-width:650px){header{display:block}nav{margin-top:12px}main{margin:18px auto;padding:0 12px}.formgrid{grid-template-columns:1fr}.wide{grid-column:auto}.panel{padding:15px}h1{font-size:24px}}@media print{header,footer,.filter button,.formgrid, .alert{display:none!important}body{background:white}.panel,.card{box-shadow:none;border:1px solid #ddd}main{max-width:none;margin:0;padding:0}}

.participant-photo{width:48px;height:48px;object-fit:cover;border-radius:50%;border:1px solid #dbe3ed;display:block}.participant-photo.large{width:110px;height:110px}.photo-placeholder{display:inline-flex;width:48px;height:48px;border-radius:50%;background:#f1f5f9;align-items:center;justify-content:center;color:#94a3b8}

.danger-button{background:#dc2626;color:#fff;border:0;border-radius:7px;padding:7px 10px;font:inherit;cursor:pointer}.danger-button:hover{background:#b91c1c}

/* ARISAN MOBILE-FIRST FOUNDATION */
:root{--navy:#10264b;--navy2:#183b69;--yellow:#facc15;--surface:#fff;--bg:#f4f7fb;--text:#152238;--muted:#718096;--line:#e4eaf2;--radius:18px}
body{background:var(--bg);color:var(--text);font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif}
header{position:sticky;top:0;z-index:30;background:rgba(16,38,75,.97);backdrop-filter:blur(12px);padding:13px max(16px,calc((100vw - 1180px)/2));}
.brand{font-size:19px}nav{gap:5px}nav a{font-size:13px;padding:9px 11px;border-radius:999px;white-space:nowrap}
main{max-width:1180px;margin:24px auto;padding:0 18px}h1{font-size:clamp(23px,4vw,30px);font-weight:800;letter-spacing:-.03em}h2{font-weight:750}
.panel,.card{border:1px solid var(--line);border-radius:var(--radius);box-shadow:0 8px 28px rgba(15,35,65,.045)}.panel{padding:22px;margin:18px 0}.card{padding:18px}
input,select,textarea{width:100%;min-height:46px;border:1px solid #d7e0eb;border-radius:13px;padding:11px 13px;background:#fff;outline:none;transition:border .16s,box-shadow .16s}
input:focus,select:focus,textarea:focus{border-color:#4779c7;box-shadow:0 0 0 4px rgba(59,130,246,.12)}
button,.btn{min-height:44px;border-radius:13px;padding:11px 16px;transition:transform .15s,background .15s;touch-action:manipulation}button:active,.btn:active{transform:scale(.98)}
.formgrid{gap:16px}.formgrid label,.filter label{gap:8px;font-size:13px;font-weight:700;color:#334155}.muted{font-weight:400}
.tablewrap{border:1px solid var(--line);border-radius:14px}table{min-width:680px}th{font-weight:750}td,th{padding:13px}
@media(max-width:720px){header{position:relative;display:block;padding:14px 14px 10px}nav{display:flex;overflow-x:auto;flex-wrap:nowrap;margin-top:10px;padding-bottom:3px;scrollbar-width:none}nav::-webkit-scrollbar{display:none}nav a{flex:0 0 auto}main{margin:16px auto;padding:0 12px}.panel{padding:16px;border-radius:16px;margin:14px 0}.formgrid{grid-template-columns:1fr}.wide{grid-column:auto}h1{margin-bottom:14px}.tablewrap{border-radius:12px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
/* Peserta AJAX feedback */
.form-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.toast-area{position:fixed;right:16px;bottom:16px;z-index:100;display:grid;gap:8px;max-width:min(420px,calc(100vw - 32px))}.toast{padding:13px 16px;border-radius:14px;color:#fff;font-weight:700;box-shadow:0 10px 30px #0f172a2b;animation:toast-in .18s ease-out}.toast-success{background:#15803d}.toast-error{background:#b91c1c}@keyframes toast-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}button:disabled{opacity:.6;cursor:wait}

/* Peserta: desktop table, mobile stacked cards */
.status-badge{display:inline-flex;padding:5px 10px;border-radius:999px;font-size:12px;font-weight:750;white-space:nowrap}.is-active{background:#dcfce7;color:#166534}.is-inactive{background:#f1f5f9;color:#475569}.participant-actions{white-space:nowrap}.action-edit,.action-disable{display:inline-flex;align-items:center;min-height:36px;padding:7px 9px;border-radius:9px;text-decoration:none;font-size:13px;font-weight:700}.action-edit{background:#eff6ff;color:#1d4ed8}.action-disable{background:#fff7ed;color:#c2410c}.participant-actions .danger-button{min-height:36px;padding:7px 10px;font-size:13px}
@media(max-width:650px){.participant-row{display:grid;grid-template-columns:52px minmax(0,1fr);gap:0 12px;padding:14px 12px;border-bottom:1px solid var(--line)}.participant-row td{display:block;padding:0;border:0;min-width:0}.participant-row td:first-child{grid-row:1/4;align-self:start}.participant-row .participant-name{font-weight:800;font-size:15px;overflow-wrap:anywhere;padding:1px 0 4px}.participant-row .participant-hp{font-size:13px;color:#475569;overflow-wrap:anywhere}.participant-row .participant-date{font-size:12px;color:#64748b;margin-top:3px}.participant-row .participant-status{grid-column:2;margin-top:8px}.participant-row .participant-actions{grid-column:1/-1;display:flex;gap:8px;flex-wrap:wrap;margin-top:12px;white-space:normal}.participant-row .participant-actions a,.participant-row .participant-actions button{flex:1;text-align:center;justify-content:center;min-width:0}.participant-row .participant-actions .action-disable{flex:1.25}.tablewrap{overflow:visible;border:0}table{min-width:0;width:100%;border-collapse:separate;border-spacing:0 10px}thead{display:none}tbody{display:block}.participant-row{background:#fff;border:1px solid var(--line);border-radius:16px;overflow:hidden;box-shadow:0 3px 12px rgba(15,35,65,.035)}.participant-row:last-child{border-bottom:1px solid var(--line)}.participant-photo,.photo-placeholder{width:48px;height:48px}.panel:has(.participant-row){padding:13px}.panel:has(.participant-row) h2{margin:0 0 10px}}

@media(max-width:650px){.tablewrap{overflow:visible;border:0}table{min-width:0;width:100%;border-collapse:separate;border-spacing:0 10px}thead{display:none}tbody{display:block}tbody tr{display:grid;grid-template-columns:52px minmax(0,1fr);gap:0 12px;background:#fff;border:1px solid var(--line);border-radius:16px;padding:14px 12px;margin:0 0 10px;box-shadow:0 3px 12px rgba(15,35,65,.035)}tbody td{display:block;padding:0;border:0;min-width:0}tbody td:first-child{grid-row:1/4;align-self:start}tbody td:nth-child(2){font-weight:800;font-size:15px;overflow-wrap:anywhere;padding:1px 0 4px}tbody td:nth-child(3){font-size:13px;color:#475569;overflow-wrap:anywhere}tbody td:nth-child(4){font-size:12px;color:#64748b;margin-top:3px}tbody td:nth-child(5){grid-column:2;margin-top:8px}tbody td:nth-child(6){grid-column:1/-1;display:flex;gap:7px;flex-wrap:wrap;margin-top:12px;white-space:normal}tbody td:nth-child(6) a,tbody td:nth-child(6) button{flex:1;text-align:center;justify-content:center;min-width:0;min-height:38px;padding:8px 6px;font-size:12px;border-radius:10px}tbody td:nth-child(6) .dangerlink{background:#fff7ed;color:#c2410c;text-decoration:none;font-weight:700;display:inline-flex;align-items:center}tbody td:nth-child(6) .danger-button{background:#dc2626}tbody td:nth-child(5){display:block}tbody td:nth-child(5):before{content:'Status: ';font-size:12px;color:#64748b}tbody td:nth-child(2):before{content:''} .panel:has(tbody tr){padding:13px}.panel:has(tbody tr) h2{margin:0 0 10px}}

/* Android-inspired consistent controls */
:root{--btn-height:46px;--btn-radius:12px}
button,.btn,.danger-button,.participant-actions a,.participant-actions button{
  box-sizing:border-box;min-height:var(--btn-height);display:inline-flex;align-items:center;justify-content:center;
  gap:8px;padding:0 16px;border:1px solid transparent;border-radius:var(--btn-radius);
  font:600 14px/1.2 Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;
  text-decoration:none;white-space:nowrap;cursor:pointer;user-select:none;
  box-shadow:0 1px 2px rgba(15,23,42,.08);transition:background .16s,border-color .16s,box-shadow .16s,transform .12s;
}
button,.btn{background:#2459c5;color:#fff}
button:hover,.btn:hover{background:#1949a8;color:#fff}
button:focus-visible,.btn:focus-visible,.danger-button:focus-visible,.participant-actions a:focus-visible{outline:3px solid rgba(59,130,246,.3);outline-offset:2px}
button:active,.btn:active,.danger-button:active,.participant-actions a:active{transform:translateY(1px);box-shadow:none}
button:disabled{opacity:.55;cursor:wait;transform:none}
.btn.secondary,.secondary{background:#f1f5f9;color:#334155;border-color:#e2e8f0;box-shadow:none}
.btn.secondary:hover,.secondary:hover{background:#e2e8f0;color:#1e293b}
.danger-button,.participant-actions .danger-button{background:#fff1f2;color:#be123c;border-color:#fecdd3;box-shadow:none}
.danger-button:hover,.participant-actions .danger-button:hover{background:#ffe4e6;color:#9f1239}
.action-edit{background:#eff6ff;color:#1d4ed8;border-color:#dbeafe}
.action-edit:hover{background:#dbeafe;color:#1e40af}
.action-disable{background:#fff7ed;color:#c2410c;border-color:#fed7aa}
.action-disable:hover{background:#ffedd5;color:#9a3412}
.form-actions{gap:9px}
@media(max-width:650px){
  button,.btn,.danger-button,.participant-actions a,.participant-actions button{min-height:44px;border-radius:12px;padding:0 12px;font-size:13px}
  .form-actions{display:grid;grid-template-columns:1fr;gap:9px}
  .form-actions>*{width:100%;margin:0}
  .participant-row .participant-actions,tbody td:nth-child(6){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .participant-row .participant-actions a,.participant-row .participant-actions button,tbody td:nth-child(6) a,tbody td:nth-child(6) button{width:100%;min-width:0;min-height:44px;padding:0 8px;font-size:13px}
  .participant-row .participant-actions .action-disable,tbody td:nth-child(6) .action-disable{grid-column:1/-1}
}

/* Mobile app redesign inspired by reference */
.topbar{display:flex;align-items:center;justify-content:space-between;gap:12px}.brand{text-decoration:none;color:#fff}.header-caption{font-size:12px;color:#cbd5e1}.mobile-bottom-nav{display:none}
.dashboard-hero{background:linear-gradient(135deg,#2457d6,#3b62e8 55%,#5146d9);color:#fff;border:0;border-radius:24px;padding:22px;margin:0 0 18px;box-shadow:0 12px 28px #2551c82e}.dashboard-hero .eyebrow{font-size:12px;color:#dbeafe;font-weight:600}.dashboard-hero h1{color:#fff;margin:5px 0 18px;font-size:26px}.dashboard-hero .hero-value{font-size:30px;font-weight:800;letter-spacing:-.04em}.dashboard-hero .hero-foot{display:flex;justify-content:space-between;align-items:center;font-size:12px;color:#dbeafe}
.dashboard-stat-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.dashboard-stat{background:#fff;border:1px solid #e8edf5;border-radius:20px;padding:16px;min-width:0;box-shadow:0 5px 18px #11264b0a}.dashboard-stat .stat-icon{width:34px;height:34px;border-radius:12px;display:grid;place-items:center;background:#eef3ff;color:#315bd2;font-size:17px;margin-bottom:12px}.dashboard-stat small{display:block;color:#718096;font-size:12px;font-weight:600}.dashboard-stat strong{display:block;color:#172554;font-size:20px;line-height:1.35;margin-top:4px;overflow-wrap:anywhere}.dashboard-stat.purple{background:linear-gradient(145deg,#4b22a8,#7b21b5);border:0}.dashboard-stat.purple small,.dashboard-stat.purple strong{color:white}.dashboard-stat.purple .stat-icon{background:#ffffff25;color:#fff}
.dashboard-shortcuts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.dashboard-shortcut{display:flex;align-items:center;gap:10px;background:#fff;border:1px solid #e5eaf2;border-radius:15px;padding:13px;text-decoration:none;color:#23314d;font-weight:700;font-size:13px}.dashboard-shortcut span{width:34px;height:34px;border-radius:11px;background:#eef3ff;color:#315bd2;display:grid;place-items:center}
@media(max-width:720px){body{padding-bottom:78px}header{padding:14px 16px 10px;border-radius:0 0 18px 18px}.topbar{align-items:flex-start}.header-caption{display:none}.main-nav{display:none}main{margin:16px auto;padding:0 14px}.mobile-bottom-nav{position:fixed!important;z-index:9999;bottom:0;left:0;right:0;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:2px;padding:8px 8px calc(8px + env(safe-area-inset-bottom));background:#fffffff2;border-top:1px solid #e6ebf3;backdrop-filter:blur(16px);box-shadow:0 -8px 24px #10264b0a}.mobile-bottom-nav a{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:3px;text-decoration:none;color:#8793a8;border-radius:13px;padding:5px 2px;min-height:48px}.mobile-bottom-nav a:active,.mobile-bottom-nav a:hover{background:#eef3ff;color:#315bd2}.mobile-bottom-nav small{font-size:10px;font-weight:700}.nav-symbol{font-size:19px;line-height:1.2}.dashboard-hero{padding:19px;border-radius:22px}.dashboard-hero h1{font-size:23px}.dashboard-hero .hero-value{font-size:27px}.dashboard-stat-grid{gap:10px}.dashboard-stat{padding:14px;border-radius:18px}.dashboard-stat strong{font-size:18px}.dashboard-shortcuts{gap:8px}}

@media(max-width:720px){body{padding-bottom:calc(86px + env(safe-area-inset-bottom))}.mobile-bottom-nav{position:fixed!important;inset:auto 0 0 0!important;z-index:99999!important;transform:none!important;}}
