/* Quiz Dashboard Styles */
.quiz-dashboard-container {
    width: 95%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 0;
    min-height: 80vh;
  }
  
  .quiz-dashboard-wrapper {
    background: var(--White);
    border: 2px solid var(--Black);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  }
  
  /* Dashboard Header */
  .dashboard-header {
    text-align: center;
    margin-bottom: 40px;
  }
  
  .dashboard-title {
    color: var(--Black);
    font-family: "DM Sans", sans-serif;
    font-size: 36px;
    font-weight: 700;
    margin: 0 0 16px 0;
    line-height: 1.2;
  }
  
  .dashboard-subtitle {
    color: var(--Black);
    font-family: "DM Sans", sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.5;
    margin: 0;
    opacity: 0.8;
  }
  
  /* Dashboard Stats */
  .dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
  }
  
  .stat-card {
    background: rgba(0, 0, 0, 0.02);
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    transition: all 0.3s ease;
  }
  
  .stat-card:hover {
    border-color: var(--Black);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }
  
  .stat-number {
    font-family: "DM Sans", sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--Black);
    margin-bottom: 8px;
    line-height: 1;
  }
  
  .stat-label {
    font-family: "DM Sans", sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: var(--Black);
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  
  /* Dashboard Controls */
  .dashboard-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    margin-bottom: 32px;
    padding: 24px;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 12px;
    border: 2px solid #e5e7eb;
  }
  
  .control-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  
  .control-group label {
    font-family: "DM Sans", sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--Black);
  }
  
  .control-group select {
    padding: 8px 12px;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    font-family: "DM Sans", sans-serif;
    font-size: 14px;
    background: var(--White);
    transition: border-color 0.3s ease;
  }
  
  .control-group select:focus {
    outline: none;
    border-color: var(--Black);
  }
  
  .dashboard-btn {
    padding: 10px 20px;
    border: 2px solid var(--Black);
    border-radius: 8px;
    background: var(--White);
    color: var(--Black);
    font-family: "DM Sans", sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  
  .dashboard-btn:hover {
    background: var(--Black);
    color: var(--White);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }
  
  /* Dashboard Table */
  .dashboard-table-container {
    overflow-x: auto;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    background: var(--White);
  }
  
  .dashboard-table {
    width: 100%;
    border-collapse: collapse;
    font-family: "DM Sans", sans-serif;
    font-size: 14px;
  }
  
  .dashboard-table th {
    background: rgba(0, 0, 0, 0.02);
    padding: 16px 12px;
    text-align: left;
    font-weight: 600;
    color: var(--Black);
    border-bottom: 2px solid #e5e7eb;
    white-space: nowrap;
  }
  
  .dashboard-table td {
    padding: 16px 12px;
    border-bottom: 1px solid #e5e7eb;
    color: var(--Black);
  }
  
  .dashboard-table tbody tr:hover {
    background: rgba(0, 0, 0, 0.02);
  }
  
  .dashboard-table .score-excellent {
    color: #10b981;
    font-weight: 600;
  }
  
  .dashboard-table .score-good {
    color: #3b82f6;
    font-weight: 600;
  }
  
  .dashboard-table .score-average {
    color: #f59e0b;
    font-weight: 600;
  }
  
  .dashboard-table .score-poor {
    color: #ef4444;
    font-weight: 600;
  }
  
  /* Action Buttons */
  .action-btn {
    padding: 6px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    background: var(--White);
    color: var(--Black);
    font-family: "DM Sans", sans-serif;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    margin-right: 8px;
  }
  
  .action-btn:hover {
    background: var(--Black);
    color: var(--White);
    border-color: var(--Black);
  }
  
  .action-btn.view {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
  }
  
  .action-btn.view:hover {
    background: #2563eb;
    border-color: #2563eb;
  }
  
  .action-btn.delete {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
  }
  
  .action-btn.delete:hover {
    background: #dc2626;
    border-color: #dc2626;
  }
  
  /* Modal Styles */
  .modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
  }
  
  .modal-content {
    background-color: var(--White);
    margin: 5% auto;
    padding: 0;
    border: 2px solid var(--Black);
    border-radius: 16px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease;
  }
  
  @keyframes modalSlideIn {
    from {
      opacity: 0;
      transform: translateY(-50px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  @keyframes slideInRight {
    from {
      opacity: 0;
      transform: translateX(100%);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }
  
  .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
    border-bottom: 2px solid #e5e7eb;
  }
  
  .modal-header h2 {
    font-family: "DM Sans", sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: var(--Black);
    margin: 0;
  }
  
  .modal-close {
    font-size: 28px;
    font-weight: bold;
    color: var(--Black);
    cursor: pointer;
    transition: color 0.3s ease;
  }
  
  .modal-close:hover {
    color: #ef4444;
  }
  
  .modal-body {
    padding: 32px;
  }
  
  /* Loading Indicator */
  .loading-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
  }
  
  .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e5e7eb;
    border-top: 4px solid var(--Black);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
  }
  
  @keyframes spin {
    0% {
      transform: rotate(0deg);
    }
    100% {
      transform: rotate(360deg);
    }
  }
  
  .loading-indicator p {
    font-family: "DM Sans", sans-serif;
    font-size: 16px;
    color: var(--Black);
    margin: 0;
  }
  
  /* Result Details */
  .result-details {
    font-family: "DM Sans", sans-serif;
  }
  
  .result-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
    padding: 24px;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 12px;
    border: 2px solid #e5e7eb;
  }
  
  .result-summary-item {
    text-align: center;
  }
  
  .result-summary-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--Black);
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
  }
  
  .result-summary-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--Black);
  }
  
  .question-breakdown {
    margin-top: 24px;
  }
  
  .question-breakdown h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--Black);
    margin: 0 0 16px 0;
  }
  
  .question-item {
    padding: 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 12px;
    background: var(--White);
  }
  
  .question-item.correct {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.05);
  }
  
  .question-item.incorrect {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.05);
  }
  
  .question-text {
    font-weight: 600;
    color: var(--Black);
    margin-bottom: 8px;
  }
  
  .question-answers {
    font-size: 14px;
    color: var(--Black);
    opacity: 0.8;
  }
  
  .question-status {
    font-size: 12px;
    font-weight: 600;
    margin-top: 8px;
  }
  
  .question-status.correct {
    color: #10b981;
  }
  
  .question-status.incorrect {
    color: #ef4444;
  }
  
  /* Responsive Design */
  @media (max-width: 768px) {
    .quiz-dashboard-container {
      width: 98%;
      padding: 20px 0;
    }
  
    .quiz-dashboard-wrapper {
      padding: 24px;
    }
  
    .dashboard-title {
      font-size: 28px;
    }
  
    .dashboard-subtitle {
      font-size: 16px;
    }
  
    .dashboard-stats {
      grid-template-columns: repeat(2, 1fr);
      gap: 16px;
    }
  
    .stat-card {
      padding: 20px;
    }
  
    .stat-number {
      font-size: 24px;
    }
  
    .dashboard-controls {
      flex-direction: column;
      align-items: stretch;
      gap: 16px;
    }
  
    .control-group {
      flex-direction: row;
      align-items: center;
      gap: 12px;
    }
  
    .control-group label {
      min-width: 100px;
    }
  
    .dashboard-table th,
    .dashboard-table td {
      padding: 12px 8px;
      font-size: 13px;
    }
  
    .modal-content {
      width: 95%;
      margin: 10% auto;
    }
  
    .modal-header,
    .modal-body {
      padding: 20px;
    }
  }
  
  @media (max-width: 480px) {
    .quiz-dashboard-wrapper {
      padding: 20px;
    }
  
    .dashboard-title {
      font-size: 24px;
    }
  
    .dashboard-stats {
      grid-template-columns: 1fr;
    }
  
    .stat-number {
      font-size: 20px;
    }
  
    .dashboard-table th,
    .dashboard-table td {
      padding: 8px 6px;
      font-size: 12px;
    }
  
    .action-btn {
      padding: 4px 8px;
      font-size: 11px;
      margin-right: 4px;
    }
  }
  