/* =========================== FROSTED GLASS UI (compact) =========================== */
:root{
  --bg1:#8ec5fc;
  --bg2:#e0c3fc;
  --text:#555; /* softer gray text for light mode */
  --card:rgba(255,255,255,0.70);
  --card-border:rgba(255,255,255,0.6);
  --accent1:#0077ff;
  --accent2:#005fcc;
  --muted:#777; /* lighter muted text */
  --glass:0 10px 30px rgba(0,0,0,0.12);
  --form-bg: rgba(255,255,255,0.85);
}
html[data-theme="dark"]{
  --bg1:#1e1e2f;
  --bg2:#2c2c45;
  --text:#a3a8a5; /* soft gray text for dark mode */
  --card: rgba(255,255,255,0.06);
  --card-border: rgba(255,255,255,0.04);
  --muted:#a3a8a5; /* muted same as main text */
  --form-bg: rgba(255,255,255,0.02);
}

*{box-sizing:border-box}
html,body{
  height:100%; margin:0; padding:0; font-family:Inter,system-ui;
}
body{
  background:linear-gradient(135deg,var(--bg1),var(--bg2));
  color:var(--text);
  -webkit-font-smoothing:antialiased;
  display:flex; justify-content:center;
  padding:24px;
}

.app{ width:100%; max-width:980px; }

.card{
  background:var(--card);
  border-radius:14px;
  padding:16px;
  margin-bottom:16px;
  box-shadow:var(--glass);
  border:1px solid var(--card-border);
  backdrop-filter: blur(8px) saturate(120%);
}

.header{
  display:flex; justify-content:space-between; align-items:center;
}
.title{ font-weight:800; font-size:20px; color:var(--text); }
.subtitle{ font-size:13px; color:var(--muted); }

.row{
  display:flex; gap:10px; align-items:center;
  flex-wrap:wrap; margin-top:8px;
}

.list{
  display:flex; flex-direction:column;
  gap:8px; margin-top:10px;
}

/* Inputs & dropdowns */
input[type="text"], input[type="number"], select,
select.option, select.role, select.extra {
  padding:10px 12px;
  border-radius:10px;
  font-size:14px;
  border:1px solid rgba(0,0,0,0.08);
  background:var(--form-bg);
  color:var(--text);
}

/* dropdown options same color as box */
select option,
select.option option,
select.role option,
select.extra option {
  background:var(--form-bg);
  color:var(--text);
}

.small{ width:110px; }

/* ================= BUTTONS ================= */
.btn{
  padding:10px 12px;
  border-radius:10px;
  font-weight:800;
  cursor:pointer;
  border:none;
  color:var(--text); /* ensures button text is gray */
}

.btn-primary{
  background:linear-gradient(180deg,var(--accent1),var(--accent2));
  color:white; /* can remain white for contrast */
}

.btn-ghost{
  background:rgba(255,255,255,0.06);
  color:var(--text); /* gray text for ghost buttons */
  border:1px solid rgba(255,255,255,0.03);
}

/* ====== NEW: CLEAR GRAY VOTE DISABLED STATE ====== */
.vote-disabled{
  background:#777 !important;
  color:white !important;
  cursor:not-allowed !important;
  opacity:1 !important;
  border:1px solid #555 !important;
  box-shadow:none !important;
}

/* dividers + list items */
.divider{
  height:1px;
  background:rgba(255,255,255,0.03);
  margin:12px 0;
  border-radius:6px;
}

.item-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:10px;
  border-radius:10px;
  background:rgba(255,255,255,0.02);
  border:1px solid rgba(255,255,255,0.02);
  color:var(--text);
}

.result-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:8px 10px;
  color:var(--text);
}

/* theme toggle button */
.theme-toggle{
  border:none;
  background:rgba(255,255,255,0.06);
  padding:8px 10px;
  border-radius:10px;
  cursor:pointer;
  font-size:18px;
  color:var(--text);
}
.theme-toggle:hover{
  transform:translateY(-2px);
}

/* responsive */
@media (max-width:720px){
  .row{
    flex-direction:column;
    align-items:stretch;
  }
}
