/* =========================================
   AWS Practice Test Tool - Clean Styles
   ========================================= */

/* ===================
   RESET & BASE STYLES
   =================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Smooth transitions for better UX */
*,
*::before,
*::after {
  transition: color 0.15s ease, background-color 0.15s ease,
    border-color 0.15s ease;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: #667eea;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #5a67d8;
}

/* Selection styling */
::selection {
  background: #667eea;
  color: white;
}

::-moz-selection {
  background: #667eea;
  color: white;
}

/* ===================
   LAYOUT & NAVIGATION
   =================== */
.screen {
  display: none;
}

.screen.active {
  display: block;
}

.navigation-container {
  display: flex;
  align-items: center;
  min-height: 60px;
  transition: all 0.3s ease;
}

/* ===================
   BUTTONS & CONTROLS
   =================== */
/* Navigation buttons */
#prev-btn,
#next-btn {
  width: 140px;
  min-width: 140px;
  max-width: 140px;
  height: 48px;
  min-height: 48px;

  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;

  padding: 0.75rem 1rem;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.025em;
  line-height: 1.2;

  white-space: nowrap;
  overflow: hidden;

  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#prev-btn:hover,
#next-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

#prev-btn:disabled,
#next-btn:disabled {
  transform: none;
  box-shadow: none;
  opacity: 0.5;
}

/* View Score Button */
#view-score-btn {
  background: linear-gradient(135deg, #10b981 0%, #3b82f6 100%);
  min-width: 280px;
  max-width: 400px;
  height: 48px;
  min-height: 48px;

  position: relative;
  overflow: hidden;

  transition: all 0.3s ease;
  animation: pulse-glow 2s infinite;
}

#view-score-btn:hover {
  background: linear-gradient(135deg, #059669 0%, #2563eb 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.4);
}

#view-score-btn:active {
  transform: translateY(0);
  box-shadow: 0 5px 15px rgba(16, 185, 129, 0.4);
}

/* Shine effect for View Score button */
#view-score-btn::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transform: rotate(45deg);
  transition: all 0.5s;
  opacity: 0;
}

#view-score-btn:hover::before {
  animation: shine 0.7s ease-in-out;
}

/* Certification selection buttons */
.cert-btn {
  transition: all 0.3s ease;
}

.cert-btn.selected {
  border-color: #667eea;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

/* ===================
   ANSWER OPTIONS
   =================== */
.answer-option {
  display: flex;
  align-items: center;
  padding: 1.25rem;
  border: 2px solid #e5e7eb;
  border-radius: 0.75rem;
  background-color: #f9fafb;
  cursor: pointer;
  transition: all 0.3s ease;
}

.answer-option:hover:not(.disabled) {
  border-color: #667eea;
  background-color: #eff6ff;
}

.answer-option.selected {
  border-color: #667eea;
  background-color: #dbeafe;
}

/* Answer states after checking */
.answer-option.correct-selected {
  background-color: #dcfce7;
  border-color: #22c55e;
  color: #166534;
}

.answer-option.incorrect-selected {
  background-color: #fee2e2;
  border-color: #ef4444;
  color: #991b1b;
}

.answer-option.correct-missed {
  background-color: #dcfce7;
  border-color: #22c55e;
  color: #166534;
}

/* Disabled answer options */
.answer-option.disabled {
  cursor: not-allowed !important;
  opacity: 0.8;
  pointer-events: none;
}

.answer-option.disabled:hover {
  transform: none !important;
  box-shadow: none !important;
}

/* ===================
   ANIMATIONS
   =================== */
@keyframes pulse-glow {
  0%,
  100% {
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
  }

  50% {
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
  }
}

@keyframes shine {
  0% {
    left: -50%;
    opacity: 0;
  }

  50% {
    left: 50%;
    opacity: 1;
  }

  100% {
    left: 150%;
    opacity: 0;
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes celebration {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }

  50% {
    transform: scale(1.05);
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.02);
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

/* ===================
   SPECIAL COMPONENTS
   =================== */
/* Analysis section */
.slide-down {
  animation: slideDown 0.5s ease;
}

/* Completion celebration */
.completion-celebration {
  animation: celebration 0.6s ease-out;
}

.completion-score {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Loading animation */
.animate-spin {
  animation: spin 1s linear infinite;
}

.loading-skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

/* ===================
   NICKNAME SYSTEM
   =================== */
.nickname-input-invalid {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

.nickname-input-valid {
  border-color: #22c55e !important;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1) !important;
}

#nickname-info {
  transition: all 0.3s ease;
}

#current-nickname {
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 8px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

#home-nickname-display {
  transition: all 0.3s ease;
}

#home-nickname-display:hover {
  transform: scale(1.02);
}

#home-change-nickname,
#home-show-history {
  opacity: 0;
  transition: opacity 0.2s ease;
}

#home-nickname-display:hover #home-change-nickname,
#home-nickname-display:hover #home-show-history {
  opacity: 1;
}

