﻿@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@400;500;700&display=swap');

/* Page background – static hi-tech gradient */
body.vote-body {
    margin: 0;
    padding: 0;
    min-height: 100vh;  

    background: linear-gradient(
        135deg,
        #0D1117 0%,
        #0A3D62 40%,
        #1B98E0 100%
    );

    background:
    radial-gradient(800px 500px at 15% 15%, rgba(0, 173, 181, .14), transparent 60%),
    radial-gradient(900px 600px at 85% 10%, rgba(0, 86, 179, .12), transparent 55%),
    linear-gradient(180deg, #ffffff 0%, #f3f8ff 60%, #ffffff 100%);

    font-family: 'Rubik', sans-serif; 
    color: #ffffff;
}

/* Wrapper for the whole app */
.vote-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;          /* center vertically */
    justify-content: center;      /* center horizontally */
    padding: 12px;
    box-sizing: border-box;
}




.vote-container{
  width:100%;
  max-width:520px;
  display:flex;
  flex-direction:column; 
  align-items:center;
}

/* logo block */
.logo{
  z-index: 2;
  margin-bottom:20px;
}

.logo img{
  width: auto;
  display:block;
  max-width:150px;
}


/* Main card */
.vote-card {
    width: 100%;
    background: rgba(8, 12, 20, 0.90);
    border-radius: 12px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
    padding: 16px 14px 14px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(12px);
    box-sizing: border-box;
}


/* Header (logo + campaign title) */


.vote-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
    padding-bottom: 8px;
    margin-bottom: 16px;
}

.vote-title {
    font-size: 24px;
    margin: 0;
    color: #4CD3C2;
    font-weight: 800;
}

.vote-campaign-title {
    font-size: 13px;
    color: #D9E3F0;
}

/* Step titles and descriptive text */
.vote-step-title {
    font-size: 18px;
    margin-bottom: 6px;
}

.vote-step-text {
    font-size: 14px;
    color: #C8D3E0;
    margin-bottom: 14px;
}

/* Global / inline messages */
.vote-message {
    font-size: 13px;
    margin-bottom: 10px;
}

.vote-inner-message {
    font-size: 12px;
    margin-top: 6px;
    margin-bottom: 10px;
    display: block;
    color: #FFD166;
}

/* Inner panel box for each step */
.panel-container {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    padding: 14px 12px 12px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-sizing: border-box;
}
.choice-avatar{
  width: 44px;
  height: 44px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  flex: 0 0 auto;
}

/* ============================
   LOGIN PANEL – CENTERED
   ============================ */

/* pnlLogin has CssClass="panel-login" */
.panel-login {
    display: flex;
    align-items: center;
    justify-content: center;
    /* take the height of the card minus some padding */
    min-height: 260px;
}

/* Make inner login box nicely sized */
.panel-login .panel-container {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}

/* Optional: a bit more vertical padding in login state */
.panel-login .vote-step-title {
    margin-top: 4px;
}

/* clickable card button */
.btn-choice{
  width:100%;
  text-align:right;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(6, 12, 24, 0.55);
  color: inherit;
  padding: 12px;
  border-radius: 14px;
  display:flex;
  align-items:center;
  gap:12px;
  cursor:pointer;
  transition: transform .12s ease, border-color .12s ease, box-shadow .12s ease;
  box-shadow: 0 10px 22px rgba(0,0,0,.22);
}

.btn-choice:hover{
  transform: translateY(-1px);
  border-color: rgba(76,211,194,.38);
  box-shadow: 0 16px 28px rgba(0,0,0,.28);
}

.btn-choice.selected{
  border-color: rgba(76,211,194,.85);
  box-shadow: 0 0 0 3px rgba(76,211,194,.14);


    background-color: rgb(13 110 253 / 14%);
}v
}

.choice-avatar{
  width:44px;
  height:44px;
  border-radius:999px;
  object-fit:cover;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.06);
  flex:0 0 auto;
}

