/* ==============================================================================
   SISTEM PEMILIHAN OSIS SMP NEGERI 5 MUARA SIRAM
   Voting Screen Stylesheet (Bilik Suara Digital)
   ============================================================================== */

.voting-page {
  background: #0f172a;
  color: #f8fafc;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.voting-header {
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.25rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 40;
}

.voter-identity-chip {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(30, 64, 175, 0.25);
  border: 1px solid rgba(59, 130, 246, 0.4);
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
}

.voter-identity-chip .voter-name {
  font-weight: 700;
  font-size: 1rem;
  color: #ffffff;
}

.voter-identity-chip .voter-class {
  background: #2563eb;
  color: #ffffff;
  padding: 0.15rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
}

.voting-instructions-banner {
  background: linear-gradient(90deg, rgba(30, 64, 175, 0.3) 0%, rgba(59, 130, 246, 0.1) 100%);
  border-bottom: 1px solid rgba(59, 130, 246, 0.2);
  padding: 0.75rem 2rem;
  text-align: center;
  font-size: 0.9rem;
  color: #93c5fd;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

/* Candidate Grid */
.candidates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  max-width: 1300px;
  margin: 2rem auto;
  padding: 0 1.5rem;
  width: 100%;
}

.candidate-card {
  background: rgba(30, 41, 59, 0.7);
  border: 2px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.5);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  position: relative;
}

.candidate-card:hover {
  transform: translateY(-8px);
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: 0 25px 35px -5px rgba(37, 99, 235, 0.25);
}

.candidate-number-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  width: 52px;
  height: 52px;
  background: #ffffff;
  color: #0f172a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
  z-index: 10;
  border: 3px solid rgba(255, 255, 255, 0.8);
}

.candidate-photo-wrapper {
  position: relative;
  width: 100%;
  height: 280px;
  overflow: hidden;
  background: #1e293b;
}

.candidate-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.candidate-card:hover .candidate-photo {
  transform: scale(1.05);
}

.candidate-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.candidate-role-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: #38bdf8;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.candidate-names {
  margin-bottom: 1rem;
}

.chairman-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
}

.vice-chairman-name {
  font-size: 1.05rem;
  color: #cbd5e1;
  font-weight: 500;
}

.candidate-vision-snippet {
  font-size: 0.85rem;
  color: #94a3b8;
  line-height: 1.5;
  margin-bottom: 1.25rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.candidate-actions {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 0.75rem;
}

.btn-vision {
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.85rem;
}

.btn-vision:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.btn-vote-now {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
}

.btn-vote-now:hover {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.6);
}

/* Standby Screen */
.standby-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1.5rem;
}

.standby-card {
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 3.5rem 2.5rem;
  max-width: 580px;
  width: 100%;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.standby-icon {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.15);
  border: 2px dashed #3b82f6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin: 0 auto 1.5rem;
  animation: pulse-ring 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-ring {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.08); opacity: 0.8; }
}

/* Success Result Screen */
.success-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, #1e3a8a 0%, #0f172a 100%);
  padding: 2rem;
}

.success-card {
  background: rgba(255, 255, 255, 0.98);
  border-radius: 28px;
  padding: 3.5rem 3rem;
  max-width: 560px;
  width: 100%;
  text-align: center;
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.5);
  animation: popIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes popIn {
  0% { transform: scale(0.9); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.success-icon-badge {
  width: 96px;
  height: 96px;
  background: var(--success);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  margin: 0 auto 1.75rem;
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.4);
}

.countdown-timer {
  margin-top: 2rem;
  padding: 0.75rem 1.25rem;
  background: #f1f5f9;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: #475569;
  font-size: 0.9rem;
}
