/* CSS Variables for Easy Color Management */
:root {
  --primary-color: #049f82;
  --primary-hover: #055f4f;
  --primary-light: #e3f2fd;
  --secondary-color: #d9534f;
  --secondary-hover: #c9302c;
  --secondary-light: #ffebee;
  --success-color: #28a745;
  --warning-color: #ffc107;
  --info-color: #17a2b8;
  --dark-color: #1e293b;
  --light-gray: #f8fafc;
  --border-color: #e1e4e8;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Quiz Header Section */
.quiz-header-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, #014d8f 100%);
  color: white;
  padding: 12px 350px;
  margin-bottom: 0;
}
/* ========================================
   RESPONSIVE MEDIA QUERIES
   Quiz Templates (Set 1 & Set 2) + Single Quiz Template
   ======================================== */

/* ========================================
   LARGE DESKTOP (1920px and above)
   ======================================== */
@media (min-width: 1920px) {
  .quiz-page-wrapper {
    max-width: 1600px;
  }

  .quiz-main-content,
  .exam-main-content {
    grid-template-columns: 45% 55%;
    gap: 3rem;
  }

  .pdf-section {
    height: 900px;
  }
}

/* ========================================
   DESKTOP (1440px - 1919px)
   ======================================== */
@media (min-width: 1440px) and (max-width: 1919px) {
  .quiz-main-content,
  .exam-main-content {
    grid-template-columns: 42% 58%;
  }

  .pdf-section {
    height: 850px;
  }
}

/* ========================================
   LAPTOP (1024px - 1439px)
   ======================================== */
@media (min-width: 1024px) and (max-width: 1439px) {
  .quiz-page-wrapper {
    max-width: 100%;
    padding: 0 15px;
  }

  .quiz-main-content,
  .exam-main-content {
    grid-template-columns: 40% 60%;
    gap: 1.5rem;
  }

  .pdf-section {
    height: 750px;
    top: 180px;
  }

  .mcq-section,
  .submission-section {
    max-height: calc((100vh - 220px) * 1.2);
  }
}

/* ========================================
   TABLET LANDSCAPE (768px - 1023px)
   ======================================== */