/* ===================
   HISTORY & STATISTICS
   =================== */
.history-item {
  border: 1px solid #e5e7eb;
  transition: all 0.2s ease;
}

.history-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-color: #d1d5db;
}

.stat-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

/* Badge styles */
.cert-badge,
.result-badge {
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

/* ===================
   REVIEW SYSTEM
   =================== */
.review-question {
  border-left: 4px solid transparent;
  transition: border-color 0.2s ease;
}

.review-question.correct {
  border-left-color: #10b981;
}

.review-question.incorrect {
  border-left-color: #ef4444;
}

.review-answer {
  transition: all 0.2s ease;
}

.review-answer:hover {
  transform: translateX(4px);
}

/* ===================
   FILTER SYSTEM
   =================== */
#cert-type-filter {
  min-width: 200px;
  background-color: white;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

#cert-type-filter:hover {
  border-color: #667eea;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

#cert-type-filter:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.filter-bar {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
}

.filter-bar:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.filter-label {
  color: #374151;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.filter-label::before {
  content: "🔍";
  font-size: 1rem;
}

#filtered-count {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
  font-weight: 600;
  min-width: 1.5rem;
  text-align: center;
  display: inline-block;
}

.filter-applied {
  animation: filterPulse 0.3s ease-out;
}

@keyframes filterPulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.02);
  }

  100% {
    transform: scale(1);
  }
}

/* ===================
   ADMIN INTERFACE
   =================== */
/* Stats cards with hover effects */
.stats-card-clickable {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transform: translateY(0);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.stats-card-clickable::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.6s ease;
  z-index: 1;
}

.stats-card-clickable:hover {
  transform: translateY(-8px);
  border-color: #667eea;
}

.stats-card-clickable:hover::before {
  left: 100%;
}

.stats-card-clickable:active {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.stats-card-clickable:hover .text-3xl {
  animation: iconBounce 0.6s ease;
}

.stats-card-clickable:hover .text-2xl {
  animation: numberPulse 0.5s ease;
}

@keyframes iconBounce {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.2);
  }
}

@keyframes numberPulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }

  100% {
    transform: scale(1);
  }
}

/* User management */
.user-item {
  border: 1px solid #e5e7eb;
  cursor: pointer;
  transition: all 0.3s ease;
}

.user-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-color: #667eea;
  background-color: #f8fafc;
}

.user-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
}

.user-stat-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  transition: transform 0.2s ease;
}

.user-stat-card:hover {
  transform: translateY(-2px);
}

/* ===================
   MODAL ANIMATIONS
   =================== */


   /* ===== Cert Manager (scoped) ===== */
/* Overlay cơ bản cho Cert Manager */
#cert-manager-modal {
  position: fixed;
  inset: 0;
  display: none;               /* giữ nguyên mặc định ẩn */
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.5);
  z-index: 2000;               /* cao hơn nội dung trang */
}

/* Khi mở bằng JS */
#cert-manager-modal.active {
  display: flex !important;
}

/* Khung nội dung modal */
#cert-manager-modal .modal-content {
  width: 100%;
  max-width: 640px;
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 20px 50px rgba(0,0,0,.2);
}

#cert-manager-modal .modal-title { 
  font-size: 1.125rem; 
  font-weight: 700; 
  margin-bottom: 12px; 
  color: #111827; 
}

#cert-manager-modal .modal-body { 
  display: flex; 
  flex-direction: column; 
}


/* ===== Add Cert Type Modal (scoped by ID) ===== */
#add-cert-modal {
  position: fixed;
  inset: 0;
  display: none;                /* ẩn mặc định */
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .5);
  z-index: 2000;                /* thấp hơn các alert đặc biệt nếu bạn dùng 10000 ở chỗ khác */
}

#add-cert-modal.active {        /* JS toggle: thêm/bớt .active */
  display: flex;
}

#add-cert-modal .modal-content {
  width: 100%;
  max-width: 520px;
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 20px 50px rgba(0,0,0,.2);
  animation: modalSlideIn .25s ease-out;  /* dùng keyframes sẵn có */
}

