/* HIIT Quiz Competition - Main Stylesheet */

:root {
  --primary-purple: #6b21a8;
  --secondary-magenta: #ec4899;
  --accent-blue: #0ea5e9;
  --accent-cyan: #06b6d4;
  --gold: #fbbf24;
  --dark-bg: #f8f9fa;
  --card-bg: #ffffff;
  --text-primary: #1a1a1a;
  --text-secondary: #666666;
  --border-color: #e0e0e0;
  --success: #10b981;
  --error: #ef4444;
  --warning: #f59e0b;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #f8f9fa 0%, #f0f0f5 100%);
  color: var(--text-primary);
  overflow-x: hidden;
}

/* Animated background particles */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(107, 33, 168, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(14, 165, 233, 0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

/* Containers */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.full-height {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Header */
.header {
  background: linear-gradient(135deg, var(--primary-purple) 0%, var(--secondary-magenta) 100%);
  padding: 20px;
  box-shadow: 0 4px 15px rgba(107, 33, 168, 0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  border-bottom: 2px solid var(--accent-cyan);
}

.header-title {
  font-size: 28px;
  font-weight: 700;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.header-subtitle {
  font-size: 14px;
  opacity: 0.9;
  margin-top: 5px;
}

.header-right {
  display: flex;
  gap: 20px;
  align-items: center;
}

.session-badge {
  background: rgba(255, 255, 255, 0.2);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.rules-btn {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
}

.rules-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* Welcome Screen */
.welcome-container {
  text-align: center;
  animation: fadeIn 0.8s ease-out;
}

.welcome-title {
  font-size: 56px;
  font-weight: 800;
  margin-bottom: 10px;
  background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--secondary-magenta) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 30px rgba(14, 165, 233, 0.3);
}

.welcome-tagline {
  font-size: 24px;
  color: var(--accent-cyan);
  margin-bottom: 20px;
  font-weight: 600;
}

.welcome-text {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 50px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.session-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
  animation: staggerChildren 0.8s ease-out;
}

.session-card {
  background: linear-gradient(135deg, var(--card-bg) 0%, #f5f5f5 100%);
  border: 2px solid var(--border-color);
  border-radius: 16px;
  padding: 40px 30px;
  cursor: pointer;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  animation: slideUp 0.6s ease-out backwards;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.session-card:nth-child(1) {
  animation-delay: 0.1s;
}

.session-card:nth-child(2) {
  animation-delay: 0.2s;
}

.session-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.session-card:hover {
  transform: translateY(-10px);
  border-color: var(--accent-cyan);
  box-shadow: 0 8px 30px rgba(14, 165, 233, 0.2);
}

.session-card:hover::before {
  opacity: 1;
}

.session-icon {
  font-size: 60px;
  margin-bottom: 20px;
  animation: float 3s ease-in-out infinite;
}

.session-name {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--accent-cyan);
}

.session-description {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 30px;
}

.session-btn {
  background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-blue) 100%);
  border: none;
  color: white;
  padding: 12px 30px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 5px 20px rgba(14, 165, 233, 0.4);
}

.session-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 30px rgba(14, 165, 233, 0.6);
}

/* Round Cards */
.rounds-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-bottom: 40px;
  animation: staggerChildren 0.8s ease-out;
}

.round-card {
  background: linear-gradient(135deg, var(--card-bg) 0%, #f5f5f5 100%);
  border: 2px solid var(--border-color);
  border-radius: 16px;
  padding: 30px;
  cursor: pointer;
  transition: all 0.4s ease;
  animation: slideUp 0.6s ease-out backwards;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.round-card:nth-child(1) { animation-delay: 0.1s; }
.round-card:nth-child(2) { animation-delay: 0.2s; }
.round-card:nth-child(3) { animation-delay: 0.3s; }
.round-card:nth-child(4) { animation-delay: 0.4s; }

.round-card:hover {
  transform: translateY(-10px);
  border-color: var(--secondary-magenta);
  box-shadow: 0 8px 30px rgba(236, 72, 153, 0.2);
}

.round-icon {
  font-size: 48px;
  margin-bottom: 15px;
}

.round-number {
  font-size: 14px;
  color: var(--accent-cyan);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.round-name {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--text-primary);
}

.round-details {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 20px;
}

.round-detail-item {
  margin-bottom: 8px;
}

.round-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--primary-purple) 0%, var(--secondary-magenta) 100%);
  border: none;
  color: white;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.round-btn:hover {
  transform: scale(1.02);
  box-shadow: 0 5px 20px rgba(236, 72, 153, 0.4);
}

/* Round Intro Screen */
.round-intro {
  text-align: center;
  animation: fadeIn 0.6s ease-out;
}

.round-intro-icon {
  font-size: 80px;
  margin-bottom: 20px;
  animation: float 3s ease-in-out infinite;
}

.round-intro-title {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--accent-cyan);
}

.round-intro-subtitle {
  font-size: 28px;
  font-weight: 600;
  color: var(--secondary-magenta);
  margin-bottom: 30px;
}

.round-intro-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.stat-box {
  background: linear-gradient(135deg, var(--primary-purple) 0%, var(--secondary-magenta) 100%);
  padding: 20px;
  border-radius: 12px;
  border: 1px solid var(--accent-cyan);
}

.stat-value {
  font-size: 32px;
  font-weight: 700;
  color: var(--gold);
}

.stat-label {
  font-size: 12px;
  color: var(--text-secondary);
  text-transform: uppercase;
  margin-top: 5px;
}

.round-categories {
  background: rgba(107, 33, 168, 0.05);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 30px;
  margin: 40px 0;
  text-align: left;
}

.categories-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--accent-cyan);
}

