:root {
  --primary: #F36621;
  --secondary: #00629B;
  --accent: #E5E5E5;
  --bg: #f8f9fa;
  --text: #333333;
  --white: #ffffff;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --radius: 12px;
  --transition: all 0.3s ease;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Inter', system-ui, sans-serif; background-color: var(--bg); color: var(--text); line-height: 1.6; }
h1, h2, h3 { color: var(--secondary); margin-bottom: 1rem; }

.container {
  max-width: 800px; margin: 2rem auto; padding: 2rem;
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
}
.header { text-align: center; margin-bottom: 3rem; }
.logo { max-width: 200px; margin-bottom: 1rem; }

form { display: flex; flex-direction: column; gap: 1.5rem; }
.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
label { font-weight: 600; color: var(--secondary); }

input[type="text"], input[type="time"], input[type="number"], input[type="password"], textarea, select {
  padding: 0.8rem; border: 1px solid #ddd; border-radius: 8px; font-size: 1rem; transition: var(--transition);
}
input:focus, textarea:focus, select:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(243, 102, 33, 0.1);
}

button {
  background-color: var(--primary); color: white; border: none; padding: 1rem; padding-left: 1.5rem; padding-right: 1.5rem;
  border-radius: 8px; font-size: 1.1rem; font-weight: 700; cursor: pointer; transition: var(--transition);
  text-transform: uppercase; letter-spacing: 1px; width: 100%;
}
button:hover { background-color: #d85719; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(243, 102, 33, 0.3); }

.checkbox-group { flex-direction: row; align-items: center; gap: 1rem; }
.checkbox-group input { width: 20px; height: 20px; accent-color: var(--primary); }

.nav-tabs { display: flex; justify-content: center; gap: 1rem; margin-bottom: 2rem; }
.nav-tabs a {
  text-decoration: none; background: none; color: var(--secondary); border: 2px solid var(--secondary);
  padding: 0.5rem 1.5rem; font-size: 1rem; border-radius: 8px; transition: var(--transition); font-weight: bold;
}
.nav-tabs a.active, .nav-tabs a:hover { background: var(--secondary); color: white; }

.card { background: #f1f3f5; padding: 1.5rem; border-radius: 8px; margin-bottom: 1rem; border-left: 5px solid var(--primary); }
.message { text-align: center; font-weight: bold; margin-bottom: 2rem; }
.message.success { color: #28a745; background: #e6f6ea; padding: 1rem; border-radius: 8px; }
.message.error { color: #dc3545; background: #faeaea; padding: 1rem; border-radius: 8px; }

.admin-table { width: 100%; border-collapse: collapse; margin-top: 1rem; font-size: 0.9rem; }
.admin-table th, .admin-table td { padding: 0.8rem; text-align: left; border-bottom: 1px solid #eee; }
.admin-table th { background: var(--secondary); color: white; }
.status-present { color: #28a745; font-weight: bold; }
.status-absent { color: #dc3545; font-weight: bold; }

.admin-toggle {
  position: fixed; bottom: 10px; right: 10px; background: var(--secondary); border: none; border-radius: 50%;
  width: 8px; height: 8px; padding: 0; font-size: 0; cursor: pointer; opacity: 0.15; z-index: 99999;
  transition: all 0.3s; width: 8px; /* Override previous button width */
}
.admin-toggle:hover { opacity: 1; width: 30px; height: 30px; border-radius: 4px; font-size: 8px; color: white; display: flex; align-items: center; justify-content: center; text-transform: none;}
.admin-toggle:hover::after { content: "ADM"; }

@media (max-width: 600px) {
  .container { margin: 1rem; padding: 1rem; }
  .admin-table { display: block; overflow-x: auto; white-space: nowrap; }
}

/* Fake Poll Styles */
.fake-poll {
  margin-top: 4rem;
  padding: 2rem;
  background: var(--accent);
  border-radius: var(--radius);
  text-align: center;
}
.poll-options {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}
.poll-option {
  background: var(--white);
  padding: 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  font-weight: bold;
}
.poll-option:hover {
  border-color: var(--primary);
  transform: scale(1.02);
}
.poll-results {
  display: none;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.result-item {
  text-align: left;
}
.result-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-weight: bold;
}
.progress-bar {
  height: 20px;
  background: #eee;
  border-radius: 10px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--secondary);
  width: 0%;
  transition: width 1s ease-out;
}
.progress-fill.winner {
  background: var(--primary);
}
/* Admin Stats Dashboard */
.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.stat-card {
  background: var(--white);
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  border-top: 4px solid var(--secondary);
  transition: var(--transition);
}
.stat-card:hover {
  transform: translateY(-5px);
}
.stat-card h3 {
  font-size: 0.9rem;
  text-transform: uppercase;
  color: #666;
  margin-bottom: 0.5rem;
}
.stat-card .stat-value {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
}
.stat-card.ay-card {
  border-top-color: var(--primary);
}
