/* Global Styles */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', Arial, sans-serif;
  min-height: 100vh;
  background: #f8fafc;
  position: relative;
  overflow-x: hidden;
}

/* Utility Classes */
.glass {
  backdrop-filter: blur(18px) saturate(1.2);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.gradient-text {
  font-family: 'Fredoka', 'Inter', Arial, sans-serif;
  background: linear-gradient(90deg, #60a5fa 10%, #2563eb 60%, #a5b4fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}

/* Loading Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  
  .recommendations-grid {
    grid-template-columns: 1fr;
  }
}

/* MCQ Question Styles */
.question-image-container {
  margin: 16px 0;
  text-align: center;
  background: #fff;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.question-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.mcq-answer-space {
  margin-top: 20px;
}

.mcq-answer-space label {
  display: block;
  font-weight: 600;
  margin-bottom: 12px;
  color: #334155;
}

.mcq-options {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.mcq-option {
  padding: 12px 24px;
  border: 2px solid #cbd5e1;
  background: #fff;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 60px;
}

.mcq-option:hover {
  border-color: #60a5fa;
  background: #eff6ff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(96, 165, 250, 0.2);
}

.mcq-option.selected {
  border-color: #2563eb;
  background: #2563eb;
  color: #fff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.mcq-option.selected:hover {
  border-color: #1d4ed8;
  background: #1d4ed8;
}

.mcq-answer-hidden {
  display: none;
}

/* Print Styles */
@media print {
  .sidebar,
  .chat-input-container,
  .test-actions {
    display: none !important;
  }
  
  .main-content {
    margin-left: 0 !important;
  }
  
  .test-paper {
    box-shadow: none !important;
    border: 1px solid #000 !important;
  }
  
  .question-image {
    max-width: 100% !important;
    page-break-inside: avoid;
  }
  
  .mcq-option {
    border: 1px solid #000 !important;
  }
}