@media (min-width: 768px) and (max-width: 1023px) {
  /* Header Adjustments */
  .quiz-header-section {
    padding: 1.5rem 0;
  }

  .quiz-title {
    font-size: 2rem;
  }

  .quiz-info-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .info-item {
    padding: 0.75rem;
    min-height: auto;
  }

  /* Main Content - Switch to Single Column */
  .quiz-main-content,
  .exam-main-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* PDF Section - Becomes Sticky Top */
  .pdf-section {
    position: sticky;
    top: 160px;
    height: 600px;
    order: -1;
    margin-bottom: 1rem;
  }

  /* MCQ/Submission Section */
  .mcq-section,
  .submission-section {
    max-height: none;
    margin-bottom: 1rem;
  }

  /* Control Panel Adjustments */
  .quiz-header-bar,
  .exam-header-bar {
    padding: 0.75rem 1.5rem;
    flex-wrap: wrap;
  }

  .quiz-title-small,
  .exam-title-small {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    width: 100%;
  }

  .marking-scheme-info,
  .exam-info-bar {
    padding: 0.5rem 1.5rem;
    flex-wrap: wrap;
    font-size: 0.85rem;
  }

  /* PDF Controls */
  .pdf-controls {
    flex-wrap: wrap;
    gap: 0.25rem;
  }

  .btn-pdf-control {
    padding: 0.4rem 0.6rem;
    font-size: 0.85rem;
  }

  .page-info {
    font-size: 0.85rem;
  }

  /* MCQ Options - Keep Horizontal */
  .mcq-options {
    gap: 0.4rem;
  }

  .option-label {
    padding: 0.4rem 0.6rem;
    min-width: 55px;
  }

  /* Set 2 - Upload Sections */
  .questions-upload-container {
    gap: 1rem;
  }

  .question-upload-section {
    padding: 1rem;
  }

  /* User Info Section */
  .user-info-card {
    padding: 1.5rem;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   TABLET PORTRAIT (600px - 767px)
   ======================================== */
@media (min-width: 600px) and (max-width: 767px) {
  /* Header */
  .quiz-header-section {
    padding: 1.25rem 0;
  }

  .quiz-title {
    font-size: 1.75rem;
  }

  .quiz-info-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }

  .info-item {
    padding: 0.65rem;
    font-size: 0.9rem;
  }

  .info-value {
    font-size: 1.1rem;
  }

  /* Main Content */
  .quiz-main-content,
  .exam-main-content {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  /* PDF Section */
  .pdf-section {
    position: relative;
    top: auto;
    height: 500px;
    order: -1;
  }

  /* Control Panel */
  .quiz-control-panel,
  .exam-control-panel {
    position: relative;
  }

  .quiz-header-bar,
  .exam-header-bar {
    padding: 0.85rem 1.5rem;
  }

  .quiz-title-small,
  .exam-title-small {
    font-size: 1.05rem;
  }

  .exam-timer-container {
    padding: 0.65rem 1rem;
    gap: 1rem;
  }

  .exam-timer {
    font-size: 0.95rem;
  }

  .btn-submit-quiz,
  .btn-submit-exam {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }

  .btn-submit-quiz:hover,
  .btn-submit-exam:hover {
    background: rgb(1, 117, 1);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(3, 151, 3, 0.3);
  }
  .exam-timer-container {
    padding: 0.65rem 1rem;
  }

  .marking-scheme-info,
  .exam-info-bar {
    padding: 0.65rem 1rem;
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  /* MCQ Section */
  .mcq-section,
  .submission-section {
    padding: 1rem;
  }

  .mcq-grid {
    gap: 0.75rem;
  }

  .mcq-question {
    padding: 0.75rem;
  }

  /* PDF Controls */
  .pdf-header {
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.75rem;
  }

  .pdf-controls {
    flex-direction: column;
    width: 100%;
    gap: 0.5rem;
  }

  .pdf-controls > * {
    width: 100%;
    justify-content: center;
  }

  .pdf-tools {
    justify-content: center;
    gap: 0.5rem;
  }

  /* User Info */
  .user-info-card {
    padding: 1.25rem;
  }

  .btn-start-quiz,
  .btn-start-exam {
    padding: 0.85rem 1.5rem;
    font-size: 1rem;
  }
}

/* ========================================
   MOBILE LARGE (480px - 599px)
   ======================================== */
@media (min-width: 480px) and (max-width: 599px) {
  /* Header */
  .quiz-header-section {
    padding: 1rem 0;
  }

  .quiz-title {
    font-size: 1.5rem;
    line-height: 1.3;
  }

  .quiz-user-info {
    font-size: 0.9rem;
  }

  .quiz-info-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }

  .info-item {
    padding: 0.5rem;
    min-height: auto;
  }

  .info-label {
    font-size: 0.8rem;
  }

  .info-value {
    font-size: 1rem;
  }

  /* Page Wrapper */
  .quiz-page-wrapper {
    margin: 0;
    padding: 0;
  }

  .quiz-content-area {
    border-radius: 0;
    min-width: auto;
  }

  /* Main Content */
  .quiz-main-content,
  .exam-main-content {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  /* PDF Section - Top */
  .pdf-section {
    position: relative;
    top: auto;
    height: 450px;
    order: -1;
    margin-bottom: 0.75rem;
    border-radius: 8px;
  }

  /* Control Panel */
  .quiz-header-bar,
  .exam-header-bar {
    padding: 0.75rem 1rem;
  }

  .quiz-title-small,
  .exam-title-small {
    font-size: 0.95rem;
  }

  .exam-timer-container {
    padding: 0.6rem 1rem;
    gap: 0.75rem;
    flex-wrap: wrap;
  }

  .exam-timer {
    font-size: 0.9rem;
    flex: 1 1 100%;
    text-align: center;
  }

  .quiz-actions,
  .exam-actions {
    flex: 1 1 100%;
  }

  .btn-submit-quiz,
  .btn-submit-exam {
    width: 100%;
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
  }

  .marking-scheme-info,
  .exam-info-bar {
    flex-direction: column;
    padding: 0.5rem;
    gap: 0.35rem;
    font-size: 0.8rem;
  }

  /* MCQ Section */
  .mcq-section,
  .submission-section {
    padding: 0.75rem;
    border-radius: 8px;
  }

  .answer-sheet-header,
  .submission-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 1rem;
  }

  .answer-sheet-header h4,
  .submission-header h4 {
    font-size: 1.1rem;
  }

  .progress-indicator {
    font-size: 0.85rem;
  }

  .mcq-grid {
    gap: 0.65rem;
  }

  .mcq-question {
    padding: 0.65rem;
  }

  .question-number {
    width: 28px;
    height: 28px;
    font-size: 0.9rem;
  }

  .mcq-options {
    gap: 0.35rem;
  }

  .option-label {
    padding: 0.4rem 0.6rem;
    min-width: 50px;
  }

  .option-text {
    font-size: 0.95rem;
  }

  /* PDF Controls */
  .pdf-header {
    flex-direction: column;
    padding: 0.65rem;
    gap: 0.5rem;
  }

  .pdf-header h4 {
    font-size: 1rem;
  }

  .pdf-controls {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem;
  }

  .btn-pdf-control {
    padding: 0.35rem 0.5rem;
    font-size: 0.8rem;
  }

  .page-info {
    font-size: 0.8rem;
  }

  .btn-pdf-tool {
    padding: 0.25rem 0.45rem;
    font-size: 0.75rem;
  }

  /* Set 2 - Upload Sections */
  .questions-upload-container {
    gap: 0.75rem;
  }

  .question-upload-section {
    padding: 0.75rem;
    border-radius: 8px;
  }

  .question-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .question-title {
    font-size: 1rem;
  }

  .upload-zone {
    padding: 1rem;
  }

  .upload-icon {
    font-size: 2rem;
  }

  .main-text {
    font-size: 0.9rem;
  }

  .sub-text {
    font-size: 0.75rem;
  }

  .btn-upload {
    padding: 0.65rem 1.25rem;
    font-size: 0.9rem;
  }

  /* User Info Section */
  .user-info-section {
    padding: 1rem;
  }

  .user-info-card {
    padding: 1rem;
  }

  .user-info-card h3 {
    font-size: 1.25rem;
  }

  .quiz-instructions li {
    font-size: 0.9rem;
    padding: 0.4rem 0;
  }

  .btn-start-quiz,
  .btn-start-exam {
    padding: 0.75rem 1.25rem;
    font-size: 0.95rem;
  }

  /* Results */
  .quiz-results {
    padding: 1rem;
  }

  .results-container {
    padding: 1rem;
  }

  .success-icon {
    font-size: 2.5rem;
  }

  .results-header h3 {
    font-size: 1.25rem;
  }
}

/* ========================================
   MOBILE MEDIUM (375px - 479px)
   ======================================== */
@media (min-width: 375px) and (max-width: 479px) {
  /* Header */
  .quiz-header-section {
    padding: 0.85rem 0;
  }

  .quiz-title {
    font-size: 1.35rem;
    line-height: 1.2;
  }

  .quiz-user-info {
    font-size: 0.85rem;
  }

  .quiz-categories {
    margin-bottom: 1rem;
  }

  .quiz-category-tag {
    font-size: 0.8rem;
    padding: 0.2rem 0.6rem;
  }

  .quiz-info-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
  }

  .info-item {
    padding: 0.45rem;
  }

  .info-label {
    font-size: 0.75rem;
  }

  .info-value {
    font-size: 0.95rem;
  }

  /* Main Content */
  .quiz-main-content,
  .exam-main-content {
    padding: 0.65rem;
    gap: 0.65rem;
  }

  /* PDF Section */
  .pdf-section {
    height: 400px;
    border-radius: 6px;
  }

  /* Control Panel */
  .quiz-header-bar,
  .exam-header-bar {
    padding: 0.65rem 0.75rem;
  }

  .quiz-title-small,
  .exam-title-small {
    font-size: 0.9rem;
  }

  .exam-timer-container {
    padding: 0.55rem 0.75rem;
    gap: 0.65rem;
    flex-direction: column;
  }

  .exam-timer {
    font-size: 0.85rem;
    width: 100%;
    text-align: center;
  }

  .timer-display {
    font-size: 0.95rem;
  }

  .quiz-actions,
  .exam-actions {
    width: 100%;
  }

  .btn-submit-quiz,
  .btn-submit-exam {
    width: 100%;
    padding: 0.55rem 0.85rem;
    font-size: 0.8rem;
  }

  /* MCQ Section */
  .mcq-section,
  .submission-section {
    padding: 0.65rem;
  }

  .answer-sheet-header h4,
  .submission-header h4 {
    font-size: 1rem;
  }

  .mcq-question {
    padding: 0.6rem;
  }

  .question-number {
    width: 26px;
    height: 26px;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
  }

  .mcq-options {
    gap: 0.3rem;
  }

  .option-label {
    padding: 0.35rem 0.55rem;
    min-width: 48px;
  }

  .option-text {
    font-size: 0.9rem;
    padding: 0.2rem 0.4rem;
  }

  /* PDF Controls */
  .pdf-header {
    padding: 0.6rem;
  }

  .pdf-header h4 {
    font-size: 0.95rem;
  }

  .btn-pdf-control {
    padding: 0.3rem 0.45rem;
    font-size: 0.75rem;
  }

  .btn-pdf-tool {
    padding: 0.2rem 0.4rem;
    font-size: 0.7rem;
  }

  /* Set 2 Uploads */
  .question-upload-section {
    padding: 0.65rem;
  }

  .question-title {
    font-size: 0.95rem;
  }

  .upload-zone {
    padding: 0.85rem;
  }

  .upload-icon {
    font-size: 1.75rem;
  }

  .main-text {
    font-size: 0.85rem;
  }

  .sub-text {
    font-size: 0.7rem;
  }

  .btn-upload {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
  }

  /* User Info */
  .user-info-card {
    padding: 0.85rem;
  }

  .user-info-card h3 {
    font-size: 1.15rem;
  }

  .quiz-instructions h4 {
    font-size: 1rem;
  }

  .quiz-instructions li {
    font-size: 0.85rem;
  }
}

/* ========================================
   MOBILE SMALL (320px - 374px)
   ======================================== */
@media (max-width: 374px) {
  /* Header */
  .quiz-header-section {
    padding: 0.75rem 0;
  }

  .quiz-title {
    font-size: 1.2rem;
    line-height: 1.2;
  }

  .quiz-user-info {
    font-size: 0.8rem;
  }

  .quiz-category-tag {
    font-size: 0.75rem;
    padding: 0.15rem 0.5rem;
  }

  .quiz-info-grid {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .info-item {
    padding: 0.4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .info-label,
  .info-value {
    display: inline-block;
    font-size: 0.8rem;
  }

  /* Main Content */
  .quiz-main-content,
  .exam-main-content {
    padding: 0.5rem;
    gap: 0.5rem;
  }

  /* PDF Section */
  .pdf-section {
    height: 350px;
    border-radius: 4px;
  }

  /* Control Panel */
  .quiz-header-bar,
  .exam-header-bar {
    padding: 0.6rem 0.65rem;
  }

  .quiz-title-small,
  .exam-title-small {
    font-size: 0.85rem;
    line-height: 1.2;
  }

  .exam-timer-container {
    padding: 0.5rem 0.65rem;
    gap: 0.5rem;
    flex-direction: column;
  }

  .exam-timer {
    font-size: 0.8rem;
    width: 100%;
    text-align: center;
  }

  .timer-icon {
    font-size: 0.85rem;
  }

  .timer-display {
    font-size: 0.9rem;
  }

  .quiz-actions,
  .exam-actions {
    width: 100%;
  }

  .btn-submit-quiz,
  .btn-submit-exam {
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
  }

  .marking-scheme-info,
  .exam-info-bar {
    padding: 0.4rem;
    font-size: 0.75rem;
    gap: 0.25rem;
  }

  /* MCQ Section */
  .mcq-section,
  .submission-section {
    padding: 0.5rem;
  }

  .answer-sheet-header,
  .submission-header {
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
  }

  .answer-sheet-header h4,
  .submission-header h4 {
    font-size: 0.95rem;
  }

  .progress-indicator {
    font-size: 0.75rem;
  }

  .mcq-grid {
    gap: 0.5rem;
  }

  .mcq-question {
    padding: 0.5rem;
  }

  .question-number {
    width: 24px;
    height: 24px;
    font-size: 0.8rem;
    margin-bottom: 0.65rem;
  }

  .mcq-options {
    gap: 0.25rem;
  }

  .option-label {
    padding: 0.3rem 0.5rem;
    min-width: 45px;
  }

  .option-text {
    font-size: 0.85rem;
    padding: 0.15rem 0.35rem;
  }

  /* PDF Controls */
  .pdf-header {
    padding: 0.5rem;
  }

  .pdf-header h4 {
    font-size: 0.9rem;
  }

  .pdf-controls {
    gap: 0.25rem;
  }

  .btn-pdf-control {
    padding: 0.25rem 0.4rem;
    font-size: 0.7rem;
  }

  .page-info {
    font-size: 0.7rem;
    margin: 0 0.25rem;
  }

  .pdf-tools {
    gap: 0.2rem;
  }

  .btn-pdf-tool {
    padding: 0.15rem 0.35rem;
    font-size: 0.65rem;
  }

  /* Set 2 Uploads */
  .questions-upload-container {
    gap: 0.5rem;
  }

  .question-upload-section {
    padding: 0.5rem;
  }

  .question-header {
    gap: 0.4rem;
  }

  .question-title {
    font-size: 0.9rem;
  }

  .status-indicator {
    font-size: 0.7rem;
  }

  .file-count {
    font-size: 0.7rem;
  }

  .upload-zone {
    padding: 0.75rem;
  }

  .upload-icon {
    font-size: 1.5rem;
  }

  .main-text {
    font-size: 0.8rem;
  }

  .sub-text {
    font-size: 0.65rem;
  }

  .btn-upload {
    padding: 0.5rem 0.85rem;
    font-size: 0.8rem;
  }

  /* User Info */
  .user-info-section {
    padding: 0.75rem 0.5rem;
  }

  .user-info-card {
    padding: 0.75rem;
  }

  .user-info-card h3 {
    font-size: 1.05rem;
  }

  .quiz-instructions {
    padding: 1rem;
  }

  .quiz-instructions h4 {
    font-size: 0.95rem;
  }

  .quiz-instructions li {
    font-size: 0.8rem;
    padding: 0.35rem 0;
    padding-left: 1.25rem;
  }

  .btn-start-quiz,
  .btn-start-exam {
    padding: 0.65rem 1rem;
    font-size: 0.9rem;
  }

  /* Results */
  .quiz-results {
    padding: 0.75rem;
  }

  .results-container {
    padding: 0.85rem;
  }

  .success-icon {
    font-size: 2rem;
  }

  .results-header h3 {
    font-size: 1.1rem;
  }

  .completion-message,
  .results-info {
    font-size: 0.85rem;
  }

  .btn-go-home {
    padding: 0.65rem 1rem;
    font-size: 0.85rem;
  }
}

/* ========================================
   LANDSCAPE ORIENTATION FIXES
   ======================================== */
@media (max-height: 600px) and (orientation: landscape) {
  .pdf-section {
    height: 400px !important;
  }

  .mcq-section,
  .submission-section {
    max-height: 400px;
  }

  .user-info-card {
    max-height: 500px;
    overflow-y: auto;
  }

  .quiz-instructions {
    max-height: 300px;
    overflow-y: auto;
  }
  .exam-timer-container {
    padding: 0.5rem 1rem;
  }

  .exam-timer {
    font-size: 0.85rem;
  }

  .btn-submit-quiz,
  .btn-submit-exam {
    padding: 0.45rem 1rem;
    font-size: 0.8rem;
  }
}

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {
  .quiz-control-panel,
  .exam-control-panel,
  .pdf-header,
  .btn-submit-quiz,
  .btn-submit-exam,
  .user-info-section {
    display: none !important;
  }

  .quiz-main-content,
  .exam-main-content {
    grid-template-columns: 1fr;
  }

  .mcq-section,
  .submission-section {
    max-height: none;
  }

  .pdf-section {
    position: relative;
    height: auto;
  }
}

/* ========================================
   ACCESSIBILITY ENHANCEMENTS
   ======================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  .option-label {
    border-width: 3px;
  }

  .option-label:has(input:checked) {
    outline: 3px solid;
    outline-offset: 2px;
  }

  .btn-pdf-control,
  .btn-submit-quiz,
  .btn-submit-exam {
    border: 2px solid currentColor;
  }
}

.quiz-header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.quiz-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-align: center;
  color: white;
}

.quiz-categories {
  text-align: center;
  margin-bottom: 1.5rem;
}

.categories-label {
  font-weight: 600;
  margin-right: 0.5rem;
}

.quiz-category-tag {
  background: rgba(255, 255, 255, 0.2);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  margin: 0 0.25rem;
  font-size: 0.9rem;
}

.quiz-info-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  max-width: 800px;
  margin: 0 auto;
}

.quiz-user-info {
  text-align: center;
}

.info-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 1rem;
  border-radius: 10px;
  text-align: center;
  backdrop-filter: blur(10px);
  min-height: 113px;
}

.info-label {
  display: block;
  font-size: 0.9rem;
  opacity: 0.9;
  margin-bottom: 0.5rem;
}

.info-value {
  display: block;
  font-size: 1.2rem;
  font-weight: 600;
}

/* Container */
.pdf-mcq-container {
  max-width: 100%;
  margin: 0 auto;
  background: var(--light-gray);
  min-height: 100vh;
}

/* User Info Section */
.user-info-section {
  padding: 2rem 1rem;
  background: var(--light-gray);
}

.user-info-card {
  max-width: 800px;
  margin: 0 auto;
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.user-info-card h3 {
  color: var(--dark-color);
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
}

.info-description {
  color: #64748b;
  margin-bottom: 2rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.5rem;
}

.form-group input {
  padding: 0.75rem;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.2s;
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary-color);
}

.quiz-instructions,
.exam-instructions {
  background: var(--primary-light);
  padding: 1.5rem;
  border-radius: 10px;
  margin-bottom: 2rem;
  border-left: 4px solid var(--primary-color);
}

.quiz-instructions h4,
.exam-instructions h4 {
  color: var(--dark-color);
  margin-bottom: 1rem;
}

.quiz-instructions ul {
  list-style: none;
  padding: 0;
}

.quiz-instructions li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.quiz-instructions li:before {
  content: "✓";
  color: var(--success-color);
  font-weight: bold;
  position: absolute;
  left: 0;
}

.btn-start-quiz,
.btn-start-exam {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--primary-hover) 100%
  );
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s;
  display: block;
  margin: 0 auto;
}

.btn-start-quiz:hover,
.btn-start-exam:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(1, 103, 187, 0.3);
}

