/* ========================================
   PROFESSIONAL YET PLAYFUL STYLING
   Clean, Modern, Engaging Design for Classic Mode
   =.num-option::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  opacity: 0;
  transition: opacity 0.25s ease;
}====================== */
/* ========================================
   SETUP SCREEN MODAL
   ======================================== */
/* Subtle animated background */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
      135deg,
      rgba(99, 101, 241, 0.521) 0%,
      rgba(169, 85, 247, 0.336) 100%
    ),
    radial-gradient(
      circle at 20% 80%,
      rgba(120, 119, 198, 0.05) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(255, 119, 198, 0.05) 0%,
      transparent 50%
    );
  pointer-events: none;
  z-index: 0;
}

/* Enhanced setup box with professional styling */
#setupBox {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.95),
    rgba(255, 255, 255, 0.98)
  );
  border: 1px solid rgba(99, 102, 241, 0.1);
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08),
    0 8px 25px rgba(99, 102, 241, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
  min-width: 80dvw;
  min-height: 90dvh;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#setupBox:hover {
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.12),
    0 12px 35px rgba(99, 102, 241, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
}

/* Professional setup inner layer */
#setupInnerLayer {
  position: relative;
  z-index: 2;
  padding: 32px;
}

/* Setup header */
.setup-header {
  text-align: center;
  margin-bottom: 28px;
}

.setup-title {
  font-family: "Poppins", sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.setup-subtitle {
  font-size: 1rem;
  color: #64748b;
  margin-top: 8px;
  font-weight: 500;
}

/* Enhanced section labels */
.setup-row {
  margin-bottom: 20px;
  padding: 8px 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.setup-row label {
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #374151;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.setup-row label::before {
  content: "";
  width: 4px;
  height: 16px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border-radius: 2px;
}

.team-radio-group {
  display: flex;
  flex-direction: row;
  gap: 0.8rem;
  align-items: center;
}

/* Modern number options */
.num-option {
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  color: #374151;
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  padding: 16px 24px;
  margin: 6px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  min-width: 80px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.num-option::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.num-option:hover {
  border-color: #6366f1;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.15),
    0 4px 12px rgba(0, 0, 0, 0.08);
  color: #6366f1;
}

.num-option.selected {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border-color: #6366f1;
  color: #ffffff;
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.25), 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

/* Enhanced toggle switch */
.toggle-switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 20px 0;
  padding: 20px;
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.05),
    rgba(139, 92, 246, 0.05)
  );
  border: 1px solid rgba(99, 102, 241, 0.1);
  border-radius: 16px;
  transition: all 0.3s ease;
}

.toggle-switch:hover {
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.08),
    rgba(139, 92, 246, 0.08)
  );
  border-color: rgba(99, 102, 241, 0.2);
}

.toggle-label {
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #374151;
  display: flex;
  align-items: center;
  gap: 8px;
}

.toggle-label::before {
  content: "⚡";
  font-size: 1.2rem;
  opacity: 0.7;
}

/* Modern switch design */
.switch-label {
  position: relative;
  width: 64px;
  height: 32px;
  display: block;
}

.switch-label input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-inner {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #cbd5e1;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 32px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.switch-inner:before {
  position: absolute;
  content: "";
  height: 24px;
  width: 24px;
  left: 4px;
  bottom: 4px;
  background: #ffffff;
  border-radius: 50%;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

input:checked + .switch-inner {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1),
    0 0 0 2px rgba(99, 102, 241, 0.2);
}

input:checked + .switch-inner:before {
  transform: translateX(32px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* Time section disabled state */
#timeSection {
  transition: all 0.3s ease;
}

#timeSection.disabled {
  opacity: 0.4;
  pointer-events: none;
  filter: grayscale(1);
}

#timeSection.disabled .setup-row label {
  color: #9ca3af;
}

#timeSection.disabled .num-option {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
  color: #9ca3af !important;
  cursor: not-allowed !important;
  transform: none !important;
  box-shadow: none !important;
}

#timeSection.disabled .num-option:hover {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
  color: #9ca3af !important;
  transform: none !important;
  box-shadow: none !important;
}

#timeDivider.disabled {
  opacity: 0.3;
}

/* Professional start button */
#startBtn {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border: none;
  border-radius: 10px;
  color: #ffffff;
  font-family: "Poppins", sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  padding: 20px 40px;
  margin: 40px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
  width: 250px;
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.25),
    0 4px 12px rgba(0, 0, 0, 0.08);
}