.choice-body{ min-width:0; flex:1 1 auto; }
.choice-title{
  font-size:14px;
  color:#eaf4ff;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.choice-desc{
  margin-top:2px;
  font-size:12px;
  color: rgba(215,229,245,.82);
  line-height:1.35;
}

.choice-check{
  margin-right:auto; /* because RTL */
  width:18px;
  height:18px;
  border-radius:999px;
  border: 2px solid rgba(255,255,255,.28);
  box-shadow: inset 0 0 0 2px rgba(0,0,0,.25);
  flex:0 0 auto;
}

.btn-choice.selected .choice-check{
  border-color: rgba(76,211,194,.95);
  background: radial-gradient(circle at 50% 50%, rgba(76,211,194,.95) 0 45%, transparent 46%);
}


/* ============================
   FORM CONTROLS & BUTTONS
   ============================ */

.panel-container .form-control {
    background-color: rgba(4, 9, 20, 0.9);
    border-color: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    font-size: 15px;
    padding: 10px 12px;
    border-radius: 8px;
}

.panel-container .form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.panel-container .form-control:focus {
    background-color: rgba(4, 9, 20, 1);
    border-color: #4CD3C2;
    box-shadow: 0 0 0 0.18rem rgba(76, 211, 194, 0.25);
}

.vote-section + .vote-section{
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.10);
}

.voteButtons
{ 
  padding-top: 5px;

}
.voteButtons .btn
{ 
 margin-top:10px;
}

.toggle-cands{
  width:34px;height:34px;border-radius:10px;
  border:1px solid rgba(255,255,255,.16);
  background:rgba(255,255,255,.06);
  display:grid;place-items:center;cursor:pointer;flex:0 0 auto;
}
.toggle-cands svg{transition:transform .2s ease}
.choice-card.expanded .toggle-cands svg{transform:rotate(180deg)}

.cands-wrap{overflow:hidden;max-height:0;transition:max-height .25s ease}
.choice-card.expanded .cands-wrap{max-height:520px;} /* תגדיל אם צריך */

.cands{margin-top:10px;padding:10px 10px 4px;border-top:1px dashed rgba(255,255,255,.18)}
.cand{display:flex;align-items:center;gap:10px;padding:8px 6px;border-radius:10px}
.cand:hover{background:rgba(255,255,255,.05)}
.cand .n{width:22px;height:22px;border-radius:8px;display:grid;place-items:center;font-size:12px}











/* Make buttons comfortable for touch */
.btn,
button,
input[type="submit"],
input[type="button"] {
    font-size: 15px;
    padding: 10px 12px;
    border-radius: 8px;
    width: 100%;
}

.btn-primary {
    background-color: #1B98E0;
    border-color: #1B98E0;
}

.btn-primary:hover {
    background-color: #1476B5;
    border-color: #1476B5;
}

.btn-success {
    background-color: #1DD1A1;
    border-color: #1DD1A1;
}


.btn-ghost {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(235,245,255,0.92);
}

.btn-ghost:hover {
  border-color: rgba(255,255,255,0.30);
  background: rgba(255,255,255,0.04);
}

.btn-success:hover {
    background-color: #17A683;
    border-color: #17A683;
}

.btn-link {
    color: #4CD3C2;
    font-size: 14px;
}

/* ============================
   DESKTOP / TABLET ENHANCEMENTS
   ============================ */

@media (min-width: 576px) {

    .vote-wrapper {
        padding: 24px 16px;
    }

    .vote-card {
        max-width: 480px;
        padding: 22px 22px 18px;
        border-radius: 16px;
    }

    .vote-title {
        font-size: 26px;
    }

    .vote-step-title {
        font-size: 20px;
    }

    .panel-container {
        padding: 16px 14px 14px;
    }
}

@media (min-width: 992px) {
    .vote-card {
        max-width: 520px;
    }
}