/* QUIZ CONTROL PANEL - STICKY AT TOP */
.quiz-control-panel,
.exam-control-panel {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: white;
  border-bottom: 2px solid var(--border-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.quiz-header-bar,
.exam-header-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem 2rem;
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--primary-hover) 100%
  );
  color: white;
}

.quiz-title-small,
.exam-title-small {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0;
}

.btn-submit-quiz,
.btn-submit-exam {
  background: rgb(3, 151, 3);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn-submit-quiz:hover,
.btn-submit-exam:hover {
  background: rgb(1, 117, 1);
}

.exam-timer-container {
  background: var(--dark-color);
  color: white;
  padding: 0.75rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.exam-timer {
  font-size: 1.1rem;
  font-weight: 600;
  flex: 1;
}

.timer-icon {
  margin-right: 0.5rem;
}

.timer-display {
  color: var(--warning-color);
  font-weight: bold;
}

.marking-scheme-info,
.exam-info-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 2rem;
  background: var(--light-gray);
  font-size: 0.9rem;
}

.positive-marking {
  color: var(--success-color);
  font-weight: 600;
}

.negative-marking {
  color: var(--secondary-color);
  font-weight: 600;
}

/* MAIN CONTENT AREA */
.quiz-main-content,
.exam-main-content {
  display: grid;
  grid-template-columns: 40% 60%;
  gap: 2rem;
  min-height: calc(100vh - 200px);
}

/* MCQ SECTION - LEFT SIDE */
.mcq-section,
.submission-section {
  background: white;
  border-radius: 15px;
  padding: 1.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  height: fit-content;
  max-height: calc((100vh - 220px) * 1.4);
  overflow-y: auto;
  position: relative;
}

.answer-sheet-header,
.submission-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--border-color);
}

.answer-sheet-header h4,
.submission-header h4 {
  color: var(--dark-color);
  font-size: 1.3rem;
}

.progress-indicator {
  color: #64748b;
  font-size: 0.9rem;
}

/* MCQ GRID - ONE QUESTION PER ROW */
.mcq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.mcq-question {
  background: var(--light-gray);
  border: 2px solid var(--border-color);
  border-radius: 10px;
  padding: 1rem;
  transition: border-color 0.2s;
}

.mcq-question:hover {
  border-color: var(--primary-color);
}

.question-number {
  background: var(--primary-color);
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  margin-bottom: 1rem;
}

/* HORIZONTAL MCQ OPTIONS */
.mcq-options {
  display: ruby-text;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.option-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  background: white;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  transition: all 0.2s;
  min-width: 60px;
  justify-content: center;
}

.option-label:hover {
  border-color: var(--primary-color);
  background: var(--primary-light);
}

.option-label input[type="radio"] {
  display: none;
}

.option-label input[type="radio"]:checked + .option-text {
  background: var(--primary-color);
  color: white;
}

