  .navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
  }

  /* Matching Questions Styles */
  .matching-container {
    margin: 20px 0;
  }

  .matching-instructions {
    background: #e9ecef;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
    color: #495057;
  }

  .dark-mode .matching-instructions {
    background: #374151;
    color: #f3f4f6;
    border: 1px solid #4b5563;
  }

  .matching-pairs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
  }

  .matching-item {
    background: #fff;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #495057;
  }

  .dark-mode .matching-item {
    background: #374151;
    border-color: #4b5563;
    color: #f3f4f6;
  }

  .matching-item:hover {
    border-color: #007bff;
    background: #f8f9fa;
  }

  .dark-mode .matching-item:hover {
    border-color: #60a5fa;
    background: #4b5563;
  }

  .matching-item.selected {
    border-color: #007bff;
    background: #e3f2fd;
  }

  .dark-mode .matching-item.selected {
    border-color: #60a5fa;
    background: #1e40af;
    color: #ffffff;
  }

  .item-number, .item-letter {
    background: #007bff;
    color: white;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
  }

  .dark-mode .item-number, .dark-mode .item-letter {
    background: #60a5fa;
  }

  .matches-display {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    padding: 15px;
    min-height: 60px;
    color: #495057;
  }

  .dark-mode .matches-display {
    background: #374151;
    border-color: #4b5563;
    color: #f3f4f6;
  }

  .match-pair {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    margin-bottom: 8px;
    color: #495057;
  }

  .dark-mode .match-pair {
    background: #4b5563;
    border-color: #6b7280;
    color: #f3f4f6;
  }

  .match-arrow {
    color: #007bff;
    font-weight: bold;
  }

  .dark-mode .match-arrow {
    color: #60a5fa;
  }

  /* Ordering Questions Styles */
  .ordering-container {
    margin: 20px 0;
  }

  .ordering-instructions {
    background: #e9ecef;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
    color: #495057;
  }

  .dark-mode .ordering-instructions {
    background: #374151;
    color: #f3f4f6;
    border: 1px solid #4b5563;
  }

  .available-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
  }

  .ordering-item {
    background: #fff;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    color: #495057;
  }

  .dark-mode .ordering-item {
    background: #374151;
    border-color: #4b5563;
    color: #f3f4f6;
  }

  .ordering-item:hover {
    border-color: #28a745;
    background: #f8f9fa;
  }

  .dark-mode .ordering-item:hover {
    border-color: #34d399;
    background: #4b5563;
  }

  .sequence-display {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    padding: 15px;
    min-height: 60px;
    color: #495057;
  }

  .dark-mode .sequence-display {
    background: #374151;
    border-color: #4b5563;
    color: #f3f4f6;
  }

  .sequence-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    margin-bottom: 8px;
    color: #495057;
  }

  .dark-mode .sequence-item {
    background: #4b5563;
    border-color: #6b7280;
    color: #f3f4f6;
  }

  .sequence-number {
    background: #28a745;
    color: white;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
  }

  .dark-mode .sequence-number {
    background: #34d399;
  }

  /* Quiz Summary Styles for new question types */
  .matching-summary, .ordering-summary, .matching-correct, .ordering-correct {
    max-height: 200px;
    overflow-y: auto;
  }

  .match-result, .sequence-result {
    padding: 5px 0;
    border-bottom: 1px solid #eee;
    color: #495057;
  }

  .dark-mode .match-result, .dark-mode .sequence-result {
    border-bottom-color: #4b5563;
    color: #f3f4f6;
  }

  .match-result:last-child, .sequence-result:last-child {
    border-bottom: none;
  }

  /* Drag and Drop Questions Styles */
  .dragdrop-container {
    margin: 20px 0;
  }

  .dragdrop-instructions {
    background: #e9ecef;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
    color: #495057;
  }

  .dark-mode .dragdrop-instructions {
    background: #374151;
    color: #f3f4f6;
    border: 1px solid #4b5563;
  }

  /* Reference Image Section */
  .reference-image-section {
    margin-bottom: 20px;
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
  }

  .dark-mode .reference-image-section {
    background: #374151;
    border-color: #4b5563;
  }

  .reference-image-section h6 {
    margin-bottom: 10px;
    color: #495057;
    font-weight: 600;
  }

  .dark-mode .reference-image-section h6 {
    color: #f3f4f6;
  }

  .reference-image-container {
    text-align: center;
    background: white;
    border-radius: 6px;
    padding: 10px;
  }

  .dark-mode .reference-image-container {
    background: #4b5563;
  }

  .reference-diagram {
    max-width: 100%;
    height: auto;
    max-height: 350px;
    object-fit: contain;
    border-radius: 4px;
  }

  .dragdrop-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
  }

  /* Drop Zones Section */
  .drop-zones-section {
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
  }

  .dark-mode .drop-zones-section {
    background: #374151;
    border-color: #4b5563;
  }

  .drop-zones-section h6 {
    margin-bottom: 15px;
    color: #495057;
    font-weight: 600;
  }

  .dark-mode .drop-zones-section h6 {
    color: #f3f4f6;
  }

  .drop-zone {
    border: 3px dashed #6c757d;
    border-radius: 8px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    min-height: 80px;
  }

  .dark-mode .drop-zone {
    background: #4b5563;
    border-color: #9ca3af;
  }

  .separated-zone {
    position: static;
    width: 100%;
    margin-bottom: 10px;
  }

  .drop-zone.drag-over {
    border-color: #007bff;
    background: rgba(0, 123, 255, 0.2);
    border-style: solid;
  }

  .dark-mode .drop-zone.drag-over {
    border-color: #60a5fa;
    background: rgba(96, 165, 250, 0.2);
  }

  .zone-placeholder {
    text-align: center;
    color: #6c757d;
    font-size: 12px;
  }

  .dark-mode .zone-placeholder {
    color: #d1d5db;
  }

  .zone-number {
    display: block;
    background: #6c757d;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    line-height: 24px;
    font-weight: bold;
    margin: 0 auto 4px;
    font-size: 12px;
  }

  .dark-mode .zone-number {
    background: #9ca3af;
  }

  .zone-label {
    font-size: 10px;
    white-space: nowrap;
  }

  .dropped-item {
    text-align: center;
    background: #28a745;
    color: white;
    border-radius: 6px;
    padding: 8px 4px;
    font-size: 11px;
    font-weight: bold;
    position: relative;
  }

  .dark-mode .dropped-item {
    background: #34d399;
  }

  .dropped-item .zone-number {
    background: rgba(255, 255, 255, 0.3);
    color: white;
    margin-bottom: 2px;
  }

  .dropped-label {
    display: block;
    font-size: 10px;
    line-height: 1.2;
  }

  .remove-btn {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
  }

  .drop-zones-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .drag-items-container {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
  }

  .dark-mode .drag-items-container {
    background: #374151;
    border-color: #4b5563;
  }

  .drag-items-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 300px;
    overflow-y: auto;
  }

  .drag-item {
    background: white;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    padding: 10px;
    cursor: move;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    user-select: none;
    color: #495057;
  }

  .dark-mode .drag-item {
    background: #4b5563;
    border-color: #6b7280;
    color: #f3f4f6;
  }

  .drag-item:hover {
    border-color: #007bff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  }

  .dark-mode .drag-item:hover {
    border-color: #60a5fa;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
  }

  .drag-item.dragging {
    opacity: 0.5;
    transform: rotate(5deg);
  }

  .drag-handle {
    color: #6c757d;
    font-size: 14px;
    cursor: grab;
  }

  .dark-mode .drag-handle {
    color: #d1d5db;
  }

  .drag-handle:active {
    cursor: grabbing;
  }

  .item-text {
    flex: 1;
    font-weight: 500;
  }

  .dragdrop-controls {
    margin-top: 20px;
    text-align: center;
  }

  /* Fill-in-the-blank Questions Styles */
  .fill-blank-container {
    margin: 20px 0;
  }

  .fill-blank-instructions {
    background: #e9ecef;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
    color: #495057;
  }

  .dark-mode .fill-blank-instructions {
    background: #374151;
    color: #f3f4f6;
    border: 1px solid #4b5563;
  }

  .question-with-blank {
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
  }

  .dark-mode .question-with-blank {
    background: #374151;
    border-color: #4b5563;
  }

  .question-text-with-blank {
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
    color: #333;
  }

  .dark-mode .question-text-with-blank {
    color: #f3f4f6;
  }

  .blank-placeholder {
    background: #fff3cd;
    border: 2px dashed #ffc107;
    border-radius: 4px;
    padding: 2px 8px;
    margin: 0 4px;
    color: #856404;
    font-weight: bold;
    display: inline-block;
    min-width: 100px;
    text-align: center;
  }

  .dark-mode .blank-placeholder {
    background: #451a03;
    border-color: #f59e0b;
    color: #fbbf24;
  }

  .answer-input-section {
    background: white;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
  }

  .dark-mode .answer-input-section {
    background: #374151;
    border-color: #4b5563;
  }

  .answer-label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #495057;
    font-size: 1rem;
  }

  .dark-mode .answer-label {
    color: #f3f4f6;
  }

  .fill-blank-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #ced4da;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: white;
    color: #495057;
  }

  .dark-mode .fill-blank-input {
    background: #4b5563;
    border-color: #6b7280;
    color: #f3f4f6;
  }

  .fill-blank-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
  }

  .dark-mode .fill-blank-input:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
  }

  .fill-blank-input::placeholder {
    color: #6c757d;
    font-style: italic;
  }

  .dark-mode .fill-blank-input::placeholder {
    color: #9ca3af;
  }

  .input-feedback {
    margin-top: 8px;
    text-align: center;
  }

  .input-feedback .text-success {
    color: #28a745 !important;
    font-weight: 500;
  }

  .dark-mode .input-feedback .text-success {
    color: #34d399 !important;
  }

  .input-feedback .text-muted {
    color: #6c757d !important;
  }

  .dark-mode .input-feedback .text-muted {
    color: #9ca3af !important;
  }

  /* Quiz Summary Styles for fill-in-blank */
  .fill-blank-summary, .fill-blank-correct {
    padding: 10px;
    border-radius: 5px;
  }

  .fill-blank-answer {
    font-weight: 600;
    font-size: 1.1rem;
    color: #495057;
    background: #f8f9fa;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid #dee2e6;
  }

  .dark-mode .fill-blank-answer {
    color: #f3f4f6;
    background: #4b5563;
    border-color: #6b7280;
  }

  /* Mobile responsiveness for fill-blank */
  @media (max-width: 768px) {
    .question-text-with-blank {
      font-size: 1rem;
    }
    
    .fill-blank-input {
      font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .blank-placeholder {
      min-width: 80px;
      font-size: 0.9rem;
    }
  }

  /* Quiz Summary Styles for dragdrop */
  .dragdrop-summary, .dragdrop-correct {
    max-height: 200px;
    overflow-y: auto;
  }

  .dragdrop-result {
    padding: 5px 0;
    border-bottom: 1px solid #eee;
    color: #495057;
  }

  .dark-mode .dragdrop-result {
    border-bottom-color: #4b5563;
    color: #f3f4f6;
  }

  .dragdrop-result:last-child {
    border-bottom: none;
  }

  /* Mobile responsiveness for dragdrop */
  @media (max-width: 768px) {
    .dragdrop-layout {
      grid-template-columns: 1fr;
      gap: 15px;
    }
    
    .reference-diagram {
      max-height: 250px;
    }
    
    .separated-zone {
      min-height: 70px;
    }
    
    .zone-number {
      width: 20px;
      height: 20px;
      line-height: 20px;
      font-size: 11px;
    }
    
    .zone-label {
      font-size: 9px;
    }
  }
  
