* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #FFFFFF;
  color: #000000;
}

.container {
  max-width: 600px;
  margin: 0 auto;
  padding: 16px;
}

header h1 {
  font-size: 1.6rem;
  text-align: center;
  margin-bottom: 8px;
}

.subtitle {
  text-align: center;
  color: #666;
  margin-bottom: 20px;
}

.vote-section {
  margin-bottom: 24px;
}

.option-btn {
  width: 100%;
  padding: 16px;
  margin-bottom: 12px;
  font-size: 1.1rem;
  border-radius: 10px;
  border: none;
  background: #007bff;
  color: white;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.option-btn:active {
  transform: scale(0.98);
}

.option-btn:focus {
  outline: 2px solid #0056b3;
}

.results-section h2 {
  margin-top: 0;
}

.total-votes {
  font-weight: 600;
  margin-bottom: 8px;
}

.results-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.result-item {
  margin-bottom: 12px;
}

.result-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.bar-outer {
  width: 100%;
  height: 12px;
  background: #ddd;
  border-radius: 999px;
  overflow: hidden;
}

.bar-inner {
  height: 100%;
  background: #007bff;
  border-radius: 999px;
}

.no-votes {
  color: #666;
}

.footer-text {
  text-align: center;
  margin-top: 24px;
  font-size: 0.8rem;
  color: #999;
}

/* Admin styles */

.admin-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}

.admin-form label {
  font-weight: 600;
  font-size: 0.95rem;
}

.admin-form textarea,
.admin-form input[type="password"],
.admin-form input[type="text"] {
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 0.95rem;
  font-family: inherit;
}

.primary-btn {
  padding: 12px;
  border-radius: 10px;
  border: none;
  background: #28a745;
  color: white;
  font-weight: 600;
  cursor: pointer;
  font-size: 1rem;
}

.primary-btn:active {
  transform: scale(0.98);
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
}

.flash-container {
  margin-bottom: 12px;
}

.flash {
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.flash-error {
  background: #ffe5e5;
  color: #b30000;
}

.flash-success {
  background: #e5ffea;
  color: #006b1f;
}

footer p {
  text-align: center;
  margin-top: 24px;
  font-size: 0.85rem;
}

footer a {
  color: #007bff;
  text-decoration: none;
}