.option-label:has(input:checked) {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.option-text {
  font-weight: 600;
  font-size: 1rem;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  transition: all 0.2s;
}

/* PDF SECTION - RIGHT SIDE - STICKY */
.pdf-section {
  position: sticky;
  top: 200px;
  height: 800px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.pdf-header {
  background: var(--dark-color);
  color: white;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.pdf-header h4 {
  margin: 0;
  font-size: 1.1rem;
}

.pdf-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-pdf-control {
  background: #374151;
  color: white;
  border: none;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background-color 0.2s;
}

.btn-pdf-control:hover {
  background: #4b5563;
}

.page-info {
  color: #d1d5db;
  font-size: 0.9rem;
  margin: 0 0.5rem;
}

.pdf-tools {
  display: flex;
  gap: 0.25rem;
  margin-left: 0.5rem;
}

.btn-pdf-tool {
  background: #374151;
  color: white;
  border: none;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.8rem;
}

.btn-pdf-tool:hover {
  background: #4b5563;
}

.pdf-viewer-container {
  flex: 1;
  overflow: auto;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  scroll-behavior: smooth;
}

#pdf-canvas {
  max-width: 100%;
  max-height: 100%;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.pdf-loading {
  text-align: center;
  color: #64748b;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--border-color);
  border-top: 4px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.loading-text {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.loading-fallback {
  font-size: 0.9rem;
}

.loading-fallback a {
  color: var(--primary-color);
  text-decoration: none;
}

.loading-fallback a:hover {
  text-decoration: underline;
}

/* ===================================
   PDF MCQ Dashboard Styles
   =================================== */

/* Login/Register Wrapper */
.pdf-mcq-login-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
  padding: 40px 20px;
}

.pdf-mcq-login-box {
  background: white;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
  max-width: 400px;
  width: 100%;
}

.pdf-mcq-login-box h2 {
  margin: 0 0 15px 0;
  color: #333;
  font-size: 24px;
}

.pdf-mcq-login-box p {
  margin: 0 0 25px 0;
  color: #666;
}

.pdf-mcq-login-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Dashboard Container */
.pdf-mcq-dashboard-wrapper {
  max-width: 1550px;
  margin: 0 auto;
  padding: 0px;
}

.pdf-mcq-dashboard-container {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

/* Dashboard Header */
.pdf-mcq-dashboard-header {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--primary-hover) 100%
  );
  color: white;
  padding: 30px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.pdf-mcq-header-content {
  flex: 1;
  min-width: 250px;
}

.pdf-mcq-dashboard-title {
  margin: 0 0 8px 0;
  font-size: 28px;
  font-weight: 600;
  color: white;
}

.pdf-mcq-dashboard-subtitle {
  margin: 0;
  font-size: 16px;
  opacity: 0.9;
  color: white;
}

.pdf-mcq-header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.pdf-mcq-user-email {
  font-size: 14px;
  opacity: 0.9;
  display: none;
}

.pdf-mcq-logout-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.pdf-mcq-logout-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.pdf-mcq-logout-icon {
  font-size: 18px;
}

/* Dashboard Body with Sidebar */
.pdf-mcq-dashboard-body {
  display: flex;
  min-height: 600px;
}

/* Sidebar */
.pdf-mcq-dashboard-sidebar {
  width: 250px;
  background: var(--light-gray);
  border-right: 1px solid var(--border-color);
  padding: 20px 0;
}

.pdf-mcq-sidebar-nav {
  display: flex;
  flex-direction: column;
}

.pdf-mcq-sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  color: #666;
  text-decoration: none;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
  position: relative;
}

.pdf-mcq-sidebar-link:hover:not(.disabled) {
  background: #e8eaed;
  color: var(--primary-color);
}

.pdf-mcq-sidebar-link.active {
  background: white;
  color: var(--primary-color);
  border-left-color: var(--primary-color);
  font-weight: 600;
}

.pdf-mcq-sidebar-link.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pdf-mcq-sidebar-icon {
  font-size: 20px;
  min-width: 24px;
  text-align: center;
}

.pdf-mcq-sidebar-text {
  flex: 1;
  font-size: 15px;
}

.pdf-mcq-coming-soon {
  font-size: 11px;
  background: var(--warning-color);
  color: white;
  padding: 2px 6px;
  border-radius: 10px;
  font-weight: 600;
}

.pdf-mcq-sidebar-logout {
  display: none;
  margin-top: auto;
  border-top: 1px solid #e0e0e0;
  padding-top: 15px;
  margin-top: 15px;
  color: var(--secondary-color) !important;
}

.pdf-mcq-sidebar-logout:hover {
  background: var(--secondary-light) !important;
}

/* Main Content Area */
.pdf-mcq-dashboard-main {
  flex: 1;
  padding: 30px 40px;
  overflow-y: auto;
}

/* Tab Content */
.pdf-mcq-tab-content {
  display: none;
}

.pdf-mcq-tab-content.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

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

/* Loading Spinner */
.pdf-mcq-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  color: #666;
}

.pdf-mcq-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}

/* Messages */
.pdf-mcq-message {
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  margin: 20px 0;
}

.pdf-mcq-message.pdf-mcq-info {
  background: var(--primary-light);
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
}

.pdf-mcq-message.pdf-mcq-error {
  background: var(--secondary-light);
  color: var(--secondary-color);
  border: 1px solid var(--secondary-color);
}

.pdf-mcq-icon {
  font-size: 24px;
  display: block;
  margin-bottom: 10px;
}

/* VIEW TOGGLE CONTROLS */
.pdf-mcq-view-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.pdf-mcq-view-toggle {
  display: flex;
  gap: 8px;
  background: white;
  padding: 4px;
  border-radius: 8px;
  border: 2px solid var(--border-color);
}

.pdf-mcq-view-btn {
  padding: 8px 16px;
  border: none;
  background: transparent;
  color: #666;
  cursor: pointer;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
}

.pdf-mcq-view-btn:hover {
  background: var(--light-gray);
}

.pdf-mcq-view-btn.active {
  background: var(--primary-color);
  color: white;
}

.pdf-mcq-view-icon {
  font-size: 18px;
}

/* Search Box */
.pdf-mcq-results-header {
  margin-bottom: 24px;
}

.pdf-mcq-search-box {
  display: flex;
  gap: 12px;
  max-width: 500px;
}

.pdf-mcq-search-box input[type="text"] {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-size: 15px;
  transition: border-color 0.3s;
}

.pdf-mcq-search-box input[type="text"]:focus {
  outline: none;
  border-color: var(--primary-color);
}

.pdf-mcq-search-button {
  padding: 12px 24px;
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--primary-hover) 100%
  );
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.2s;
}

.pdf-mcq-search-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(1, 103, 187, 0.3);
}

/* Exam Cards Grid */
.pdf-mcq-exams-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 20px;
}

.pdf-mcq-exam-card {
  background: white;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 24px;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pdf-mcq-exam-card:hover {
  border-color: var(--primary-color);
  box-shadow: 0 4px 16px rgba(1, 103, 187, 0.15);
  transform: translateY(-2px);
}

.pdf-mcq-exam-card.mcq-quiz {
  border-left: 4px solid var(--secondary-color);
}

.pdf-mcq-exam-card.pdf-submission {
  border-left: 4px solid var(--warning-color);
}

/* LIST VIEW STYLES */
.pdf-mcq-exams-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 20px;
}

.pdf-mcq-exam-card.list-view {
  flex-direction: row;
  align-items: center;
  gap: 24px;
  padding: 20px 24px;
}

.pdf-mcq-exam-card.list-view .pdf-mcq-exam-header {
  flex: 1;
  margin: 0;
}

.pdf-mcq-exam-card.list-view .pdf-mcq-exam-info {
  display: flex;
  flex-direction: row;
  gap: 24px;
  padding: 0;
  border: none;
  flex: 0 0 auto;
  min-width: 400px;
}

.pdf-mcq-exam-card.list-view .pdf-mcq-exam-info-item {
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.pdf-mcq-exam-card.list-view .pdf-mcq-exam-actions {
  flex: 0 0 auto;
  margin: 0;
  min-width: 150px;
}

.pdf-mcq-exam-card.list-view .pdf-mcq-exam-categories {
  margin-top: 8px;
}

.pdf-mcq-exam-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.pdf-mcq-exam-title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #333;
  line-height: 1.4;
  flex: 1;
}

.pdf-mcq-exam-type {
  background: #f0f0f0;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 13px;
  white-space: nowrap;
  font-weight: 500;
}

.pdf-mcq-exam-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pdf-mcq-category-badge {
  background: var(--primary-light);
  color: var(--primary-color);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
}

.pdf-mcq-exam-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 0;
  border-top: 1px solid #f0f0f0;
  border-bottom: 1px solid #f0f0f0;
}

.pdf-mcq-exam-info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}

.pdf-mcq-info-label {
  color: #666;
  font-weight: 500;
}

.pdf-mcq-info-value {
  color: #333;
  font-weight: 600;
}

.pdf-mcq-exam-actions {
  margin-top: auto;
}

/* Payment Badge */
.pdf-mcq-payment-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--warning-color) 0%, #e0a800 100%);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  margin-top: 10px;
}

/* Buttons */
.pdf-mcq-btn {
  display: inline-block;
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
}

.pdf-mcq-btn-primary {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--primary-hover) 100%
  );
  color: white;
}

.pdf-mcq-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(1, 103, 187, 0.4);
  color: white;
}

