body {
    font-family: Arial, sans-serif;
    margin: 20px;
    background: #f9f9f9;
  }
  
  h1 {
    text-align: center;
  }
  
  .nav-link {
    display: inline-block;
    margin: 10px 0;
    padding: 8px 12px;
    background: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
  }
  
  .nav-link:hover {
    background: #0056b3;
  }
  
  .stats {
    text-align: center;
    margin: 15px 0;
    font-size: 18px;
  }
  
  .quiz-container {
    display: flex;
  }
  
  .quiz-main {
    flex: 3;
    display: flex;
    flex-direction: column;
  }
  
  #quiz {
    flex: 3;
  }

  .quiz-main #quiz {
    margin-bottom: 24px;
  }
  
  .question {
    background: #fff;
    margin: 15px 0;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  }
  
  .question h3 {
    margin-bottom: 15px;
  }
  
  
  button {
    margin: 5px;
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
  }
  
  button.correct {
    background: #28a745;
    color: #fff;
  }
  
  button.wrong {
    background: #dc3545;
    color: #fff;
  }
  
  button.answered {
    opacity: 0.7;
    cursor: not-allowed;
  }
  
  .sidebar {
    flex: 1;
    margin-left: 20px;
    background: #fff;
    padding: 10px;
    border-radius: 8px;
    max-height: 80vh;
    overflow-y: auto;
  }
  
  .sidebar h3 {
    text-align: center;
  }
  
  .sidebar-item {
    margin: 5px;
    padding: 5px;
    cursor: pointer;
    border-radius: 4px;
    background: #eee;
  }
  
  .sidebar-item.correctMark {
    background: #28a745;
    color: #fff;
  }
  
  .sidebar-item.wrongMark {
    background: #dc3545;
    color: #fff;
  }

  #questionList {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(30px, 1fr));
    gap: 6px;
    margin-top: 10px;
  }

  .sidebar-item {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f0f0f0;
    cursor: pointer;
    font-size: 13px;
    font-weight: bold;
    user-select: none;
    transition: all 0.2s;
  }
  
  .sidebar-item:hover {
    background: #ddd;
  }
  
  .sidebar-item.correctMark {
    background: #28a745;
    color: #fff;
  }
  
  .sidebar-item.wrongMark {
    background: #dc3545;
    color: #fff;
  }
  
  .sidebar-item.active {
    border: 2px solid #000;
  }

.option-btn {
    display: block;
    width: 100%;
    text-align: left;
    margin: 8px 0;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #f7f7f7;
    cursor: pointer;
    transition: background 0.2s;
  }
  
  .option-btn:hover {
    background: #eaeaea;
  }
  
  .option-btn.correct {
    background: #28a745;
    color: #fff;
    border-color: #28a745;
  }
  
  .option-btn.wrong {
    background: #dc3545;
    color: #fff;
    border-color: #dc3545;
  }

.flagged-question {
    background: #f4e8ff;
    border: 1px solid #b59dff;
    box-shadow: 0 2px 6px rgba(123, 92, 255, 0.2);
}

.sidebar-item.flagged-item {
    box-shadow: 0 0 0 2px #7b5cff inset;
}

.sidebar-item.flagged-item.correctMark,
.sidebar-item.flagged-item.wrongMark {
    box-shadow: 0 0 0 2px #7b5cff inset;
}
.nav-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.search-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}

.search-container input {
    flex: 1;
    min-width: 260px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
}

.search-container button {
    padding: 10px 16px;
    background: #6c757d;
    color: #fff;
    border: none;
    border-radius: 6px;
}

.search-container button:hover {
    background: #5a6268;
}

.results-info {
    text-align: center;
    margin-bottom: 15px;
    font-size: 16px;
    color: #555;
}

.result-card {
    background: #fff;
    margin: 15px 0;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.answer-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.answer-item {
    padding: 6px 0;
}

.answer-item.correct-answer {
    font-weight: bold;
    color: #28a745;

}
.search-highlight {
    background: #ffe58f;
    padding: 0 2px;
    border-radius: 3px;
    font-weight: 600;
}

.donation-section {
    max-width: 360px;
    width: 100%;
    margin: 24px 0 0;
    padding: 20px 24px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    text-align: center;
    align-self: center;
}

.donation-section h2 {
    margin-bottom: 12px;
    font-size: 22px;
    color: #333;
}

.donation-section p {
    margin: 0;
    color: #555;
}

.donation-qr {
    display: block;
    width: 100%;
    max-width: 260px;
    margin: 20px auto;
    border-radius: 12px;
    border: 1px solid #e2e2e2;
    background: #fafafa;
}

.donation-note {
    margin-top: 10px;
    font-size: 15px;
}

.donation-download {
    display: inline-block;
    margin-top: 12px;
    color: #007bff;
    font-weight: 600;
    text-decoration: none;
}

.donation-download:hover {
    text-decoration: underline;
}



