
/* Navbar container with light purple gradient */


/* Navbar links */


/* Hover effect */


/* Active link style */

.navigation-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

.nav-group {
    display: flex;
    gap: 8px;
}

.jump-group {
    display: flex;
    gap: 5px;
    margin-left: auto;
}

/* Updated button styles for smaller size */
.small-nav-btn {
    padding: 4px 8px; /* Reduced from 5px 10px */
    font-size: 13px; /* Slightly smaller font */
    min-width: 50px; /* Reduced from 60px */
    height: 28px; /* Added fixed height */
    border-radius: 3px; /* Slightly rounded */
    border: 1px solid #d0d0d0; /* Subtle border */
    background-color: #f8f8f8; /* Light background */
    cursor: pointer;
    box-sizing: border-box; /* Ensures padding is included in width */
}

.small-nav-btn:disabled {
    opacity: 0.5;
    background-color: #f0f0f0;
}

/* Adjusted input field to match */
#jumpTo {
    width: 50px; /* Reduced from 60px */
    padding: 4px;
    text-align: center;
    height: 28px; /* Matches button height */
    font-size: 13px; /* Matches button font */
    border: 1px solid #d0d0d0;
    border-radius: 3px;
    box-sizing: border-box;
}
/* === Base Styles === */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f5f5f5;
  color: #333;
}

/* === Container === */
.container {
  max-width: 800px;
  margin: 20px auto;
  padding: 20px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* === Quiz Questions === */
.question {
  margin-bottom: 25px;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: box-shadow 0.3s ease;
}

.question:hover {
  box-shadow: 0 4px 16px rgba(103, 58, 183, 0.2);
}

.question-count {
  font-weight: 600;
  color: #673ab7;
  margin-bottom: 10px;
  font-size: 1rem;
}

/* Options container */
.options {
  margin: 15px 0 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Each option */
.option {
  padding: 12px 15px;
  cursor: pointer;
  border: 1.5px solid #ddd;
  border-radius: 8px;
  background: #fafafa;
  font-weight: 600;
  transition: background 0.25s, border-color 0.25s;
  user-select: none;
}

.option:hover {
  background: #f3e8ff;
  border-color: #673ab7;
}

.option.correct {
  background: #d4edda;
  border-color: #c3e6cb;
  color: #155724;
  font-weight: 700;
}

.option.incorrect {
  background: #f8d7da;
  border-color: #f5c6cb;
  color: #721c24;
  font-weight: 700;
}

.option.check-answer {
  font-style: italic;
  background: #e0e0e0;
  cursor: default;
}

/* Feedback area */
.feedback {
  margin-top: 15px;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 8px;
  padding: 12px 20px;
  display: none;
  box-shadow: 0 1px 6px rgba(0,0,0,0.08);
  background: #fafafa;
  border: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s;
}

.correct-feedback {
  color: #155724;
  background: #d4edda;
  border-color: #c3e6cb;
}

.incorrect-feedback {
  color: #721c24;
  background: #f8d7da;
  border-color: #f5c6cb;
}

.correct-answer {
  margin-top: 8px;
  font-style: italic;
  color: #555;
}

.explanation {
  margin-top: 12px;
  font-size: 0.95rem;
  color: #444;
  line-height: 1.4;
}

/* Buttons */
button, .premium-button {
  padding: 12px 25px;
  background: linear-gradient(135deg, #673ab7, #9c27b0);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  margin-top: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 12px rgba(103, 58, 183, 0.25);
}

button:hover, .premium-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(103, 58, 183, 0.4);
}

/* Next button */
#nextBtn {
  display: none;
  margin-top: 15px;
}

/* Progress & Result */
#progress {
  text-align: right;
  color: #666;
  margin-bottom: 15px;
  font-weight: 600;
}

#result {
  text-align: center;
  font-size: 1.3em;
  margin-top: 25px;
  padding: 25px;
  background: #fafafa;
  border-radius: 12px;
  box-shadow: 0 3px 15px rgba(0,0,0,0.1);
  display: none;
}

.result-container h2 {
  color: #673ab7;
  margin-bottom: 15px;
}

.result-container p {
  margin: 10px 0;
  font-weight: 600;
  font-size: 1.1rem;
}

.result-buttons {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.result-buttons button {
  padding: 12px 30px;
  font-weight: 700;
}

/* Premium Wall */
.premium-wall {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 30px 25px;
  margin: 30px 0;
  text-align: center;
  border: 1px solid #eee;
  box-shadow: 0 4px 18px rgba(103, 58, 183, 0.15);
}

.premium-message {
  max-width: 450px;
  margin: 0 auto;
  color: #444;
}

.premium-message h4 {
  color: #673ab7;
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.premium-message p {
  font-size: 1.1rem;
  margin-bottom: 25px;
  color: #666;
}

.premium-button {
  font-weight: 700;
}

/* Comments Section */
.comments-toggle-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 700;
  margin-top: 25px;
  color: #673ab7;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.comments-toggle-btn:hover {
  color: #9c27b0;
}

#comment-section {
  display: none; /* Add this line - most critical fix */
  margin-top: 20px;
  padding: 15px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(103, 58, 183, 0.1);
}

.comments-list {
  margin-bottom: 20px;
  max-height: 250px;
  overflow-y: auto;
  border-radius: 8px;
  padding-right: 5px;
}

.comment-item {
  background: #f5f5f5;
  padding: 12px 15px;
  border-radius: 10px;
  margin-bottom: 12px;
  box-shadow: 0 1px 5px rgba(0,0,0,0.05);
}

.comment-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #555;
  margin-bottom: 6px;
}

.comment-text {
  color: #333;
  font-size: 0.95rem;
  line-height: 1.3;
}

.comment-input-area textarea {
  width: 100%;
  padding: 12px 15px;
  border-radius: 10px;
  border: 1.5px solid #ccc;
  resize: vertical;
  font-size: 1rem;
  font-weight: 400;
  transition: border-color 0.3s ease;
}

.comment-input-area textarea:focus {
  outline: none;
  border-color: #673ab7;
  box-shadow: 0 0 8px rgba(103, 58, 183, 0.3);
}

.comment-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
}

.submit-comment-btn {
  background: linear-gradient(135deg, #673ab7, #9c27b0);
  color: white;
  border: none;
  padding: 10px 22px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
  font-size: 1rem;
  transition: box-shadow 0.3s ease;
}

.submit-comment-btn:hover {
  box-shadow: 0 0 10px rgba(156, 39, 176, 0.7);
}

#char-count {
  font-size: 0.9rem;
  color: #666;
}

.loading-comments,
.no-comments,
.error-comments {
  font-style: italic;
  color: #888;
  padding: 12px;
}

#time-tracker-container {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

#time-tracked {
  background: rgba(255,255,255,0.1);
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 14px;
}

#current-badge {
  background: rgba(255,255,255,0.15);
  padding: 3px 8px;
  border-radius: 15px;
  font-size: 12px;
}

#current-badge img {
  height: 18px;
  vertical-align: middle;
}