.pdf-mcq-btn-secondary {
  background: white;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.pdf-mcq-btn-secondary:hover {
  background: var(--primary-color);
  color: black;
}

/* Results Section */
.pdf-mcq-results-list {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.pdf-mcq-results-table {
  width: 100%;
  border-collapse: collapse;
}

.pdf-mcq-results-table thead {
  background: var(--light-gray);
}

.pdf-mcq-results-table th {
  padding: 16px;
  text-align: left;
  font-weight: 600;
  color: #333;
  font-size: 14px;
  border-bottom: 2px solid var(--border-color);
}

.pdf-mcq-results-table td {
  padding: 16px;
  border-bottom: 1px solid #f0f0f0;
  font-size: 14px;
  color: #555;
}

.pdf-mcq-results-table tbody tr:hover {
  background: #f9fafb;
}

.pdf-mcq-result-title-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pdf-mcq-type-icon {
  font-size: 18px;
}

.pdf-mcq-result-name {
  font-weight: 500;
  color: #333;
}

.pdf-mcq-score-details {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pdf-mcq-marks-display {
  font-weight: 600;
  color: #333;
  font-size: 15px;
}

.pdf-mcq-score-breakdown {
  display: flex;
  gap: 12px;
  font-size: 13px;
}

.pdf-mcq-score-breakdown .correct {
  color: var(--success-color);
}

.pdf-mcq-score-breakdown .incorrect {
  color: var(--secondary-color);
}

.pdf-mcq-score-breakdown .unanswered {
  color: var(--warning-color);
}

.pdf-mcq-pending-text {
  color: #999;
  font-style: italic;
}

/* Status Badges */
.pdf-mcq-status-badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pdf-mcq-status-badge.status-published,
.pdf-mcq-status-badge.status-reviewed {
  background: #e8f5e9;
  color: var(--success-color);
}

.pdf-mcq-status-badge.status-pending {
  background: #fff3e0;
  color: var(--warning-color);
}

.pdf-mcq-btn-view {
  padding: 8px 16px;
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--primary-hover) 100%
  );
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.pdf-mcq-btn-view:hover:not(.disabled) {
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(1, 103, 187, 0.3);
}

.pdf-mcq-btn-view.disabled {
  background: var(--border-color);
  color: #999;
  cursor: not-allowed;
}

/* Pagination */
.pdf-mcq-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  padding: 20px;
  background: var(--light-gray);
  border-radius: 8px;
}

.pdf-mcq-pagination-info {
  color: #666;
  font-size: 14px;
}

.pdf-mcq-pagination-buttons {
  display: flex;
  gap: 8px;
  align-items: center;
}

.pdf-mcq-pagination-btn {
  padding: 8px 12px;
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 14px;
  color: #333;
  cursor: pointer;
  transition: all 0.2s;
  min-width: 40px;
  text-align: center;
}

.pdf-mcq-pagination-btn:hover:not(.disabled):not(.active) {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.pdf-mcq-pagination-btn.active {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  font-weight: 600;
}

.pdf-mcq-pagination-btn.disabled {
  background: #f0f0f0;
  color: #ccc;
  cursor: not-allowed;
}

.pdf-mcq-pagination-ellipsis {
  padding: 0 8px;
  color: #999;
}

/* Modal */
.pdf-mcq-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  overflow: auto;
  animation: fadeIn 0.3s ease;
}

.pdf-mcq-modal-content {
  background-color: white;
  margin: 40px auto;
  padding: 0;
  border-radius: 12px;
  width: 90%;
  max-width: 1000px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  position: relative;
}

.pdf-mcq-modal-close {
  color: #999;
  position: sticky;
  top: 0;
  right: 0;
  float: right;
  font-size: 32px;
  font-weight: bold;
  padding: 10px 20px;
  background: white;
  z-index: 10;
  cursor: pointer;
  border-radius: 0 12px 0 0;
}

.pdf-mcq-modal-close:hover,
.pdf-mcq-modal-close:focus {
  color: #333;
}

/* Result Details */
.pdf-mcq-result-details {
  padding: 30px 40px;
}

.pdf-mcq-result-details h2 {
  margin: 0 0 20px 0;
  font-size: 26px;
  color: #333;
}

.pdf-mcq-detail-meta {
  display: flex;
  gap: 24px;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid #f0f0f0;
  font-size: 14px;
  color: #666;
}

.pdf-mcq-pdf-section {
  margin: 30px 0;
}

.pdf-mcq-pdf-section h3 {
  margin: 0 0 16px 0;
  font-size: 20px;
  color: #333;
}

.pdf-mcq-pdf-viewer {
  width: 100%;
  height: 600px;
  border: 2px solid var(--border-color);
  border-radius: 8px;
}

.pdf-mcq-results-section {
  margin: 30px 0;
}

.pdf-mcq-results-section h3 {
  margin: 0 0 20px 0;
  font-size: 20px;
  color: #333;
}

.pdf-mcq-summary-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  margin-bottom: 30px;
}

.pdf-mcq-summary-item {
  padding: 16px;
  border-radius: 8px;
  background: var(--light-gray);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pdf-mcq-summary-item.correct {
  background: #e8f5e9;
}

.pdf-mcq-summary-item.incorrect {
  background: var(--secondary-light);
}

.pdf-mcq-summary-item.unanswered {
  background: #fff3e0;
}

.pdf-mcq-summary-item.marks {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--primary-hover) 100%
  );
  color: white;
}

.pdf-mcq-summary-item .label {
  font-size: 13px;
  opacity: 0.8;
}

.pdf-mcq-summary-item .value {
  font-size: 24px;
  font-weight: 700;
}

.pdf-mcq-answers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.pdf-mcq-answer-item {
  border: 2px solid var(--border-color);
  border-radius: 8px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.2s ease;
}

.pdf-mcq-answer-item:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.pdf-mcq-answer-item.correct {
  border-color: var(--success-color);
  background: #f1f8f4;
}

.pdf-mcq-answer-item.incorrect {
  border-color: var(--secondary-color);
  background: #fef5f5;
}

.pdf-mcq-answer-item.unanswered {
  border-color: var(--warning-color);
  background: #fff8f0;
}

.pdf-mcq-answer-number {
  font-weight: 700;
  font-size: 14px;
  color: #666;
  min-width: 30px;
}

.pdf-mcq-answer-content {
  flex: 1;
  font-size: 13px;
}

.pdf-mcq-answer-row {
  margin-bottom: 4px;
  line-height: 1.4;
}

.pdf-mcq-answer-row:last-child {
  margin-bottom: 0;
}

.pdf-mcq-answer-status {
  font-size: 20px;
  font-weight: bold;
}

.pdf-mcq-answer-item.correct .pdf-mcq-answer-status {
  color: var(--success-color);
}

.pdf-mcq-answer-item.incorrect .pdf-mcq-answer-status {
  color: var(--secondary-color);
}

.pdf-mcq-answer-item.unanswered .pdf-mcq-answer-status {
  color: var(--warning-color);
}

/* Payment Modal */
.pdf-mcq-payment-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
}

.pdf-mcq-payment-modal-content {
  background-color: #fefefe;
  margin: 5% auto;
  padding: 0;
  border: none;
  border-radius: 12px;
  width: 90%;
  max-width: 600px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Auth Styles */
.pdf-mcq-auth-wrapper {
  max-width: 500px;
  margin: 40px auto;
  padding: 20px;
}

.pdf-mcq-auth-container {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 40px;
  border: 1px solid var(--border-color);
}

.pdf-mcq-auth-header {
  text-align: center;
  margin-bottom: 32px;
}

.pdf-mcq-auth-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--dark-color);
  margin: 0 0 8px 0;
}

.pdf-mcq-auth-subtitle {
  font-size: 15px;
  color: #6b7280;
  margin: 0;
}

.pdf-mcq-form-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(1, 103, 187, 0.1);
}

.pdf-mcq-auth-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.pdf-mcq-auth-link:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .pdf-mcq-dashboard-body {
    flex-direction: column;
  }

  .pdf-mcq-dashboard-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }

  .pdf-mcq-sidebar-nav {
    flex-direction: row;
    overflow-x: auto;
  }

  .pdf-mcq-sidebar-link {
    border-left: none;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
  }

  .pdf-mcq-sidebar-link.active {
    border-left: none;
    border-bottom-color: var(--primary-color);
  }
}

