/* css/vote.css */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #f5f5f5;
  color: #333;
}

header {
  background-color: #111;
  color: white;
  padding: 1rem;
  text-align: center;
}

nav ul {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  list-style: none;
  margin-top: 0.5rem;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}


.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  padding: 0;
  margin: 0;
}


.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  position: relative;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: #ff6600;
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
  color: #ff6600;
}


.vote-section {
  padding: 2rem;
  max-width: 500px;
  margin: auto;
  background-color: white;
  margin-top: 2rem;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(0,0,0,0.1);
  text-align: center;
}

.vote-section h2 {
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1rem;
  text-align: left;
}

label {
  display: block;
  margin-bottom: 5px;
}

input[type="number"],
input[type="tel"] {
  width: 100%;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

button {
  background-color: #ff6600;
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  width: 100%;
  margin-top: 1rem;
}

button:hover {
  background-color: #e65c00;
}

#status {
  margin-top: 2rem;
  font-size: 0.95rem;
  color: #444;
}

footer {
  background-color: #eee;
  padding: 1rem;
  text-align: center;
  margin-top: 3rem;
}



.confirm-box {
  background-color: #e7f3ff;
  border-left: 5px solid #0073e6;
  padding: 1rem;
  margin-bottom: 2rem;
  border-radius: 6px;
  text-align: left;
}
.confirm-box h2 {
  margin-bottom: 0.5rem;
}


/* Responsive */
@media (max-width: 600px) {
  nav ul {
    flex-direction: column;
    gap: 0.5rem;
  }

  .vote-section {
    margin: 1rem;
    padding: 1.5rem;
  }

  button {
    font-size: 1rem;
  }
}




/* Voting Closed Message Styles */
.voting-closed-message {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    margin: 2rem 0;
}

.voting-closed-message h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: white;
}

.voting-closed-message p {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.voting-closed-message strong {
    color: #ffeb3b;
}

/* Disabled state for forms */
.vote-form-disabled {
    opacity: 0.6;
    pointer-events: none;
}

/* Update existing confirm box for closed state */
.confobox.closed {
    background: #f8f9fa;
    border-left: 4px solid #6c757d;
}

/* Countdown Timer Styles */
.countdown-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 2rem 0;
  margin-bottom: 2rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.countdown-container {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding: 0 1rem;
}

.countdown-header h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.countdown-header p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 2rem;
}

.countdown-timer {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.countdown-item {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 1.5rem 1rem;
  min-width: 100px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.countdown-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 35px rgba(0,0,0,0.3);
}

.countdown-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.5rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.countdown-label {
  font-size: 0.9rem;
  opacity: 0.9;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.countdown-message {
  margin-top: 1.5rem;
}

.countdown-message p {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0;
  opacity: 0.95;
}

/* Responsive Design */
@media (max-width: 768px) {
  .countdown-timer {
    gap: 1rem;
  }
  
  .countdown-item {
    min-width: 80px;
    padding: 1rem 0.5rem;
  }
  
  .countdown-number {
    font-size: 2rem;
  }
  
  .countdown-header h2 {
    font-size: 1.5rem;
  }
  
  .countdown-header p {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .countdown-timer {
    gap: 0.5rem;
  }
  
  .countdown-item {
    min-width: 70px;
    padding: 0.8rem 0.3rem;
  }
  
  .countdown-number {
    font-size: 1.7rem;
  }
  
  .countdown-label {
    font-size: 0.8rem;
  }
}

/* Animation for when time is running low */
.countdown-item.warning {
  animation: pulse 1s infinite;
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}