#startBtn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.6s;
}

#startBtn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(99, 102, 241, 0.3),
    0 8px 20px rgba(0, 0, 0, 0.12);
}

#startBtn:hover::before {
  left: 100%;
}

#startBtn:active {
  transform: translateY(-1px);
  transition: transform 0.1s;
}

.start-btn-icon {
  font-size: 1.2rem;
  opacity: 0.9;
}
#startBtn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.6s;
}

/* Elegant dividers */
.setup-divider {
  border: none;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(99, 102, 241, 0.2),
    transparent
  );
  margin: 16px 0;
  position: relative;
}

.setup-divider::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 6px;
  height: 6px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 1);
}

/* Quiz selection panel enhancements */
.quiz-selection-panel {
  background: linear-gradient(
    135deg,
    rgba(248, 250, 252, 0.95),
    rgba(255, 255, 255, 0.95)
  );
  border: 1px solid rgba(99, 102, 241, 0.1);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.06),
    0 8px 20px rgba(99, 102, 241, 0.04);
  backdrop-filter: blur(10px);
}

.quiz-panel-title {
  display: none; /* Remove redundant "Choose Your Quiz" text */
}

.current-quiz-display {
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  text-align: center;
}

.current-quiz-display:hover {
  border-color: #6366f1;
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.1);
}

.current-quiz-thumbnail {
  position: relative;
  flex-shrink: 0;
}

.current-quiz-image {
  width: 280px;
  height: 180px;
  border-radius: 16px;
  object-fit: cover;
  border: 2px solid #e2e8f0;
  transition: all 0.3s ease;
}

.current-quiz-display:hover .current-quiz-image {
  border-color: #6366f1;
  transform: scale(1.05);
}

.current-quiz-icon {
  position: absolute;
  bottom: -6px;
  right: -6px;
  font-size: 1.2rem;
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  opacity: 0.9;
  transition: all 0.3s ease;
}

.current-quiz-display:hover .current-quiz-icon {
  border-color: #6366f1;
  background: #f8fafc;
}

.current-quiz-info {
  flex: 1;
  width: 100%;
}

.current-quiz-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1e293b;
  margin: 0;
  line-height: 1.3;
}

.current-quiz-details {
  display: none; /* Hide additional details to keep it clean */
}

/* Enhanced quiz selection buttons */
.quiz-select-btn,
.quiz-preview-btn {
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  color: #374151;
  font-family: "Poppins", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 16px 20px;
  margin: 8px 0;
  width: 100%;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.quiz-select-btn:hover,
.quiz-preview-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.15),
    0 4px 12px rgba(0, 0, 0, 0.08);
  border-color: #6366f1;
  color: #6366f1;
}

.btn-icon {
  font-size: 1.1rem;
  opacity: 0.8;
}

/* Quiz stats panel */
.quiz-stats-panel {
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.05),
    rgba(139, 92, 246, 0.05)
  );
  border: 1px solid rgba(99, 102, 241, 0.1);
  border-radius: 12px;
  padding: 20px;
  margin-top: 20px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  border: 1px solid rgba(99, 102, 241, 0.1);
  transition: all 0.3s ease;
}

.stat-item:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(99, 102, 241, 0.2);
  transform: translateX(4px);
}

.stat-icon {
  font-size: 1.3rem;
  opacity: 0.7;
}

.stat-label {
  flex: 1;
  color: #64748b;
  font-weight: 500;
  font-size: 0.9rem;
}

.stat-value {
  color: #6366f1;
  font-weight: 600;
  font-size: 0.9rem;
}

/* Navbar enhancements */
.top-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: rgba(30, 41, 59, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.navbar-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

.navbar-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #ffffff;
  font-family: "Bangers", cursive;
  letter-spacing: 1px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

.help-nav-btn {
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.8),
    rgba(139, 92, 246, 0.8)
  );
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 1.3rem;
}

.help-nav-btn:hover {
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 1),
    rgba(139, 92, 246, 1)
  );
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(99, 102, 241, 0.3);
}

/* Subtle hover effects */
.num-option:hover,
.quiz-select-btn:hover,
.quiz-preview-btn:hover {
  animation: gentleBounce 0.3s ease-out;
}