@media (max-width: 768px) {
  .quiz-main-content,
  .exam-main-content {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .pdf-section {
    position: relative;
    top: auto;
    height: 500px;
    order: -1;
  }

  .pdf-mcq-dashboard-wrapper {
    padding: 10px;
  }

  .pdf-mcq-dashboard-header {
    padding: 20px;
    flex-direction: column;
    align-items: flex-start;
  }

  .pdf-mcq-header-actions {
    width: 100%;
    justify-content: space-between;
  }

  .pdf-mcq-user-email {
    display: block;
    font-size: 12px;
  }

  .pdf-mcq-sidebar-logout {
    display: flex;
  }

  .pdf-mcq-dashboard-title {
    font-size: 22px;
  }

  .pdf-mcq-dashboard-subtitle {
    font-size: 14px;
  }

  .pdf-mcq-dashboard-main {
    padding: 20px;
  }

  .pdf-mcq-search-box {
    max-width: 100%;
  }

  .pdf-mcq-exams-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .pdf-mcq-exam-card.list-view {
    flex-direction: column;
    align-items: stretch;
  }

  .pdf-mcq-exam-card.list-view .pdf-mcq-exam-info {
    flex-direction: column;
    min-width: auto;
  }

  .pdf-mcq-exam-card.list-view .pdf-mcq-exam-actions {
    min-width: auto;
  }

  .pdf-mcq-view-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .pdf-mcq-view-toggle {
    justify-content: center;
  }

  .pdf-mcq-results-table thead {
    display: none;
  }

  .pdf-mcq-results-table,
  .pdf-mcq-results-table tbody,
  .pdf-mcq-results-table tr,
  .pdf-mcq-results-table td {
    display: block;
  }

  .pdf-mcq-results-table tr {
    margin-bottom: 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 12px;
    background: white;
  }

  .pdf-mcq-results-table td {
    padding: 8px 0;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .pdf-mcq-pagination {
    flex-direction: column;
    gap: 16px;
  }

  .pdf-mcq-pagination-buttons {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .quiz-title {
    font-size: 2rem;
  }

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

  .pdf-mcq-dashboard-title {
    font-size: 20px;
  }

  .pdf-mcq-exam-title {
    font-size: 16px;
  }

  .pdf-mcq-summary-stats {
    grid-template-columns: 1fr;
  }

  .pdf-mcq-search-box {
    flex-direction: column;
  }

  .pdf-mcq-search-button {
    width: 100%;
  }

  .pdf-mcq-coming-soon {
    display: none;
  }
}

/* Utility Classes */
.text-center {
  text-align: center;
}
.text-left {
  text-align: left;
}
.text-right {
  text-align: right;
}
.mb-1 {
  margin-bottom: 0.5rem;
}
.mb-2 {
  margin-bottom: 1rem;
}
.mb-3 {
  margin-bottom: 1.5rem;
}
.mt-1 {
  margin-top: 0.5rem;
}
.mt-2 {
  margin-top: 1rem;
}
.mt-3 {
  margin-top: 1.5rem;
}

/* Enhanced Mobile List View Styles - Add this to your CSS file */

/* Mobile-specific list view improvements */
@media (max-width: 768px) {
  /* List View Container */
  .pdf-mcq-exams-list {
    gap: 12px;
  }

  /* Grid View - Card style (default) */
  .pdf-mcq-exams-grid .pdf-mcq-exam-card {
    padding: 20px;
  }

  /* List View - Compact horizontal layout */
  .pdf-mcq-exams-list .pdf-mcq-exam-card {
    flex-direction: row;
    align-items: center;
    padding: 16px;
    gap: 12px;
  }

  /* List view header - more compact */
  .pdf-mcq-exams-list .pdf-mcq-exam-card .pdf-mcq-exam-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 17px;
    flex: 1;
    min-width: 0; /* Allow text truncation */
  }

  .pdf-mcq-exams-list .pdf-mcq-exam-card .pdf-mcq-exam-title {
    font-size: 15px;
    line-height: 1.3;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-width: 200px;
  }

  .pdf-mcq-exams-list .pdf-mcq-exam-card .pdf-mcq-exam-type {
    font-size: 11px;
    padding: 3px 8px;
  }

  /* List view categories - inline */
  .pdf-mcq-exams-list .pdf-mcq-exam-card .pdf-mcq-exam-categories {
    margin: 0;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .pdf-mcq-exams-list
    .pdf-mcq-exam-card
    .pdf-mcq-exam-categories::-webkit-scrollbar {
    display: none;
  }

  .pdf-mcq-exams-list .pdf-mcq-exam-card .pdf-mcq-category-badge {
    font-size: 11px;
    padding: 3px 8px;
    white-space: nowrap;
  }

  /* List view info - horizontal compact */
  .pdf-mcq-exams-list .pdf-mcq-exam-card .pdf-mcq-exam-info {
    flex-direction: row;
    gap: 12px;
    padding: 8px 0;
    border: none;
    flex-wrap: wrap;
    min-width: auto;
  }

  .pdf-mcq-exams-list .pdf-mcq-exam-card .pdf-mcq-exam-info-item {
    flex-direction: row;
    gap: 4px;
    font-size: 12px;
    white-space: nowrap;
  }

  .pdf-mcq-exams-list .pdf-mcq-exam-card .pdf-mcq-info-label {
    font-size: 12px;
  }

  .pdf-mcq-exams-list .pdf-mcq-exam-card .pdf-mcq-info-value {
    font-size: 12px;
  }

  /* List view actions - compact button */
  .pdf-mcq-exams-list .pdf-mcq-exam-card .pdf-mcq-exam-actions {
    margin: 0;
    min-width: auto;
    flex-shrink: 0;
  }

  .pdf-mcq-exams-list .pdf-mcq-exam-card .pdf-mcq-btn-primary {
    padding: 8px 16px;
    font-size: 13px;
    white-space: nowrap;
    width: auto;
  }

  /* Payment badge in list view */
  .pdf-mcq-exams-list .pdf-mcq-exam-card .pdf-mcq-payment-badge {
    margin: 0;
    font-size: 11px;
    padding: 4px 10px;
  }

  /* Grid view maintains card style */
  .pdf-mcq-exams-grid .pdf-mcq-exam-card {
    flex-direction: column;
    gap: 16px;
  }

  .pdf-mcq-exams-grid .pdf-mcq-exam-card .pdf-mcq-exam-header {
    flex-direction: row;
    justify-content: space-between;
  }

  .pdf-mcq-exams-grid .pdf-mcq-exam-card .pdf-mcq-exam-title {
    font-size: 16px;
  }

  .pdf-mcq-exams-grid .pdf-mcq-exam-card .pdf-mcq-exam-info {
    flex-direction: column;
    gap: 10px;
    padding: 12px 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
  }

  .pdf-mcq-exams-grid .pdf-mcq-exam-card .pdf-mcq-exam-info-item {
    flex-direction: row;
    justify-content: space-between;
    font-size: 14px;
  }

  .pdf-mcq-exams-grid .pdf-mcq-exam-card .pdf-mcq-btn-primary {
    width: 100%;
  }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
  /* List View - Even more compact */
  .pdf-mcq-exams-list .pdf-mcq-exam-card {
    padding: 12px;
    gap: 10px;
  }

  .pdf-mcq-exams-list .pdf-mcq-exam-card .pdf-mcq-exam-title {
    font-size: 14px;
    -webkit-line-clamp: 2;
  }

  .pdf-mcq-exams-list .pdf-mcq-exam-card .pdf-mcq-exam-info {
    gap: 8px;
  }

  .pdf-mcq-exams-list .pdf-mcq-exam-card .pdf-mcq-exam-info-item {
    font-size: 11px;
  }

  .pdf-mcq-exams-list .pdf-mcq-exam-card .pdf-mcq-info-label,
  .pdf-mcq-exams-list .pdf-mcq-exam-card .pdf-mcq-info-value {
    font-size: 11px;
  }

  .pdf-mcq-exams-list .pdf-mcq-exam-card .pdf-mcq-btn-primary {
    padding: 6px 12px;
    font-size: 12px;
  }

  /* Grid view slightly smaller */
  .pdf-mcq-exams-grid .pdf-mcq-exam-card {
    padding: 16px;
  }

  .pdf-mcq-exams-grid .pdf-mcq-exam-card .pdf-mcq-exam-title {
    font-size: 15px;
  }
}

/* Landscape orientation on mobile */
@media (max-width: 768px) and (orientation: landscape) {
  .pdf-mcq-exams-list .pdf-mcq-exam-card {
    flex-direction: row;
  }

  .pdf-mcq-exams-list .pdf-mcq-exam-card .pdf-mcq-exam-header {
    flex: 0 0 40%;
  }

  .pdf-mcq-exams-list .pdf-mcq-exam-card .pdf-mcq-exam-info {
    flex: 0 0 35%;
  }

  .pdf-mcq-exams-list .pdf-mcq-exam-card .pdf-mcq-exam-actions {
    flex: 0 0 25%;
  }
}

/* ========================================
   PDF MCQ Quiz - Login/Register Styles
   Authentication CSS (Separated)
   ======================================== */

/* Auth Wrapper */
.pdf-mcq-auth-wrapper {
  max-width: 500px;
  margin: 40px auto;
  padding: 20px;
}

.pdf-mcq-auth-container {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 40px;
  border: 1px solid #e5e7eb;
}

/* Auth Header */
.pdf-mcq-auth-header {
  text-align: center;
  margin-bottom: 32px;
}

.pdf-mcq-auth-title {
  font-size: 28px;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 8px 0;
}

.pdf-mcq-auth-subtitle {
  font-size: 15px;
  color: #6b7280;
  margin: 0;
}

/* Form Styles */
.pdf-mcq-auth-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.pdf-mcq-form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pdf-mcq-form-label {
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  display: flex;
  align-items: center;
  gap: 6px;
}

.pdf-mcq-label-icon {
  font-size: 16px;
}

.pdf-mcq-form-input {
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  transition: all 0.2s ease;
  background: #ffffff;
  box-sizing: border-box;
}

.pdf-mcq-form-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.pdf-mcq-form-input:disabled {
  background: #f3f4f6;
  cursor: not-allowed;
}

.pdf-mcq-form-hint {
  font-size: 13px;
  color: #6b7280;
  margin-top: 4px;
}

/* Password Wrapper */
.pdf-mcq-password-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.pdf-mcq-password-wrapper .pdf-mcq-form-input {
  padding-right: 48px;
}

.pdf-mcq-password-toggle {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background 0.2s ease;
}

.pdf-mcq-password-toggle:hover {
  background: #f3f4f6;
}

.pdf-mcq-eye-icon {
  font-size: 18px;
}

/* Checkbox */
.pdf-mcq-form-checkbox {
  margin-top: 4px;
}

.pdf-mcq-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  color: #374151;
}

.pdf-mcq-checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #3b82f6;
}

/* Messages */
.pdf-mcq-form-message {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  display: none;
  animation: slideDown 0.3s ease;
}

.pdf-mcq-form-message.show {
  display: block;
}

.pdf-mcq-form-message.error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.pdf-mcq-form-message.success {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

/* Buttons */
.pdf-mcq-btn {
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  box-sizing: border-box;
}

.pdf-mcq-btn-primary {
  background: #3b82f6;
  color: #ffffff;
}

.pdf-mcq-btn-primary:hover {
  background: #00473a;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.pdf-mcq-btn-secondary {
  background: #ffffff;
  color: #374151;
  border: 2px solid #e5e7eb;
}

.pdf-mcq-btn-secondary:hover {
  background: #f9fafb;
  border-color: #d1d5db;
}

.pdf-mcq-btn-block {
  width: 100%;
}

.pdf-mcq-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

.pdf-mcq-btn-loader {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  display: none;
}

.pdf-mcq-btn.loading .pdf-mcq-btn-text {
  opacity: 0;
}

.pdf-mcq-btn.loading .pdf-mcq-btn-loader {
  display: block;
  position: absolute;
}

/* Auth Footer */
.pdf-mcq-auth-footer {
  margin-top: 24px;
  text-align: center;
}

.pdf-mcq-auth-switch,
.pdf-mcq-auth-forgot {
  font-size: 14px;
  color: #6b7280;
  margin: 12px 0;
}

.pdf-mcq-auth-link {
  color: #3b82f6;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.pdf-mcq-auth-link:hover {
  color: #2563eb;
  text-decoration: underline;
}

/* Already Logged In */
.pdf-mcq-auth-already-logged {
  max-width: 500px;
  margin: 40px auto;
  padding: 20px;
}

.pdf-mcq-auth-success-box {
  background: #f0fdf4;
  border: 2px solid #86efac;
  border-radius: 12px;
  padding: 40px;
  text-align: center;
}

.pdf-mcq-auth-icon {
  display: inline-block;
  width: 60px;
  height: 60px;
  line-height: 60px;
  background: #22c55e;
  color: #ffffff;
  border-radius: 50%;
  font-size: 32px;
  margin-bottom: 20px;
}

.pdf-mcq-auth-success-box h3 {
  font-size: 24px;
  color: #166534;
  margin: 0 0 8px 0;
}

.pdf-mcq-auth-success-box p {
  font-size: 15px;
  color: #166534;
  margin: 0 0 24px 0;
}

.pdf-mcq-auth-success-box .pdf-mcq-btn {
  margin: 0 8px 8px 8px;
}

/* Animations */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Responsive */
@media (max-width: 576px) {
  .pdf-mcq-auth-wrapper {
    padding: 12px;
    margin: 20px auto;
  }

  .pdf-mcq-auth-container {
    padding: 24px;
  }

  .pdf-mcq-auth-title {
    font-size: 24px;
  }

  .pdf-mcq-auth-subtitle {
    font-size: 14px;
  }

  .pdf-mcq-auth-success-box {
    padding: 24px;
  }

  .pdf-mcq-auth-success-box .pdf-mcq-btn {
    display: block;
    margin: 0 0 8px 0;
  }
}

.pdf-mcq-browse-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0px 20px;
}

/* Header */
.pdf-mcq-browse-header {
  text-align: center;
}

.pdf-mcq-browse-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 15px;
}

