/* Gradasi biru muda */
.bg-gradient-soft-blue {
  background: linear-gradient(135deg, #e0f2ff 0%, #ffffff 100%);
}

/* Gradasi hijau pastel */
.bg-gradient-soft-green {
  background: linear-gradient(135deg, #e7f8ee 0%, #ffffff 100%);
}

/* Gradasi oranye pastel */
.bg-gradient-soft-orange {
  background: linear-gradient(135deg, #fff3e0 0%, #ffffff 100%);
}

/* Gradasi ungu pastel */
.bg-gradient-soft-purple {
  background: linear-gradient(135deg, #f0e7ff 0%, #ffffff 100%);
}

/* Gradasi merah pastel */
.bg-gradient-soft-red {
  background: linear-gradient(135deg, #ffe6e6 0%, #ffffff 100%);
}

/* Style tambahan supaya card tampil elegan */
.card-gradient {
  border: 1px solid #e6e9f0;
  border-radius: 0.75rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.logo-image {
  max-width: 100%;
  height: 64px !important;
}

.choice-btn { transition: all 0.2s; border-width: 2px !important; }
.choice-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.choice-btn.selected { transform: scale(1.02); }
.agenda-card { transition: opacity 0.3s; }
.agenda-card.disabled { opacity: 0.5; pointer-events: none; }
.pulse { animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity:1; } 50% { opacity:0.5; } }
.fade-in { animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:translateY(0); } }

/* ══════════════════════════════════════════════
   VOTER PAGE — Custom Styles
   ══════════════════════════════════════════════ */

/* ── Participant Hero Card ───────────────────── */
.voter-hero {
  background: linear-gradient(135deg, #1a56db 0%, #1e3a8a 100%);
  border-radius: 14px;
  color: #fff;
  padding: 1.5rem 2rem;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(26,86,219,.28);
}
.voter-hero::before {
  content: '';
  position: absolute;
  right: -60px; top: -60px;
  width: 200px; height: 200px;
  background: rgba(255,255,255,.07);
  border-radius: 50%;
  pointer-events: none;
}
.voter-hero::after {
  content: '';
  position: absolute;
  right: 60px; bottom: -80px;
  width: 160px; height: 160px;
  background: rgba(255,255,255,.04);
  border-radius: 50%;
  pointer-events: none;
}
.voter-hero-name {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -.015em;
  line-height: 1.2;
}
.voter-hero-meta {
  opacity: .82;
  font-size: .83rem;
  margin-top: .4rem;
}
.voter-clock {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: .06em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.voter-clock-label {
  font-size: .68rem;
  opacity: .7;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: .2rem;
}
.voter-shares-pill {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 20px;
  padding: .2rem .7rem;
  font-size: .8rem;
  font-weight: 600;
}

/* ── Tab navigation ──────────────────────────── */
.voter-tab-bar {
  border-bottom: 2px solid #e2e8f0;
  margin-bottom: 1.25rem;
  padding: 0;
  gap: .25rem;
}
.voter-tab-bar .nav-link {
  font-size: .92rem;
  font-weight: 600;
  color: #6b7a90;
  padding: .6rem 1.25rem;
  border-radius: 8px 8px 0 0;
  border: none;
  transition: color .15s, background .15s;
  display: flex;
  align-items: center;
  gap: .4rem;
}
.voter-tab-bar .nav-link:hover { color: #1a56db; background: #f0f4ff; }
.voter-tab-bar .nav-link.active {
  color: #1a56db;
  background: #fff;
  border-bottom: 2px solid #1a56db;
  margin-bottom: -2px;
}

/* ── Agenda card ─────────────────────────────── */
.agenda-card {
  border-radius: 12px;
  border: 1.5px solid #e2e8f0;
  background: #fff;
  margin-bottom: 1rem;
  overflow: hidden;
  transition: box-shadow .2s, border-color .2s;
}
.agenda-card:last-child { margin-bottom: 0; }
.agenda-card:hover { box-shadow: 0 4px 20px rgba(30,58,138,.07); }
.agenda-card.is-open {
  border-color: #22c55e;
  box-shadow: 0 2px 16px rgba(34,197,94,.14);
}
.agenda-card.is-closed { border-color: #fca5a5; }

.agenda-card-head {
  padding: 1rem 1.25rem .875rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}
.agenda-order-label {
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: .2rem;
}
.agenda-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
  line-height: 1.3;
}

/* ── Status pill ─────────────────────────────── */
.v-status-pill {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .7rem;
  font-weight: 800;
  padding: .3rem .75rem;
  border-radius: 20px;
  letter-spacing: .05em;
  white-space: nowrap;
  flex-shrink: 0;
}
.v-status-pill.pill-pending { background: #f1f5f9; color: #64748b; }
.v-status-pill.pill-open    { background: #dcfce7; color: #15803d; }
.v-status-pill.pill-closed  { background: #fee2e2; color: #b91c1c; }
.v-status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.v-status-pill.pill-open .v-status-dot {
  animation: vblink 1.2s ease-in-out infinite;
}
@keyframes vblink {
  0%,100% { opacity: 1; } 50% { opacity: .2; }
}

/* ── Vote buttons ────────────────────────────── */
.vote-section {
  padding: .25rem 1.25rem 1.25rem;
  border-top: 1px solid #f0f4f8;
}
.vote-label {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: #94a3b8;
  margin-bottom: .75rem;
}
.vote-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .625rem;
}
@media (max-width: 480px) {
  .vote-grid { grid-template-columns: 1fr; }
}
.vbtn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .75rem .5rem;
  font-weight: 700;
  font-size: .88rem;
  border-radius: 10px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .18s;
  background: none;
}
.vbtn:active { transform: scale(.96); }
.vbtn:focus-visible { outline: 3px solid #93c5fd; outline-offset: 2px; }

/* Setuju */
.vbtn-setuju              { border-color: #4ade80; color: #16a34a; background: #f0fdf4; }
.vbtn-setuju:hover        { background: #dcfce7; border-color: #22c55e; }
.vbtn-setuju.vbtn-chosen  { background: #16a34a; border-color: #15803d; color: #fff; }
/* Tidak Setuju */
.vbtn-tolak               { border-color: #f87171; color: #dc2626; background: #fff5f5; }
.vbtn-tolak:hover         { background: #fee2e2; border-color: #ef4444; }
.vbtn-tolak.vbtn-chosen   { background: #dc2626; border-color: #b91c1c; color: #fff; }
/* Abstain */
.vbtn-abstain             { border-color: #fbbf24; color: #92400e; background: #fffbeb; }
.vbtn-abstain:hover       { background: #fef3c7; border-color: #f59e0b; }
.vbtn-abstain.vbtn-chosen { background: #f59e0b; border-color: #d97706; color: #fff; }

.vote-recorded-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-top: .875rem;
  font-size: .8rem;
  font-weight: 700;
  color: #15803d;
  background: #f0fdf4;
  border: 1.5px solid #bbf7d0;
  padding: .35rem 1rem;
  border-radius: 8px;
}

/* Closed / Pending body */
.vote-status-body {
  padding: .5rem 1.25rem 1.125rem;
  font-size: .875rem;
}

/* ── Q&A form card ───────────────────────────── */
.qna-card {
  border-radius: 12px;
  border: 1.5px solid #e2e8f0;
  overflow: hidden;
  margin-bottom: 1rem;
}
.qna-card-head {
  background: linear-gradient(90deg, #1a56db 0%, #2563eb 100%);
  color: #fff;
  padding: .8rem 1.25rem;
  font-weight: 700;
  font-size: .9rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.qna-card-body { padding: 1.25rem; background: #fff; }

/* ── Question items ──────────────────────────── */
.q-item {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: .875rem 1rem;
  margin-bottom: .6rem;
  transition: border-color .15s;
}
.q-item:last-child { margin-bottom: 0; }
.q-item:hover { border-color: #c7d8f5; }
.q-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: .35rem;
  gap: .5rem;
}
.q-name { font-weight: 700; font-size: .82rem; color: #1e293b; }
.q-time { font-size: .74rem; color: #94a3b8; white-space: nowrap; }
.q-text { font-size: .875rem; color: #334155; line-height: 1.55; }

/* ── Auto-refresh note ───────────────────────── */
.refresh-note {
  font-size: .77rem;
  color: #94a3b8;
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: .35rem;
}

/* Gate Check-in Scanner */
/* ===== Stepper ===== */
  .reg-stepper {
    display: flex; gap: 0; list-style: none; padding: 0; margin: 0 0 1.5rem;
    counter-reset: step;
  }
  .reg-stepper li {
    flex: 1; text-align: center; position: relative; padding: 0 .25rem;
  }
  .reg-stepper li .step-circle {
    width: 38px; height: 38px; border-radius: 50%; display: inline-flex;
    align-items: center; justify-content: center; font-weight: 700; font-size: .95rem;
    border: 2px solid #d2d6dc; color: #9ca3af; background: #fff;
    transition: all .25s ease; position: relative; z-index: 2;
  }
  .reg-stepper li .step-label {
    display: block; font-size: .75rem; color: #9ca3af; margin-top: .35rem;
    font-weight: 500; transition: color .25s ease;
  }
  .reg-stepper li.active .step-circle {
    border-color: #206bc4; color: #fff; background: #206bc4;
    box-shadow: 0 0 0 4px rgba(32,107,196,.15);
  }
  .reg-stepper li.active .step-label { color: #206bc4; font-weight: 600; }
  .reg-stepper li.done .step-circle {
    border-color: #2fb344; color: #fff; background: #2fb344;
  }
  .reg-stepper li.done .step-label { color: #2fb344; }
  .reg-stepper li:not(:last-child)::after {
    content: ''; position: absolute; top: 19px; left: calc(50% + 24px);
    width: calc(100% - 48px); height: 2px; background: #e5e7eb; z-index: 1;
  }
  .reg-stepper li.done:not(:last-child)::after { background: #2fb344; }

  /* ===== Mode Selection ===== */
  .mode-card { cursor: pointer; transition: all .2s ease; border: 2px solid #e5e7eb; border-radius: .75rem; }
  .mode-card:hover { border-color: #b8d4f0; background: #f8fbff; }
  .mode-card.selected { border-color: #206bc4; background: #f0f6ff; box-shadow: 0 0 0 3px rgba(32,107,196,.12); }
  .mode-card .mode-icon { width: 42px; height: 42px; border-radius: .5rem; display: flex; align-items: center; justify-content: center; }
  .mode-card input[type="radio"] { display: none; }

  /* ===== Search Result Card ===== */
  .sid-result-card { border: 1px solid #e5e7eb; border-radius: .75rem; overflow: hidden; transition: box-shadow .2s; }
  .sid-result-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,.06); }
  .sid-result-header { background: linear-gradient(135deg, #f8fafc 0%, #f0f4f8 100%); padding: .75rem 1rem; }
  .sid-result-header .sid-name { font-size: 1rem; font-weight: 700; color: #1e293b; }
  .sid-result-header .sid-address { font-size: .78rem; color: #94a3b8; margin-top: .15rem; }

  .account-row { padding: .5rem 1rem; border-top: 1px solid #f1f5f9; display: flex; align-items: center; gap: .5rem; transition: background .15s; }
  .account-row:hover { background: #f8fafc; }

  /* ===== Form Sections ===== */
  .form-section-title {
    font-size: .7rem; text-transform: uppercase; letter-spacing: .08em;
    color: #94a3b8; font-weight: 600; margin-bottom: .75rem; padding-bottom: .5rem;
    border-bottom: 1px solid #f1f5f9;
  }

  /* ===== Selected Card ===== */
  .selected-footer {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-top: 1px solid #bfdbfe; padding: .75rem 1rem;
  }
  .selected-footer .shares-total { font-size: 1.5rem; font-weight: 800; color: #1d4ed8; }

  /* ===== Smooth transitions ===== */
  .card { transition: box-shadow .2s ease; }
  .card:hover { box-shadow: 0 1px 6px rgba(0,0,0,.05); }

  /* ===== Placeholder ===== */
  .form-placeholder-box {
    border: 2px dashed #e2e8f0; border-radius: .75rem; padding: 3rem 1.5rem;
    text-align: center; color: #94a3b8; background: #fafbfc;
  }
  .form-placeholder-box .placeholder-icon { width: 64px; height: 64px; margin: 0 auto .75rem; opacity: .4; }

  /* ===== Sticky Search Sidebar ===== */
  @media (min-width: 992px) {
    .sticky-sidebar { position: sticky; top: 1rem; align-self: flex-start; }
  }