/* ===== Futuristic UI - PrediksiHarianJP ===== */

:root{
  --bg0:#070A12;
  --bg1:#0B1020;
  --card: rgba(255,255,255,.06);
  --card2: rgba(255,255,255,.08);
  --stroke: rgba(255,255,255,.12);
  --stroke2: rgba(255,255,255,.18);
  --txt:#EAF0FF;
  --muted: rgba(234,240,255,.72);

  --cyan:#00E5FF;
  --violet:#9B5CFF;
  --green:#00E676;
  --red:#FF1744;
  --amber:#FFC400;

  --radius: 16px;
  --radius2: 12px;
  --shadow: 0 16px 45px rgba(0,0,0,.55);
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  color: var(--txt);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Helvetica Neue", sans-serif;
  background:
    radial-gradient(900px 520px at 15% 0%, rgba(0,229,255,.18), transparent 60%),
    radial-gradient(900px 520px at 85% 0%, rgba(155,92,255,.16), transparent 60%),
    radial-gradient(900px 520px at 50% 100%, rgba(0,230,118,.10), transparent 65%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
}

.by{
  font-size: 11px;
  opacity: .7;
  margin-left: 6px;
  font-weight: 800;
}

a{ color:inherit; }
hr{
  border:0;
  height:1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent);
  margin: 14px 0;
}

h1{
  margin: 16px auto 10px;
  max-width: 1100px;
  padding: 0 16px;
  font-size: 26px;
  letter-spacing:.3px;
  font-weight: 900;
  text-shadow: 0 0 18px rgba(0,229,255,.12);
}

#rtStatus{
  max-width: 1100px;
  margin: 10px auto 0;
  padding: 0 16px;
  color: var(--muted);
}

.wrap{
  max-width: 1100px;
  margin: 0 auto 24px;
  padding: 0 16px 24px;
  display:flex;
  gap:16px;
  align-items:flex-start;
}

.left, .right{
  background: var(--card);
  border:1px solid var(--stroke);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.left{
  width: 340px;
  max-width: 44vw;
  padding: 14px;
  position: sticky;
  top: 12px;
}

.right{
  flex:1;
  min-width:0;
  padding: 14px;
}

.panel-title{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight: 900;
  letter-spacing:.4px;
  margin: 0 0 12px;
}

.panel-title::before{
  content:"";
  width:10px;height:10px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #fff, var(--cyan));
  box-shadow: 0 0 18px rgba(0,229,255,.45);
}

/* Top action button (Result) */
.btn-result{
  display:inline-flex;
  align-items:center;
  gap:10px;
  margin: 0 auto 12px;
  max-width: 1100px;
  width: fit-content;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(0,229,255,.28);
  background: linear-gradient(135deg, rgba(0,229,255,.14), rgba(155,92,255,.14));
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  text-decoration:none;
  font-weight: 900;
}

.btn-result:hover{ transform: translateY(-1px); }
.btn-result:active{ transform: translateY(0px); }

/* Form */
form{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
  padding: 10px;
  border-radius: var(--radius2);
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.10);
}

input, select{
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(10,14,28,.72);
  color: var(--txt);
  padding: 0 12px;
  outline: none;
}

input{
  width: 190px;
  font-weight: 900;
  letter-spacing: .8px;
}

select{
  min-width: 230px;
}

input:focus, select:focus{
  border-color: rgba(0,229,255,.45);
  box-shadow: 0 0 0 4px rgba(0,229,255,.10);
}

label{
  color: var(--muted);
  font-weight: 700;
}

button{
  height: 42px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(0,230,118,.35);
  background: linear-gradient(135deg, rgba(0,230,118,.18), rgba(0,229,255,.10));
  color: var(--txt);
  font-weight: 900;
  cursor:pointer;
}

button:hover{ opacity:.92; }
button:active{ transform: scale(.99); }

/* Date title */
.date-title{
  margin: 14px 0 8px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);
  font-weight: 900;
  letter-spacing:.3px;
}

/* List items */
.item{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap: 8px 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.10);
  margin: 8px 0;
}

.item:hover{
  border-color: rgba(0,229,255,.20);
  box-shadow: 0 0 0 4px rgba(0,229,255,.06);
}

.jam{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width: 62px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0,229,255,.10);
  border: 1px solid rgba(0,229,255,.22);
  font-weight: 900;
  letter-spacing: .6px;
  color: rgba(234,240,255,.95);
}