.category-item {
  margin-bottom: 15px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 8px;
  border-left: 4px solid var(--accent-cyan);
}

.category-name {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 5px;
}

.category-desc {
  font-size: 14px;
  color: var(--text-secondary);
}

.round-intro-bottom {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 40px;
  flex-wrap: wrap;
}

.btn {
  padding: 12px 30px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-blue) 100%);
  color: white;
  box-shadow: 0 5px 20px rgba(14, 165, 233, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(14, 165, 233, 0.6);
}

.btn-secondary {
  background: transparent;
  border: 2px solid var(--border-color);
  color: var(--text-secondary);
}

.btn-secondary:hover {
  border-color: var(--secondary-magenta);
  color: var(--secondary-magenta);
}

/* Quiz Control Screen */
.quiz-container {
  display: grid;
  grid-template-columns: 300px 1fr 300px;
  gap: 20px;
  margin-bottom: 30px;
}

.quiz-sidebar {
  background: linear-gradient(135deg, var(--card-bg) 0%, #f5f5f5 100%);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 20px;
  height: fit-content;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.sidebar-title {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 15px;
}

.team-list {
  list-style: none;
}

.team-item {
  padding: 12px;
  margin-bottom: 8px;
  background: rgba(107, 33, 168, 0.05);
  border-radius: 6px;
  font-size: 14px;
  border-left: 4px solid transparent;
  transition: all 0.3s ease;
}

.team-item.active {
  background: linear-gradient(135deg, var(--primary-purple) 0%, var(--secondary-magenta) 100%);
  border-left-color: var(--gold);
  font-weight: 600;
}

.team-item.completed {
  opacity: 0.6;
}

.team-item.eliminated {
  opacity: 0.4;
  text-decoration: line-through;
}

.quiz-main {
  background: linear-gradient(135deg, var(--card-bg) 0%, #f5f5f5 100%);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 40px;
  text-align: center;
  min-height: 500px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.quiz-progress {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  text-transform: uppercase;
}

.quiz-team-info {
  font-size: 20px;
  font-weight: 700;
  color: var(--secondary-magenta);
  margin-bottom: 10px;
}

.quiz-question-info {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 30px;
}

.quiz-question-type {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary-purple) 0%, var(--secondary-magenta) 100%);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.quiz-question {
  font-size: 28px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 30px 0;
  line-height: 1.6;
}

.quiz-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin: 30px 0;
}

.option {
  background: rgba(0, 0, 0, 0.02);
  border: 2px solid var(--border-color);
  padding: 20px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.option:hover {
  border-color: var(--accent-cyan);
  background: rgba(14, 165, 233, 0.05);
  transform: translateY(-3px);
}

.option.selected {
  background: linear-gradient(135deg, var(--primary-purple) 0%, var(--secondary-magenta) 100%);
  border-color: var(--gold);
  box-shadow: 0 0 20px rgba(236, 72, 153, 0.4);
}

.option.correct {
  background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
  border-color: #10b981;
}

.option.incorrect {
  background: linear-gradient(135deg, var(--error) 0%, #dc2626 100%);
  border-color: #ef4444;
}

.media-container {
  margin: 30px 0;
}

.media-container img {
  max-width: 100%;
  max-height: 300px;
  border-radius: 12px;
  box-shadow: 0 0 30px rgba(14, 165, 233, 0.3);
  animation: fadeIn 0.6s ease-out;
}

.audio-player {
  background: rgba(107, 33, 168, 0.1);
  border: 2px solid var(--accent-cyan);
  padding: 20px;
  border-radius: 12px;
  margin: 20px 0;
}

.audio-player audio {
  width: 100%;
}

.audio-controls {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 15px;
}

.audio-btn {
  background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-blue) 100%);
  border: none;
  color: white;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.audio-btn:hover {
  transform: scale(1.05);
}

.timer {
  font-size: 48px;
  font-weight: 700;
  color: var(--gold);
  margin: 30px 0;
  font-family: 'Courier New', monospace;
  text-shadow: 0 0 20px rgba(251, 191, 36, 0.5);
}

.timer.warning {
  color: var(--warning);
  animation: pulse 0.8s ease-in-out infinite;
}

.timer.expired {
  color: var(--error);
}

.quiz-controls {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 40px;
  flex-wrap: wrap;
}

.btn-control {
  padding: 12px 25px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-success {
  background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
  color: white;
  box-shadow: 0 5px 20px rgba(16, 185, 129, 0.4);
}

.btn-success:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(16, 185, 129, 0.6);
}

.btn-error {
  background: linear-gradient(135deg, var(--error) 0%, #dc2626 100%);
  color: white;
  box-shadow: 0 5px 20px rgba(239, 68, 68, 0.4);
}

.btn-error:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(239, 68, 68, 0.6);
}

.btn-warning {
  background: linear-gradient(135deg, var(--warning) 0%, #d97706 100%);
  color: white;
  box-shadow: 0 5px 20px rgba(245, 158, 11, 0.4);
}

.btn-warning:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(245, 158, 11, 0.6);
}

.btn-info {
  background: linear-gradient(135deg, var(--accent-cyan) 0%, #0891b2 100%);
  color: white;
  box-shadow: 0 5px 20px rgba(6, 182, 212, 0.4);
}

.btn-info:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(6, 182, 212, 0.6);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-purple) 0%, var(--secondary-magenta) 100%);
  color: white;
  box-shadow: 0 5px 20px rgba(107, 33, 168, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(107, 33, 168, 0.6);
}

.quiz-sidebar-right {
  background: linear-gradient(135deg, var(--card-bg) 0%, rgba(30, 41, 59, 0.8) 100%);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 20px;
  height: fit-content;
}

.score-display {
  background: linear-gradient(135deg, var(--primary-purple) 0%, var(--secondary-magenta) 100%);
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 20px;
}

.score-label {
  font-size: 12px;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.score-value {
  font-size: 36px;
  font-weight: 700;
  color: var(--gold);
}

/* Leaderboard */
.leaderboard-container {
  animation: fadeIn 0.6s ease-out;
}

.leaderboard-title {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 30px;
  color: var(--gold);
  text-align: center;
}

.leaderboard-table {
  width: 100%;
  border-collapse: collapse;
  background: linear-gradient(135deg, var(--card-bg) 0%, rgba(30, 41, 59, 0.8) 100%);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.leaderboard-table thead {
  background: linear-gradient(135deg, var(--primary-purple) 0%, var(--secondary-magenta) 100%);
}

.leaderboard-table th {
  padding: 20px;
  text-align: left;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 14px;
  color: var(--text-primary);
}

.leaderboard-table td {
  padding: 20px;
  border-top: 1px solid var(--border-color);
  font-size: 16px;
}

.leaderboard-table tbody tr {
  transition: all 0.3s ease;
}

.leaderboard-table tbody tr:hover {
  background: rgba(107, 33, 168, 0.2);
}

.leaderboard-rank {
  font-weight: 700;
  color: var(--gold);
  font-size: 18px;
}

.leaderboard-rank.rank1 {
  color: #fbbf24;
  font-size: 24px;
}

.leaderboard-rank.rank2 {
  color: #c0c0c0;
}

.leaderboard-rank.rank3 {
  color: #cd7f32;
}

.leaderboard-team {
  font-weight: 600;
  color: var(--text-primary);
}

.leaderboard-score {
  font-weight: 700;
  color: var(--accent-cyan);
  font-size: 18px;
}

.leaderboard-status {
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  font-weight: 600;
}

.leaderboard-status.active {
  background: rgba(16, 185, 129, 0.2);
  color: var(--success);
}

.leaderboard-status.eliminated {
  background: rgba(239, 68, 68, 0.2);
  color: var(--error);
}

/* Winner Screen */
.winner-container {
  text-align: center;
  animation: fadeIn 0.8s ease-out;
}

.winner-icon {
  font-size: 120px;
  margin-bottom: 30px;
  animation: bounce 0.8s ease-in-out infinite;
}

.winner-title {
  font-size: 56px;
  font-weight: 800;
  margin-bottom: 30px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--secondary-magenta) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.winner-team {
  font-size: 42px;
  font-weight: 700;
  color: var(--accent-cyan);
  margin-bottom: 20px;
}

.winner-score {
  font-size: 28px;
  color: var(--text-secondary);
  margin-bottom: 30px;
}

.prize-box {
  background: linear-gradient(135deg, var(--gold) 0%, #f59e0b 100%);
  padding: 30px;
  border-radius: 12px;
  margin: 30px 0;
  box-shadow: 0 0 50px rgba(251, 191, 36, 0.4);
}

.prize-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--dark-bg);
  margin-bottom: 10px;
}

.prize-value {
  font-size: 32px;
  font-weight: 800;
  color: var(--dark-bg);
}

.runner-up {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 2px solid var(--border-color);
}

.runner-up-title {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 15px;
}

.runner-up-team {
  font-size: 24px;
  color: var(--secondary-magenta);
  font-weight: 700;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease-out;
}

.modal.show {
  display: flex;
}

.modal-content {
  background: linear-gradient(135deg, var(--card-bg) 0%, #f5f5f5 100%);
  border: 2px solid var(--border-color);
  border-radius: 16px;
  padding: 40px;
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  animation: slideUp 0.4s ease-out;
}

.modal-header {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--accent-cyan);
}

.modal-body {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-secondary);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 30px;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.modal-close:hover {
  color: var(--secondary-magenta);
  transform: rotate(90deg);
}

.modal-body h2 {
  font-size: 20px;
  color: var(--secondary-magenta);
  margin-top: 25px;
  margin-bottom: 15px;
  font-weight: 700;
}

.modal-body h3 {
  font-size: 16px;
  color: var(--accent-cyan);
  margin-top: 15px;
  margin-bottom: 10px;
  font-weight: 600;
}

.modal-body ul {
  margin-left: 20px;
  margin-bottom: 15px;
}

.modal-body li {
  margin-bottom: 8px;
}

/* Admin Styles */
.admin-container {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 20px;
  margin-bottom: 30px;
}

.admin-sidebar {
  background: linear-gradient(135deg, var(--card-bg) 0%, #f5f5f5 100%);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 20px;
  height: fit-content;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.admin-nav {
  list-style: none;
}

.admin-nav-item {
  margin-bottom: 0;
}

.admin-nav-link {
  display: block;
  padding: 12px 16px;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.3s ease;
  font-weight: 500;
}

.admin-nav-link:hover,
.admin-nav-link.active {
  background: linear-gradient(135deg, var(--primary-purple) 0%, var(--secondary-magenta) 100%);
  color: white;
}

.admin-main {
  background: linear-gradient(135deg, var(--card-bg) 0%, #f5f5f5 100%);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.admin-section-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 30px;
  color: var(--accent-cyan);
}

.table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 30px;
}

.table thead {
  background: linear-gradient(135deg, var(--primary-purple) 0%, var(--secondary-magenta) 100%);
}

.table th {
  padding: 15px;
  text-align: left;
  font-weight: 700;
  color: white;
  text-transform: uppercase;
  font-size: 13px;
}

.table td {
  padding: 15px;
  border-bottom: 1px solid var(--border-color);
  font-size: 14px;
}

.table tbody tr:hover {
  background: rgba(107, 33, 168, 0.2);
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text-primary);
  font-size: 14px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px;
  background: rgba(0, 0, 0, 0.02);
  border: 2px solid var(--border-color);
  border-radius: 6px;
  color: var(--text-primary);
  font-size: 14px;
  transition: all 0.3s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent-cyan);
  background: rgba(14, 165, 233, 0.03);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.form-btn {
  background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-blue) 100%);
  border: none;
  color: white;
  padding: 12px 30px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.form-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 20px rgba(14, 165, 233, 0.4);
}

.action-btns {
  display: flex;
  gap: 8px;
}

.btn-edit,
.btn-delete,
.btn-view {
  padding: 6px 12px;
  border: none;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-edit {
  background: var(--accent-cyan);
  color: var(--dark-bg);
}

.btn-delete {
  background: var(--error);
  color: white;
}

.btn-view {
  background: var(--gold);
  color: var(--dark-bg);
}

.btn-edit:hover,
.btn-delete:hover,
.btn-view:hover {
  transform: scale(1.05);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

@keyframes staggerChildren {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

/* Responsive */
@media (max-width: 1024px) {
  .quiz-container {
    grid-template-columns: 1fr;
  }

  .rounds-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-box {
    padding: 15px;
  }
}

@media (max-width: 768px) {
  .header {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  .header-title {
    font-size: 24px;
  }

  .session-cards {
    grid-template-columns: 1fr;
  }

  .rounds-container {
    grid-template-columns: 1fr;
  }

  .welcome-title {
    font-size: 42px;
  }

  .round-intro-stats {
    grid-template-columns: 1fr;
  }

  .quiz-options {
    grid-template-columns: 1fr;
  }

  .admin-container {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    display: flex;
    gap: 10px;
    height: auto;
    flex-wrap: wrap;
  }

  .admin-nav {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
  }

  .admin-nav-link {
    flex: 1;
    text-align: center;
    min-width: 120px;
  }

  .modal-content {
    margin: 20px;
    max-width: 90vw;
  }

  .leaderboard-table {
    font-size: 14px;
  }

  .leaderboard-table th,
  .leaderboard-table td {
    padding: 12px;
  }
}

@media (max-width: 480px) {
  .welcome-title {
    font-size: 32px;
  }

  .round-icon {
    font-size: 36px;
  }

  .quiz-question {
    font-size: 20px;
  }

  .timer {
    font-size: 36px;
  }

  .btn {
    padding: 10px 20px;
    font-size: 14px;
  }
}