.pdf-mcq-browse-subtitle {
  font-size: 1.125rem;
  color: #64748b;
}

/* Breadcrumb */
.pdf-mcq-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 30px;
  padding: 15px 20px;
  background: #f8fafc;
  border-radius: 8px;
}

.pdf-mcq-breadcrumb-item {
  color: #64748b;
  font-size: 0.875rem;
  cursor: pointer;
  transition: color 0.2s;
}

.pdf-mcq-breadcrumb-item:hover {
  color: #046bd2;
}

.pdf-mcq-breadcrumb-item.active {
  color: #046bd2;
  font-weight: 600;
  cursor: default;
}

.pdf-mcq-breadcrumb-separator {
  color: #cbd5e1;
  font-size: 0.875rem;
}

/* Categories Grid */
.pdf-mcq-categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

/* Category Card */
.pdf-mcq-category-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 30px;
  transition: all 0.3s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.pdf-mcq-category-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #049f82, #049f82);
  transform: scaleX(0);
  transition: transform 0.3s;
}

.pdf-mcq-category-card:hover {
  border-color: #049f82;
  box-shadow: 0 8px 24px rgba(4, 107, 210, 0.12);
  transform: translateY(-2px);
}

.pdf-mcq-category-card:hover::before {
  transform: scaleX(1);
}

.pdf-mcq-category-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.pdf-mcq-category-icon svg {
  width: 32px;
  height: 32px;
  color: #049f82;
}

.pdf-mcq-category-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 12px;
  line-height: 1.4;
}

.pdf-mcq-category-desc {
  font-size: 0.875rem;
  color: #64748b;
  margin-bottom: 20px;
  line-height: 1.6;
}

.pdf-mcq-category-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.pdf-mcq-category-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  color: #64748b;
}

.pdf-mcq-category-meta-item svg {
  width: 16px;
  height: 16px;
  color: #94a3b8;
}

.pdf-mcq-category-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 20px;
  background: #049f82;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
}

.pdf-mcq-category-btn svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s;
}

.pdf-mcq-category-btn:hover {
  background: #049f82;
  transform: translateX(2px);
}

.pdf-mcq-category-btn:hover svg {
  transform: translateX(4px);
}

/* Exams List */
.pdf-mcq-exams-list {
  animation: fadeIn 0.3s;
}

.pdf-mcq-exams-header {
  margin-bottom: 30px;
}

.pdf-mcq-exams-header h2 {
  font-size: 1.875rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 8px;
}

.pdf-mcq-exams-header p {
  font-size: 1rem;
  color: #64748b;
}

.pdf-mcq-exams-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

/* Exam Card */
.pdf-mcq-exam-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px;
  transition: all 0.3s;
}

.pdf-mcq-exam-card:hover {
  border-color: #046bd2;
  box-shadow: 0 8px 24px rgba(4, 107, 210, 0.12);
  transform: translateY(-2px);
}

.pdf-mcq-exam-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.pdf-mcq-exam-header h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1e293b;
  flex: 1;
  line-height: 1.4;
}

.pdf-mcq-exam-type {
  display: inline-block;
  padding: 4px 12px;
  background: #eff6ff;
  color: #046bd2;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
  margin-left: 12px;
}

.pdf-mcq-exam-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 16px;
}

.pdf-mcq-exam-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  color: #64748b;
}

.pdf-mcq-exam-meta-item svg {
  width: 18px;
  height: 18px;
  color: #94a3b8;
}

.pdf-mcq-exam-meta-item.pdf-mcq-exam-paid {
  color: #059669;
  font-weight: 500;
}

.pdf-mcq-exam-meta-item.pdf-mcq-exam-paid svg {
  color: #059669;
}

.pdf-mcq-exam-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.pdf-mcq-exam-category-tag {
  display: inline-block;
  padding: 4px 10px;
  background: #f1f5f9;
  color: #475569;
  border-radius: 4px;
  font-size: 0.75rem;
}

.pdf-mcq-exam-start-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 20px;
  background: #046bd2;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s;
}

.pdf-mcq-exam-start-btn svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s;
}

.pdf-mcq-exam-start-btn:hover {
  background: #045cb4;
  color: #fff;
}

.pdf-mcq-exam-start-btn:hover svg {
  transform: translateX(4px);
}

/* Auth Prompt */
.pdf-mcq-auth-prompt {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  animation: fadeIn 0.3s;
}

.pdf-mcq-auth-prompt-box {
  max-width: 500px;
  text-align: center;
  padding: 40px;
  background: #fff;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
}

.pdf-mcq-auth-prompt-box h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 16px;
}

.pdf-mcq-auth-prompt-box p {
  font-size: 1rem;
  color: #64748b;
  margin-bottom: 30px;
}

.pdf-mcq-auth-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
}

/* Messages */
.pdf-mcq-browse-message {
  padding: 16px 20px;
  border-radius: 8px;
  margin-bottom: 24px;
  font-size: 0.9375rem;
  display: none;
}

.pdf-mcq-message-error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.pdf-mcq-message-success {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.pdf-mcq-message-info {
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

/* No Content States */
.pdf-mcq-no-categories,
.pdf-mcq-no-exams {
  text-align: center;
  padding: 60px 20px;
  color: #64748b;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .pdf-mcq-browse-title {
    font-size: 2rem;
  }

  .pdf-mcq-categories-grid,
  .pdf-mcq-exams-grid {
    grid-template-columns: 1fr;
  }

  .pdf-mcq-breadcrumb {
    font-size: 0.8125rem;
  }

  .pdf-mcq-category-card,
  .pdf-mcq-exam-card {
    padding: 20px;
  }

  .pdf-mcq-auth-buttons {
    flex-direction: column;
  }

  .pdf-mcq-auth-buttons .pdf-mcq-btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .pdf-mcq-browse-wrapper {
    padding: 20px 15px;
  }

  .pdf-mcq-browse-title {
    font-size: 1.75rem;
  }

  .pdf-mcq-exam-header {
    flex-direction: column;
    gap: 8px;
  }

  .pdf-mcq-exam-type {
    margin-left: 0;
  }
}

/* Enhanced Auth Prompt - Overlay Style */
.pdf-mcq-auth-prompt {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease-in-out;
}

.pdf-mcq-auth-prompt.pdf-mcq-auth-prompt-overlay {
  display: flex;
}

.pdf-mcq-auth-prompt-box {
  background: white;
  border-radius: 12px;
  padding: 40px;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  position: relative;
  animation: slideUp 0.3s ease-out;
  text-align: center;
}

.pdf-mcq-auth-prompt-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 30px;
  height: 30px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
  color: #666;
  transition: color 0.2s;
}

.pdf-mcq-auth-prompt-close:hover {
  color: #000;
}

.pdf-mcq-auth-prompt-box h3 {
  margin: 0 0 15px;
  font-size: 28px;
  color: #333;
}

.pdf-mcq-auth-prompt-box p {
  margin: 0 0 30px;
  font-size: 16px;
  color: #666;
  line-height: 1.6;
}

.pdf-mcq-auth-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.pdf-mcq-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
  min-width: 140px;
}

.pdf-mcq-btn-primary {
  background: linear-gradient(135deg, #049f82 0%, #005e4c 100%);
  color: white;
}

.pdf-mcq-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
  color: white;
}

.pdf-mcq-btn-secondary {
  background: #f3f4f6;
  color: #333;
}

.pdf-mcq-btn-secondary:hover {
  background: #e5e7eb;
  transform: translateY(-2px);
}