.num{
  font-weight: 1000;
  font-size: 16px;
  letter-spacing: 1px;
}

.name{
  font-weight: 800;
  color: rgba(234,240,255,.92);
}

.votes{
  font-weight: 1000;
}

/* REVISI tag */
.revisi{
  color: var(--red);
  font-weight: 1000;
  margin-left: 6px;
  text-shadow: 0 0 12px rgba(255,23,68,.25);
}

/* GANTI highlight (global row red) */
.item.is-ganti{
  border-color: rgba(255,23,68,.35);
  background: rgba(255,23,68,.08);
}

/* Buttons inside list */
.btn-aman, .btn-ganti, .btn-sah, .btn-del{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  text-decoration:none;
  font-weight: 1000;
  letter-spacing:.2px;
  border: 1px solid transparent;
  transition: transform .06s ease, opacity .15s ease;
}

.btn-aman{
  background: rgba(0,230,118,.12);
  border-color: rgba(0,230,118,.28);
}
.btn-aman:hover{ box-shadow: 0 0 0 4px rgba(0,230,118,.08); }

.btn-ganti{
  background: rgba(255,23,68,.10);
  border-color: rgba(255,23,68,.28);
}
.btn-ganti:hover{ box-shadow: 0 0 0 4px rgba(255,23,68,.08); }

.btn-sah{
  background: rgba(0,229,255,.12);
  border-color: rgba(0,229,255,.30);
}
.btn-sah:hover{ box-shadow: 0 0 0 4px rgba(0,229,255,.08); }

.btn-del{
  background: rgba(255,23,68,.12);
  border-color: rgba(255,23,68,.35);
}

.btn-aman:active, .btn-ganti:active, .btn-sah:active, .btn-del:active{
  transform: scale(.98);
}

/* Sidebar SAH list */
.sah-item{
  padding: 12px;
  border-radius: 14px;
  background: rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.10);
  margin-bottom: 10px;
}
/* ===== Toggle Revisi (kanan & futuristik) ===== */
form{ position: relative; }

.form-right{
  margin-left: auto;            /* ⬅️ dorong ke kanan */
  display:flex;
  align-items:center;
}

.toggle{
  display:inline-flex;
  align-items:center;
  gap:10px;
  user-select:none;
  cursor:pointer;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.12);
}

.toggle input{
  position:absolute;
  opacity:0;
  pointer-events:none;
}

.toggle .track{
  width: 46px;
  height: 26px;
  border-radius: 999px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(0,229,255,.22);
  box-shadow: inset 0 0 18px rgba(0,229,255,.10);
  position: relative;
  transition: background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.toggle .track::after{
  content:"";
  width: 20px;
  height: 20px;
  border-radius: 999px;
  position:absolute;
  top: 2px;
  left: 2px;
  background: radial-gradient(circle at 30% 30%, #fff, rgba(0,229,255,.55));
  box-shadow: 0 6px 18px rgba(0,0,0,.45);
  transition: transform .18s ease;
}

.toggle .toggle-text{
  font-weight: 900;
  color: rgba(234,240,255,.9);
  letter-spacing:.2px;
}

/* ON state */
.toggle input:checked + .track{
  background: rgba(0,230,118,.14);
  border-color: rgba(0,230,118,.40);
  box-shadow: inset 0 0 18px rgba(0,230,118,.14), 0 0 0 4px rgba(0,230,118,.06);
}

.toggle input:checked + .track::after{
  transform: translateX(20px);
  background: radial-gradient(circle at 30% 30%, #fff, rgba(0,230,118,.55));
}

/* focus (keyboard) */
.toggle input:focus-visible + .track{
  outline: none;
  box-shadow: 0 0 0 4px rgba(0,229,255,.12);
}

/* Mobile: biar tidak turun-turun */
@media (max-width: 520px){
  .form-right{ width:100%; justify-content:flex-end; }
}

.sah-meta{
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 8px;
}

.sah-name, .sah-num{
  font-weight: 900;
}

/* Mobile tweaks */
@media (max-width: 900px){
  .wrap{ flex-direction: column; }
  .left{ width: 100%; max-width: 100%; position: static; }
  input{ width: 100%; max-width: 220px; }
  select{ width: 100%; }
}

@media (prefers-reduced-motion: reduce){
  *{ transition:none !important; }
}
.top-actions{
  max-width: 1100px;
  margin: 0 auto 14px;
  padding: 0 16px;
  display: flex;
  justify-content: center; /* ⬅️ bikin tombol di tengah */
}