#add-cert-modal .modal-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #111827;
}

#add-cert-modal .modal-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#add-cert-modal .modal-label {
  font-size: 14px;
  color: #374151;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

#add-cert-modal .modal-input,
#add-cert-modal .modal-textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 0.95rem;
  outline: none;
  background-color: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}

#add-cert-modal .modal-input:focus,
#add-cert-modal .modal-textarea:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

#add-cert-modal .modal-actions {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

#add-cert-modal #btn-cancel-add-cert,
#add-cert-modal #btn-save-add-cert {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  background: #f9fafb;
  font-weight: 600;
  cursor: pointer;
  transition: background-color .2s ease, box-shadow .2s ease, transform .1s ease;
}

#add-cert-modal #btn-cancel-add-cert:hover,
#add-cert-modal #btn-save-add-cert:hover {
  background: #f3f4f6;
}

#add-cert-modal #btn-save-add-cert {
  border-color: transparent;
  background: #667eea;
  color: #fff;
}

#add-cert-modal #btn-save-add-cert:hover {
  background: #5a67d8;
}



#user-list-modal .bg-white,
#user-detail-modal .bg-white {
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(-20px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

#resume-session-modal .modal {
  backdrop-filter: blur(4px);
}

#resume-session-modal .bg-white {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

#resume-progress-bar {
  transition: width 0.6s ease-in-out;
}

#continue-session-btn:hover {
  animation: pulse 2s infinite;
}

/* ===================
   RESPONSIVE DESIGN
   =================== */
@media (max-width: 768px) {
  /* Navigation adjustments */
  #prev-btn,
  #next-btn {
    width: 120px;
    min-width: 120px;
    max-width: 120px;
    font-size: 0.875rem;
    padding: 0.625rem 0.75rem;
  }

  #view-score-btn {
    min-width: 240px;
    max-width: 320px;
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
  }

  .navigation-container {
    padding: 1rem;
    flex-direction: column;
    gap: 1rem;
  }

  /* General layout */
  .screen {
    padding: 1rem;
  }

  .cert-btn {
    flex-direction: column;
    text-align: center;
  }

  .cert-btn .text-4xl {
    margin-right: 0;
    margin-bottom: 0.5rem;
  }

  /* Answer options */
  .answer-option {
    padding: 1rem;
    flex-wrap: wrap;
  }

  /* History and stats */
  .history-item {
    padding: 1rem;
  }

  .history-item .flex {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .stat-number {
    font-size: 1.5rem;
  }

  /* Filter system */
  .filter-bar .flex {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  #cert-type-filter {
    width: 100%;
    min-width: auto;
  }

  /* User management */
  .user-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .user-item {
    padding: 1rem;
  }

  .user-item .flex {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  /* Modal adjustments */
  #user-list-modal .bg-white,
  #user-detail-modal .bg-white,
  #resume-session-modal .bg-white {
    margin: 1rem;
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
  }
}

@media (max-width: 480px) {
  /* Small screen adjustments */
  #prev-btn,
  #next-btn {
    width: 100px;
    min-width: 100px;
    max-width: 100px;
    font-size: 0.8rem;
    padding: 0.5rem 0.5rem;
  }

  #view-score-btn {
    min-width: 200px;
    max-width: 280px;
    font-size: 0.9rem;
    padding: 0.625rem 1rem;
  }

  /* Stack navigation vertically */
  .bg-white.rounded-2xl.p-6.shadow-lg.flex.justify-center {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }

  /* User management */
  .user-stats-grid {
    grid-template-columns: 1fr;
  }

  #home-nickname-display {
    top: 1rem;
    left: 1rem;
  }

  #home-nickname-display .flex {
    font-size: 0.875rem;
  }
}

/* ===================
   ACCESSIBILITY
   =================== */
/* Focus states */
button:focus,
input:focus,
select:focus {
  outline: 2px solid #667eea;
  outline-offset: 2px;
}

.focus-visible:focus {
  outline: 2px solid #667eea;
  outline-offset: 2px;
}