/* Login Required Button Styling */
.pdf-mcq-exam-start-btn.pdf-mcq-exam-login-required {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.pdf-mcq-exam-start-btn.pdf-mcq-exam-login-required:hover {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  transform: translateY(-2px);
}

.pdf-mcq-exam-start-btn.pdf-mcq-exam-login-required svg {
  width: 18px;
  height: 18px;
}

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

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

/* Responsive */
@media (max-width: 768px) {
  .pdf-mcq-auth-prompt-box {
    padding: 30px 20px;
    margin: 20px;
  }

  .pdf-mcq-auth-buttons {
    flex-direction: column;
  }

  .pdf-mcq-btn {
    width: 100%;
  }
}
/* Access Denied Page Styles */
.pdf-mcq-access-deniedd {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding: 40px 20px;
  margin-left: auto;
  margin-right: auto;
}

.pdf-mcq-access-denied-content {
  text-align: center;
  max-width: 500px;
  padding: 40px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.pdf-mcq-access-denied-content h2 {
  margin: 0 0 20px 0;
  color: #f59e0b;
  font-size: 24px;
}

.pdf-mcq-access-denied-content p {
  margin: 0 0 30px 0;
  color: #6b7280;
  font-size: 16px;
  line-height: 1.6;
}

.pdf-mcq-access-denied-content .pdf-mcq-btn {
  display: inline-block;
  padding: 12px 24px;
  background: #2271b1;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  transition: background 0.3s ease;
}

.pdf-mcq-access-denied-content .pdf-mcq-btn:hover {
  background: #135e96;
}

/* Icon styling (optional - add an icon before the heading) */
.pdf-mcq-access-denied-content h2::before {
  content: "⏳";
  display: block;
  font-size: 48px;
  margin-bottom: 15px;
}

/* For rejected status, you can add a different icon color */
.pdf-mcq-access-deniedd.rejected .pdf-mcq-access-denied-content h2 {
  color: #ef4444;
}

.pdf-mcq-access-deniedd.rejected .pdf-mcq-access-denied-content h2::before {
  content: "🚫";
}
/* ===================================
   QUIZ RESULTS SECTION STYLES
   =================================== */

/* Results Container */
.quiz-results {
  padding: 2rem 1rem;
  background: var(--light-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  animation: fadeIn 0.5s ease-in-out;
}

.results-container {
  max-width: 600px;
  width: 100%;
  background: white;
  border-radius: 15px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  padding: 3rem 2.5rem;
  text-align: center;
  border: 2px solid var(--border-color);
}

/* Results Header */
.results-header {
  margin-bottom: 2rem;
}

.success-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, var(--success-color), #20c997);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  font-weight: bold;
  box-shadow: 0 8px 24px rgba(40, 167, 69, 0.3);
  animation: scaleIn 0.5s ease-out 0.2s backwards;
}

.results-header h3 {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--dark-color);
  line-height: 1.3;
}

/* Results Content */
.results-content {
  margin-bottom: 2rem;
}

.completion-message {
  font-size: 1.125rem;
  color: var(--success-color);
  font-weight: 600;
  margin: 0 0 1rem 0;
  line-height: 1.6;
}

.results-info {
  font-size: 1rem;
  color: #64748b;
  margin: 0 0 2rem 0;
  line-height: 1.6;
  padding: 1rem;
  background: var(--primary-light);
  border-radius: 8px;
  border-left: 4px solid var(--info-color);
}

/* Results Actions */
.results-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.btn-go-home {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.5rem;
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--primary-hover) 100%
  );
  color: white;
  text-decoration: none;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(1, 103, 187, 0.3);
  min-width: 200px;
}

.btn-go-home:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(1, 103, 187, 0.4);
  color: white;
}

.btn-go-home:active {
  transform: translateY(-1px);
}

/* Additional Success Elements */
.results-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(
    90deg,
    var(--success-color),
    #20c997,
    var(--success-color)
  );
  border-radius: 15px 15px 0 0;
}

.results-container {
  position: relative;
}

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

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.5);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ===================================
   RESPONSIVE STYLES
   =================================== */

/* Tablet Landscape (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
  .results-container {
    padding: 2.5rem 2rem;
  }

  .success-icon {
    width: 70px;
    height: 70px;
    font-size: 2.5rem;
  }

  .results-header h3 {
    font-size: 1.5rem;
  }

  .completion-message {
    font-size: 1rem;
  }

  .results-info {
    font-size: 0.9375rem;
  }

  .btn-go-home {
    padding: 0.875rem 2rem;
    font-size: 1rem;
  }
}

/* Tablet Portrait (600px - 767px) */
@media (min-width: 600px) and (max-width: 767px) {
  .quiz-results {
    padding: 1.5rem 1rem;
  }

  .results-container {
    padding: 2rem 1.5rem;
  }

  .success-icon {
    width: 65px;
    height: 65px;
    font-size: 2.25rem;
    margin-bottom: 1.25rem;
  }

  .results-header h3 {
    font-size: 1.375rem;
  }

  .completion-message {
    font-size: 0.9375rem;
  }

  .results-info {
    font-size: 0.875rem;
    padding: 0.875rem;
  }

  .btn-go-home {
    padding: 0.875rem 1.75rem;
    font-size: 0.9375rem;
    min-width: 180px;
  }
}

/* Mobile Large (480px - 599px) */
@media (min-width: 480px) and (max-width: 599px) {
  .quiz-results {
    padding: 1.25rem 0.75rem;
    min-height: 50vh;
  }

  .results-container {
    padding: 1.75rem 1.25rem;
    max-width: 90%;
  }

  .success-icon {
    width: 60px;
    height: 60px;
    font-size: 2rem;
    margin-bottom: 1rem;
  }

  .results-header {
    margin-bottom: 1.5rem;
  }

  .results-header h3 {
    font-size: 1.25rem;
    line-height: 1.4;
  }

  .completion-message {
    font-size: 0.9375rem;
    margin-bottom: 0.875rem;
  }

  .results-info {
    font-size: 0.875rem;
    padding: 0.75rem;
    margin-bottom: 1.5rem;
  }

  .btn-go-home {
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
    width: 100%;
    max-width: 280px;
  }
}

/* Mobile Medium (375px - 479px) */
@media (min-width: 375px) and (max-width: 479px) {
  .quiz-results {
    padding: 1rem 0.5rem;
  }

  .results-container {
    padding: 1.5rem 1rem;
    border-radius: 12px;
  }

  .success-icon {
    width: 55px;
    height: 55px;
    font-size: 1.75rem;
    margin-bottom: 1rem;
  }

  .results-header {
    margin-bottom: 1.25rem;
  }

  .results-header h3 {
    font-size: 1.15rem;
  }

  .completion-message {
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
  }

  .results-info {
    font-size: 0.8125rem;
    padding: 0.65rem;
    margin-bottom: 1.25rem;
  }

  .results-content {
    margin-bottom: 1.5rem;
  }

  .btn-go-home {
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
    width: 100%;
  }
}

/* Mobile Small (320px - 374px) */
@media (max-width: 374px) {
  .quiz-results {
    padding: 0.75rem 0.5rem;
    min-height: 45vh;
  }

  .results-container {
    padding: 1.25rem 0.875rem;
    border-radius: 10px;
  }

  .success-icon {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    margin-bottom: 0.875rem;
  }

  .results-header {
    margin-bottom: 1rem;
  }

  .results-header h3 {
    font-size: 1.05rem;
    line-height: 1.3;
  }

  .completion-message {
    font-size: 0.8125rem;
    margin-bottom: 0.65rem;
  }

  .results-info {
    font-size: 0.75rem;
    padding: 0.6rem;
    margin-bottom: 1rem;
  }

  .results-content {
    margin-bottom: 1.25rem;
  }

  .btn-go-home {
    padding: 0.65rem 1rem;
    font-size: 0.8125rem;
    width: 100%;
    min-width: auto;
  }
}

/* Landscape Orientation Fixes */
@media (max-height: 600px) and (orientation: landscape) {
  .quiz-results {
    min-height: auto;
    padding: 1rem;
  }

  .results-container {
    padding: 1.5rem;
    max-height: 90vh;
    overflow-y: auto;
  }

  .success-icon {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
  }

  .results-header h3 {
    font-size: 1.25rem;
  }

  .results-info {
    margin-bottom: 1rem;
  }
}

/* Print Styles */
@media print {
  .quiz-results {
    padding: 1rem;
    background: white;
  }

  .results-container {
    box-shadow: none;
    border: 2px solid #000;
  }

  .btn-go-home {
    display: none;
  }

  .success-icon {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
}

/* Accessibility - High Contrast Mode */
@media (prefers-contrast: high) {
  .results-container {
    border: 3px solid currentColor;
  }

  .success-icon {
    outline: 2px solid;
    outline-offset: 2px;
  }

  .btn-go-home {
    border: 2px solid white;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .success-icon {
    animation: none;
  }

  .quiz-results {
    animation: none;
  }

  .btn-go-home:hover {
    transform: none;
  }
}

/* Enhanced Submit Confirmation Modal */
#submit-confirmation-modal .pdf-mcq-modal-content {
  animation: modalSlideDown 0.3s ease-out;
}

@keyframes modalSlideDown {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#submit-confirmation-modal .pdf-mcq-btn {
  min-width: 120px;
  padding: 12px 24px;
  font-size: 15px;
}

#submit-confirmation-modal .pdf-mcq-btn-primary {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

#submit-confirmation-modal .pdf-mcq-btn-primary:hover {
  background: linear-gradient(135deg, #20c997 0%, #28a745 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

#submit-confirmation-modal .pdf-mcq-btn-secondary {
  background: #fff;
  color: #64748b;
  border: 2px solid #e2e8f0;
}

#submit-confirmation-modal .pdf-mcq-btn-secondary:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #475569;
}
