/* Voter Global Styles */
.voter-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-50) 0%, var(--secondary-50) 100%);
  padding: var(--space-lg);
}

.voter-container {
  width: 100%;
  max-width: 600px;
}

.voter-card {
  background: var(--bg-primary);
  border-radius: var(--border-radius-xl);
  box-shadow: var(--shadow-xl);
  padding: var(--space-2xl);
}

.voter-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.voter-header svg {
  margin: 0 auto var(--space-lg);
}

.voter-header h1 {
  font-size: var(--font-size-3xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.voter-header p {
  color: var(--text-secondary);
  font-size: var(--font-size-base);
}

.voter-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.voter-footer {
  margin-top: var(--space-xl);
  text-align: center;
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
}

.voter-footer a {
  color: var(--primary-600);
  text-decoration: none;
  font-weight: 500;
}

.voter-footer a:hover {
  text-decoration: underline;
}

.back-link {
  display: inline-block;
  margin-top: var(--space-md);
  color: var(--text-tertiary);
  text-decoration: none;
  font-size: var(--font-size-xs);
}

.back-link:hover {
  color: var(--text-secondary);
}

/* Event Info */
.event-info {
  background: var(--bg-secondary);
  border-radius: var(--border-radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.event-info-title {
  font-size: var(--font-size-xl);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.event-info-description {
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
  line-height: 1.6;
}

/* Vote Section */
.vote-section {
  margin-bottom: var(--space-2xl);
}

.vote-section-header {
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.position-number {
  width: 32px;
  height: 32px;
  background: var(--primary-600);
  color: white;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--font-size-sm);
}

.position-title {
  font-size: var(--font-size-xl);
  font-weight: 600;
  color: var(--text-primary);
}

.candidates-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-lg);
}

.candidate-option {
  position: relative;
  background: var(--bg-primary);
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: var(--space-lg);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
}

.candidate-option:hover {
  border-color: var(--primary-300);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.candidate-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.candidate-option.selected {
  border-color: var(--primary-600);
  background: var(--primary-50);
}

.candidate-photo-container {
  position: relative;
  margin-bottom: var(--space-md);
}

.candidate-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto;
  background: var(--gray-200);
  border: 3px solid var(--border-color);
}

.candidate-option.selected .candidate-photo {
  border-color: var(--primary-600);
}

.candidate-check {
  position: absolute;
  top: 0;
  right: 50%;
  transform: translateX(50px);
  width: 32px;
  height: 32px;
  background: var(--primary-600);
  color: white;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.candidate-option.selected .candidate-check {
  display: flex;
}

.candidate-name {
  font-weight: 600;
  color: var(--text-primary);
  font-size: var(--font-size-base);
}

/* Vote Summary */
.vote-summary {
  background: var(--bg-secondary);
  border-radius: var(--border-radius-lg);
  padding: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.summary-title {
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
}

.summary-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md);
  background: var(--bg-primary);
  border-radius: var(--border-radius);
  margin-bottom: var(--space-sm);
}

.summary-position {
  font-weight: 500;
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
}

.summary-candidate {
  font-weight: 600;
  color: var(--text-primary);
}

/* Success Page */
.success-icon {
  width: 100px;
  height: 100px;
  background: var(--success);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  margin: 0 auto var(--space-xl);
  animation: scaleIn 0.5s ease-out;
}

@keyframes scaleIn {
  from { transform: scale(0); }
  to { transform: scale(1); }
}

.success-title {
  font-size: var(--font-size-3xl);
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: var(--space-md);
}

.success-message {
  text-align: center;
  color: var(--text-secondary);
  font-size: var(--font-size-base);
  line-height: 1.6;
  margin-bottom: var(--space-2xl);
}

/* Responsive */
@media (max-width: 768px) {
  .voter-card {
    padding: var(--space-xl);
  }

  .candidates-list {
    grid-template-columns: 1fr;
  }
}