/* High contrast mode */
@media (prefers-contrast: high) {
  .answer-option {
    border-width: 3px;
  }

  .cert-btn {
    border-width: 3px;
  }

  .history-item {
    border: 2px solid #000;
  }

  .cert-badge,
  .result-badge {
    border: 1px solid currentColor;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .completion-celebration {
    animation: none;
  }

  .loading-skeleton {
    animation: none;
    background: #f0f0f0;
  }
}

/* ===================
   PRINT STYLES
   =================== */
@media print {
  .screen:not(.active) {
    display: none !important;
  }

  button,
  .modal {
    display: none !important;
  }

  .bg-gradient-to-br,
  .bg-gradient-to-r {
    background: #667eea !important;
    color: white !important;
  }
}

/* ===================
   DARK MODE (Future)
   =================== */
@media (prefers-color-scheme: dark) {
  :root {
    --primary-dark: #4f46e5;
    --secondary-dark: #7c3aed;
  }

  .history-item {
    background-color: #1f2937;
    border-color: #374151;
    color: #f9fafb;
  }

  .history-item:hover {
    background-color: #111827;
    border-color: #4b5563;
  }

  .loading-skeleton {
    background: linear-gradient(90deg, #374151 25%, #4b5563 50%, #374151 75%);
    background-size: 200% 100%;
  }

  .user-item {
    background-color: #1f2937;
    border-color: #374151;
    color: #f9fafb;
  }

  .user-item:hover {
    background-color: #111827;
    border-color: #4b5563;
  }
}
/* =========================================
   MOBILE QUESTION & ANSWER OPTIMIZATION ONLY
   ========================================= */

/* ===================
   MOBILE QUESTION TEXT
   =================== */
@media (max-width: 768px) {
  /* Question text - smaller, more readable */
  #question-text {
    font-size: 1.125rem !important; /* down from text-2xl */
    line-height: 1.5 !important;
    margin-bottom: 1.5rem !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
  }

  /* Question wrapper - scrollable if very long */
  #question-wrapper {
    max-height: 50vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-right: 0.5rem;
  }

  /* Custom scrollbar for question area */
  #question-wrapper::-webkit-scrollbar {
    width: 4px;
  }

  #question-wrapper::-webkit-scrollbar-track {
    background: transparent;
  }

  #question-wrapper::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.3);
    border-radius: 2px;
  }
}

/* ===================
   MOBILE ANSWER OPTIONS
   =================== */
@media (max-width: 768px) {
  /* Answer options - more compact */
  .answer-option {
    padding: 1rem !important; /* down from 1.25rem */
    margin-bottom: 0.75rem !important;
    border-radius: 0.75rem !important;
  }

  /* Answer text - better mobile size */
  .answer-option label {
    font-size: 1rem !important; /* down from text-lg */
    line-height: 1.4 !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  /* Answer container - scrollable if many options */
  #answers-container {
    max-height: 40vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-right: 0.5rem;
  }

  /* Custom scrollbar for answers */
  #answers-container::-webkit-scrollbar {
    width: 4px;
  }

  #answers-container::-webkit-scrollbar-track {
    background: transparent;
  }

  #answers-container::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.3);
    border-radius: 2px;
  }

  /* Answer icons - appropriate size */
  .answer-icon {
    font-size: 1.25rem !important;
    min-width: 24px !important;
  }

  /* Radio/checkbox inputs - proper sizing */
  .answer-option input[type="radio"],
  .answer-option input[type="checkbox"] {
    transform: scale(1.1) !important;
    margin-right: 0.75rem !important;
  }
}

/* ===================
   SMALL MOBILE ADJUSTMENTS
   =================== */
@media (max-width: 480px) {
  /* Even smaller text for tiny screens */
  #question-text {
    font-size: 1rem !important;
    line-height: 1.4 !important;
  }

  .answer-option label {
    font-size: 0.9rem !important;
  }

  .answer-option {
    padding: 0.875rem !important;
  }

  /* Increase scrollable area on small screens */
  #question-wrapper {
    max-height: 45vh;
  }

  #answers-container {
    max-height: 35vh;
  }
}

/* ===================
   LANDSCAPE MODE
   =================== */
@media (max-width: 926px) and (orientation: landscape) {
  /* Reduce heights in landscape */
  #question-wrapper {
    max-height: 35vh;
  }

  #answers-container {
    max-height: 30vh;
  }
}

/* ===================
   TOUCH & ACCESSIBILITY
   =================== */
@media (max-width: 768px) {
  /* Ensure touch targets are big enough */
  .answer-option {
    min-height: 48px;
  }

  /* Better mobile interactions */
  .answer-option:active {
    background-color: #e0e7ff !important;
    transform: scale(0.98);
  }

  /* Better focus indicators */
  .answer-option:focus-within {
    outline: 2px solid #667eea !important;
    outline-offset: 2px !important;
  }
}
