html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {A
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* QuizFan Landing Page Styles */
.hero-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 4rem 0;
  margin-bottom: 3rem;
  border-radius: 0 0 2rem 2rem;
}

.hero-section h1 {
  color: white !important;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-section .lead {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.25rem;
}

.feature-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 1rem;
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  color: #333;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.feature-card h4 {
  color: #495057;
  font-weight: 600;
  margin-bottom: 1rem;
}

.feature-card p {
  color: #6c757d;
  line-height: 1.6;
}

.start-quiz-section {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  padding: 2rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.start-quiz-section h3 {
  color: white;
  font-weight: 600;
}

.start-quiz-btn {
  background: linear-gradient(45deg, #ff6b6b, #ee5a24);
  border: none;
  border-radius: 50px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(238, 90, 36, 0.3);
}

.start-quiz-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(238, 90, 36, 0.4);
  background: linear-gradient(45deg, #ff5252, #d63031);
}

.start-quiz-btn:active {
  transform: translateY(0);
}

/* Today's Quiz Section Styles */
.todays-quiz-section {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  padding: 2rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.todays-quiz-section h3 {
  color: white;
  font-weight: 600;
  text-align: center;
}

.quiz-info-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  color: #333;
}

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

.quiz-title {
  color: #495057;
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.quiz-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.quiz-author {
  color: #6c757d;
  font-style: italic;
  font-size: 0.9rem;
}

.quiz-description {
  color: #6c757d;
  text-align: center;
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.quiz-actions {
  text-align: center;
}

.error-section {
  text-align: center;
}

.error-section .alert {
  border-radius: 1rem;
  border: none;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-section {
    padding: 2rem 0;
    margin-bottom: 2rem;
  }
  
  .feature-card {
    margin-bottom: 1.5rem;
  }
  
  .start-quiz-section, .todays-quiz-section {
    padding: 1.5rem;
  }
  
  .quiz-info-card {
    padding: 1.5rem;
  }
  
  .quiz-meta {
    flex-direction: column;
    align-items: center;
  }
  
  .quiz-title {
    font-size: 1.25rem;
  }
}

/* Quiz Page Styles */
.quiz-container {
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 2rem 0;
}

.quiz-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 1.5rem;
  border-radius: 1rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.quiz-progress {
  flex: 1;
  margin-right: 2rem;
}

.progress-bar-container {
  background: rgba(255, 255, 255, 0.2);
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.progress-bar {
  background: linear-gradient(90deg, #4CAF50, #8BC34A);
  height: 100%;
  transition: width 0.3s ease;
  border-radius: 4px;
}

.progress-text {
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
}

.quiz-timer {
  background: rgba(255, 255, 255, 0.2);
  padding: 0.75rem 1.5rem;
  border-radius: 2rem;
  color: white;
  font-weight: 600;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.quiz-timer i {
  font-size: 1.2rem;
}

.question-container {
  max-width: 800px;
  margin: 0 auto;
}

.question-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 1rem;
  padding: 2.5rem;
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
  color: #333;
}

.question-text {
  color: #495057;
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1.4;
  margin-bottom: 2rem;
  text-align: center;
}

.answers-container {
  margin-bottom: 2rem;
}

.answer-option {
  background: #f8f9fa;
  border: 2px solid #e9ecef;
  border-radius: 0.75rem;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  user-select: none;
}

.answer-option:hover:not(.disabled) {
  border-color: #667eea;
  background: #f0f2ff;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
}

.answer-option.disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.answer-option.correct {
  border-color: #28a745;
  background: #d4edda;
}

.answer-option.incorrect {
  border-color: #dc3545;
  background: #f8d7da;
}

.answer-option.correct-answer {
  border-color: #28a745;
  background: #d4edda;
}

.answer-radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.answer-label {
  display: block;
  padding: 1.5rem;
  cursor: pointer;
  margin: 0;
  font-weight: 500;
  color: #495057;
}

.answer-text {
  font-size: 1.1rem;
  line-height: 1.4;
}

.quiz-actions {
  text-align: center;
  margin-top: 2rem;
}

.quiz-actions .btn {
  background: linear-gradient(45deg, #667eea, #764ba2);
  border: none;
  border-radius: 2rem;
  padding: 1rem 2.5rem;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.quiz-actions .btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
}

.quiz-actions .btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.error-container, .loading-container {
  text-align: center;
  color: white;
  padding: 3rem;
}

.error-container .alert {
  border-radius: 1rem;
  border: none;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  margin-bottom: 2rem;
}

.loading-container .spinner-border {
  width: 3rem;
  height: 3rem;
}

/* Responsive adjustments for quiz */
@media (max-width: 768px) {
  .quiz-container {
    padding: 1rem 0;
  }
  
  .quiz-header {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .quiz-progress {
    margin-right: 0;
    width: 100%;
  }
  
  .question-card {
    padding: 1.5rem;
  }
  
  .question-text {
    font-size: 1.25rem;
  }
  
  .answer-label {
    padding: 1rem;
  }
  
  .answer-text {
    font-size: 1rem;
  }
}

/* Quiz Results Page Styles */
.results-container {
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 2rem 0;
}

.results-header {
  text-align: center;
  margin-bottom: 3rem;
  color: white;
}

.results-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.quiz-info h2 {
  color: white;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.quiz-meta {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.score-summary {
  margin-bottom: 3rem;
}

.score-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  gap: 2rem;
  max-width: 600px;
  margin: 0 auto;
}

.score-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4CAF50, #8BC34A);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(76, 175, 80, 0.3);
}

.score-percentage {
  font-size: 2.5rem;
  font-weight: 700;
  color: white;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.score-details {
  flex: 1;
}

.score-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid #e9ecef;
}

.score-item:last-child {
  border-bottom: none;
}

.score-label {
  font-weight: 600;
  color: #495057;
}

.score-value {
  font-weight: 700;
  font-size: 1.1rem;
}

.score-value.correct {
  color: #28a745;
}

.score-value.incorrect {
  color: #dc3545;
}

.questions-review {
  margin-bottom: 3rem;
}

.review-title {
  color: white;
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
  font-weight: 600;
}

.question-review-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 1rem;
  padding: 2rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  border-left: 5px solid #e9ecef;
  transition: transform 0.3s ease;
}

.question-review-card:hover {
  transform: translateY(-2px);
}

.question-review-card.correct {
  border-left-color: #28a745;
}

.question-review-card.incorrect {
  border-left-color: #dc3545;
}

.question-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.question-number {
  font-weight: 600;
  color: #495057;
  font-size: 1.1rem;
}

.question-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
}

.question-status .text-success {
  color: #28a745 !important;
}

.question-status .text-danger {
  color: #dc3545 !important;
}

.question-text {
  font-size: 1.2rem;
  font-weight: 600;
  color: #495057;
  margin-bottom: 1.5rem;
  line-height: 1.4;
}

.answers-comparison {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.answer-section {
  flex: 1;
}

.answer-label {
  font-weight: 600;
  color: #495057;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.answer-option {
  padding: 1rem;
  border-radius: 0.5rem;
  border: 2px solid #e9ecef;
  display: flex;
  align-items: center;
  font-weight: 500;
  transition: all 0.3s ease;
}

.user-answer.correct {
  background: #d4edda;
  border-color: #28a745;
  color: #155724;
}

.user-answer.incorrect {
  background: #f8d7da;
  border-color: #dc3545;
  color: #721c24;
}

.correct-answer {
  background: #d4edda;
  border-color: #28a745;
  color: #155724;
}

.question-timing {
  margin-top: 1rem;
  text-align: right;
}

.question-actions {
  margin-top: 1rem;
  text-align: left;
}

.more-info-btn {
  background: linear-gradient(45deg, #17a2b8, #138496);
  border: none;
  border-radius: 0.5rem;
  padding: 0.5rem 1rem;
  font-weight: 500;
  font-size: 0.9rem;
  color: white;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(23, 162, 184, 0.3);
}

.more-info-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(23, 162, 184, 0.4);
  background: linear-gradient(45deg, #138496, #117a8b);
}

.more-info-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.results-actions {
  text-align: center;
  padding: 2rem 0;
}

.results-actions .btn {
  margin: 0 0.5rem;
  padding: 1rem 2rem;
  font-weight: 600;
  border-radius: 2rem;
  transition: all 0.3s ease;
}

.results-actions .btn-primary {
  background: linear-gradient(45deg, #667eea, #764ba2);
  border: none;
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.results-actions .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
}

.results-actions .btn-outline-primary {
  border: 2px solid #667eea;
  color: #667eea;
}

.results-actions .btn-outline-primary:hover {
  background: #667eea;
  color: white;
  transform: translateY(-2px);
}

.error-container, .loading-container {
  text-align: center;
  color: white;
  padding: 3rem;
}

.error-container .alert {
  border-radius: 1rem;
  border: none;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  margin-bottom: 2rem;
}

.loading-container .spinner-border {
  width: 3rem;
  height: 3rem;
}

/* Responsive adjustments for results */
@media (max-width: 768px) {
  .results-container {
    padding: 1rem 0;
  }
  
  .results-title {
    font-size: 2rem;
  }
  
  .score-card {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  
  .score-circle {
    width: 100px;
    height: 100px;
  }
  
  .score-percentage {
    font-size: 2rem;
  }
  
  .question-review-card {
    padding: 1.5rem;
  }
  
  .question-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .answers-comparison {
    gap: 1.5rem;
  }
  
  .results-actions .btn {
    display: block;
    width: 100%;
    margin: 0.5rem 0;
  }
}

/* Authentication Pages Styles */
.auth-container {
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 2rem 0;
  display: flex;
  align-items: center;
}

.auth-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 1.5rem;
  padding: 2.5rem;
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-title {
  color: #495057;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.auth-subtitle {
  color: #6c757d;
  font-size: 1.1rem;
  margin-bottom: 0;
}

.form-group {
  margin-bottom: 1.5rem;
}

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

.form-control {
  border: 2px solid #e9ecef;
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.password-input-group {
  position: relative;
  display: flex;
}

.password-input-group .form-control {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  border-right: none;
}

.password-input-group .btn {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  border-left: 1px solid #e9ecef;
  background: #f8f9fa;
  border-color: #e9ecef;
  color: #6c757d;
  transition: all 0.3s ease;
}

.password-input-group .btn:hover {
  background: #e9ecef;
  border-color: #dee2e6;
}

.form-text {
  font-size: 0.875rem;
  color: #6c757d;
  margin-top: 0.25rem;
}

.btn-primary {
  background: linear-gradient(45deg, #667eea, #764ba2);
  border: none;
  border-radius: 0.75rem;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
  background: linear-gradient(45deg, #5a6fd8, #6a4190);
}

.btn-outline-primary {
  border: 2px solid #667eea;
  color: #667eea;
  border-radius: 0.75rem;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.btn-outline-primary:hover {
  background: #667eea;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.btn-outline-secondary {
  border: 2px solid #6c757d;
  color: #6c757d;
  border-radius: 0.75rem;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.btn-outline-secondary:hover {
  background: #6c757d;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(108, 117, 125, 0.3);
}

.auth-divider {
  text-align: center;
  margin: 2rem 0;
  position: relative;
}

.auth-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: #e9ecef;
}

.auth-divider span {
  background: rgba(255, 255, 255, 0.95);
  padding: 0 1rem;
  color: #6c757d;
  font-weight: 500;
}

.auth-footer {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e9ecef;
}

.alert {
  border-radius: 0.75rem;
  border: none;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  margin-bottom: 1.5rem;
}

.alert-danger {
  background: #f8d7da;
  color: #721c24;
}

.alert-success {
  background: #d4edda;
  color: #155724;
}

/* Responsive adjustments for auth pages */
@media (max-width: 768px) {
  .auth-container {
    padding: 1rem 0;
  }
  
  .auth-card {
    padding: 2rem 1.5rem;
    margin: 1rem;
  }
  
  .auth-title {
    font-size: 1.75rem;
  }
  
  .auth-subtitle {
    font-size: 1rem;
  }
}

/* Progress Details Modal Styles */
.progress-details-content {
  line-height: 1.6;
}

.privacy-features {
  margin: 1.5rem 0;
}

.feature-item {
  border-left: 3px solid #667eea;
  padding-left: 1rem;
  transition: all 0.3s ease;
}

.feature-item:hover {
  background: rgba(102, 126, 234, 0.05);
  border-left-color: #764ba2;
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  margin-left: -0.75rem;
  margin-right: -0.75rem;
}

.privacy-icon {
  font-size: 1.5rem;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(102, 126, 234, 0.1);
  border-radius: 50%;
  flex-shrink: 0;
}

.trust-message {
  border-left: 4px solid #28a745;
  background: linear-gradient(135deg, rgba(40, 167, 69, 0.05), rgba(40, 167, 69, 0.1)) !important;
}

.modal-content {
  border: none;
  border-radius: 1rem;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.modal-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 1rem 1rem 0 0;
  border-bottom: none;
}

.modal-header .btn-close {
  filter: invert(1);
}

.modal-title {
  font-weight: 600;
  font-size: 1.25rem;
}

.modal-body {
  padding: 2rem;
}

.modal-footer {
  border-top: 1px solid #e9ecef;
  padding: 1rem 2rem;
}

/* Feature card button styling */
.feature-card .btn {
  border-radius: 0.5rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.feature-card .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

/* Responsive adjustments for modal */
@media (max-width: 768px) {
  .modal-body {
    padding: 1.5rem;
  }
  
  .modal-footer {
    padding: 1rem 1.5rem;
  }
  
  .feature-item {
    padding-left: 0.75rem;
  }
  
  .privacy-icon {
    width: 2rem;
    height: 2rem;
    font-size: 1.25rem;
  }
}

/* Auth Section Styles */
.auth-section {
  text-align: center;
}

.auth-info-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 1.5rem;
  padding: 2.5rem;
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-title {
  color: #495057;
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.auth-subtitle {
  color: #6c757d;
  font-size: 1.1rem;
  margin-bottom: 0;
}

.auth-actions {
  margin-bottom: 2rem;
}

.auth-btn {
  border-radius: 2rem;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.auth-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
}

.auth-btn.btn-primary {
  background: linear-gradient(45deg, #667eea, #764ba2);
  border: none;
}

.auth-btn.btn-primary:hover {
  background: linear-gradient(45deg, #5a6fd8, #6a4190);
}

.auth-btn.btn-outline-primary {
  border: 2px solid #667eea;
  color: #667eea;
}

.auth-btn.btn-outline-primary:hover {
  background: #667eea;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
}

.auth-features {
  border-top: 1px solid #e9ecef;
  padding-top: 2rem;
}

.auth-feature {
  padding: 1rem;
  transition: transform 0.3s ease;
}

.auth-feature:hover {
  transform: translateY(-5px);
}

.auth-feature-icon {
  font-size: 2rem;
  color: #667eea;
  margin-bottom: 1rem;
  display: block;
}

.auth-feature h6 {
  color: #495057;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* Responsive adjustments for auth section */
@media (max-width: 768px) {
  .auth-info-card {
    padding: 2rem 1.5rem;
    margin: 1rem;
  }
  
  .auth-title {
    font-size: 1.5rem;
  }
  
  .auth-subtitle {
    font-size: 1rem;
  }
  
  .auth-actions .btn {
    display: block;
    width: 100%;
    margin: 0.5rem 0;
  }
  
  .auth-features .row {
    flex-direction: column;
  }
  
  .auth-feature {
    margin-bottom: 1.5rem;
  }
}

/* Share Details Modal Styles */
.share-details-content {
  line-height: 1.6;
}

.sharing-features {
  margin: 1.5rem 0;
}

.sharing-icon {
  font-size: 1.5rem;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(40, 167, 69, 0.1);
  border-radius: 50%;
  flex-shrink: 0;
}

.sharing-message {
  border-left: 4px solid #28a745;
  background: linear-gradient(135deg, rgba(40, 167, 69, 0.05), rgba(40, 167, 69, 0.1)) !important;
}

/* Responsive adjustments for share modal */
@media (max-width: 768px) {
  .sharing-icon {
    width: 2rem;
    height: 2rem;
    font-size: 1.25rem;
  }
}

/* Management Icons Styles */
.management-icon {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
}

.management-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: rgba(102, 126, 234, 0.1);
  border: 2px solid rgba(102, 126, 234, 0.3);
  border-radius: 50%;
  color: #667eea;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

.management-link:hover {
  background: rgba(102, 126, 234, 0.2);
  border-color: #667eea;
  color: #5a6fd8;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
  text-decoration: none;
}

.management-link i {
  font-size: 1.1rem;
}

/* Ensure feature cards have relative positioning for absolute positioned icons */
.feature-card {
  position: relative;
}

/* Responsive adjustments for management icons */
@media (max-width: 768px) {
  .management-icon {
    top: 0.75rem;
    right: 0.75rem;
  }
  
  .management-link {
    width: 2rem;
    height: 2rem;
  }
  
  .management-link i {
    font-size: 0.9rem;
  }
}

/* Management Pages Styles */
.manage-container {
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 2rem 0;
}

.manage-header {
  margin-bottom: 2rem;
}

.manage-title {
  color: white;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.manage-subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  margin-bottom: 0;
}

.manage-content {
  max-width: 1200px;
  margin: 0 auto;
}

.settings-card, .knowledge-card, .progress-card, .groups-card, .friends-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 1rem;
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin-bottom: 2rem;
}

.card-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 1rem 1rem 0 0;
  padding: 1.5rem;
  border-bottom: none;
}

.card-title {
  font-weight: 600;
  margin-bottom: 0;
  font-size: 1.25rem;
}

.card-body {
  padding: 2rem;
}

.setting-item {
  margin-bottom: 2rem;
}

.setting-item:last-child {
  margin-bottom: 0;
}

.form-label {
  font-weight: 600;
  color: #495057;
  margin-bottom: 0.75rem;
}

.range-value {
  text-align: center;
  font-weight: 600;
  color: #667eea;
  margin-top: 0.5rem;
}

.topic-item {
  display: flex;
  align-items: center;
  padding: 1rem;
  border: 1px solid #e9ecef;
  border-radius: 0.75rem;
  transition: all 0.3s ease;
}

.topic-item:hover {
  border-color: #667eea;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.1);
  transform: translateY(-2px);
}

.topic-icon {
  font-size: 2rem;
  margin-right: 1rem;
  width: 3rem;
  text-align: center;
}

.topic-content {
  flex: 1;
}

.stat-item {
  padding: 1.5rem;
  background: rgba(102, 126, 234, 0.1);
  border-radius: 1rem;
  border: 1px solid rgba(102, 126, 234, 0.2);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: #667eea;
  margin-bottom: 0.5rem;
}

.stat-label {
  color: #6c757d;
  font-weight: 500;
  font-size: 0.9rem;
}

.chart-bars {
  display: flex;
  align-items: end;
  justify-content: space-between;
  height: 200px;
  padding: 1rem 0;
}

.chart-bar {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 0.25rem;
}

.bar-fill {
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 0.25rem 0.25rem 0 0;
  width: 100%;
  min-height: 20px;
  transition: all 0.3s ease;
}

.bar-label {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: #6c757d;
  font-weight: 500;
}

.group-item {
  display: flex;
  align-items: center;
  padding: 1.5rem;
  border: 1px solid #e9ecef;
  border-radius: 0.75rem;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.group-item:hover {
  border-color: #667eea;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.1);
  transform: translateY(-2px);
}

.group-item:last-child {
  margin-bottom: 0;
}

.group-icon {
  font-size: 2rem;
  margin-right: 1rem;
  width: 3rem;
  text-align: center;
}

.group-content {
  flex: 1;
}

.group-stats {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
}

.achievement-list {
  margin-top: 1rem;
}

.achievement-item {
  display: flex;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid #e9ecef;
}

.achievement-item:last-child {
  border-bottom: none;
}

.achievement-item i {
  margin-right: 0.75rem;
  font-size: 1.2rem;
}

.sharing-options {
  margin-top: 1rem;
}

.sharing-options .form-check {
  margin-bottom: 0.75rem;
}

.info-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  height: fit-content;
}

.info-title {
  color: #495057;
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

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

.info-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #e9ecef;
  color: #6c757d;
  font-size: 0.9rem;
}

.info-list li:last-child {
  border-bottom: none;
}

.info-list li::before {
  content: "•";
  color: #667eea;
  font-weight: bold;
  margin-right: 0.5rem;
}

/* Responsive adjustments for management pages */
@media (max-width: 768px) {
  .manage-container {
    padding: 1rem 0;
  }
  
  .manage-title {
    font-size: 2rem;
  }
  
  .card-body {
    padding: 1.5rem;
  }
  
  .chart-bars {
    height: 150px;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .topic-item, .group-item {
    flex-direction: column;
    text-align: center;
  }
  
  .topic-icon, .group-icon {
    margin-right: 0;
    margin-bottom: 1rem;
  }
}

/* Quiz Results Styles */
.quiz-results-section {
  max-height: 400px;
  overflow-y: auto;
}

.recent-results-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.result-item {
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 1rem;
  background: #fff;
  transition: all 0.2s ease;
  cursor: pointer;
}

.result-item:hover {
  border-color: #007bff;
  box-shadow: 0 2px 8px rgba(0, 123, 255, 0.15);
  transform: translateY(-1px);
}

.result-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.result-quiz-name {
  flex: 1;
  margin-right: 1rem;
}

.result-quiz-name h6 {
  color: #495057;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.result-quiz-name small {
  color: #6c757d;
  font-size: 0.8rem;
}

.result-score {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.score-display {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
}

.score-percentage {
  font-size: 1.25rem;
  font-weight: 700;
  color: #28a745;
}

.score-fraction {
  font-size: 0.75rem;
  color: #6c757d;
  font-weight: 500;
}

.score-badge {
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.score-good {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.score-poor {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.result-details {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
}

.result-category,
.result-difficulty,
.result-time {
  display: flex;
  align-items: center;
  color: #6c757d;
}

.result-category i,
.result-difficulty i,
.result-time i {
  font-size: 0.75rem;
}

.result-actions {
  display: flex;
  justify-content: flex-end;
}

.view-details-btn {
  font-size: 0.75rem;
  padding: 0.375rem 0.75rem;
}

.no-results {
  text-align: center;
  padding: 2rem 1rem;
  color: #6c757d;
}

.no-results i {
  font-size: 2rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

/* Quiz Result Modal Styles */
.quiz-result-details {
  padding: 1rem 0;
}

.result-summary {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 1.5rem;
  border-left: 4px solid #007bff;
}

.result-summary h6 {
  color: #007bff;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

/* Stat Cards in Modal */
.stat-card {
  display: flex;
  align-items: center;
  padding: 1rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  border: 1px solid #e9ecef;
  transition: all 0.2s ease;
}

.stat-card:hover {
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  transform: translateY(-1px);
}

.stat-icon {
  font-size: 1.5rem;
  margin-right: 1rem;
  width: 40px;
  text-align: center;
}

.stat-content {
  flex: 1;
}

.stat-label {
  font-size: 0.875rem;
  color: #6c757d;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.stat-value {
  font-size: 1.25rem;
  font-weight: 600;
  color: #212529;
}

.performance-analysis {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 1.5rem;
  margin-top: 1rem;
}

.performance-analysis h6 {
  color: #495057;
  font-weight: 600;
  margin-bottom: 1rem;
}

/* Additional Statistics Styles */
.additional-stats {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 1rem;
  border-left: 4px solid #007bff;
}

.additional-stats h6 {
  color: #007bff;
  font-weight: 600;
  margin-bottom: 1rem;
}

.stat-detail {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid #e9ecef;
}

.stat-detail:last-child {
  border-bottom: none;
}

.stat-detail-label {
  font-weight: 500;
  color: #6c757d;
}

.stat-detail-value {
  font-weight: 600;
  color: #007bff;
}

/* Question Review Styles */
.questions-review {
  margin-top: 2rem;
}

.question-review-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.question-review-card {
  border: 1px solid #e9ecef;
  border-radius: 12px;
  padding: 1.5rem;
  background: #fff;
  transition: all 0.2s ease;
}

.question-review-card.correct {
  border-left: 4px solid #28a745;
  background: linear-gradient(135deg, #f8fff9 0%, #ffffff 100%);
}

.question-review-card.incorrect {
  border-left: 4px solid #dc3545;
  background: linear-gradient(135deg, #fff8f8 0%, #ffffff 100%);
}

.question-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.question-number {
  font-weight: 600;
  color: #495057;
  font-size: 1.1rem;
}

.question-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.status-text {
  font-weight: 600;
  font-size: 0.9rem;
}

.question-text {
  font-size: 1.1rem;
  color: #495057;
  font-weight: 500;
  margin-bottom: 1.5rem;
  line-height: 1.4;
}

.answers-comparison {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.answer-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.answer-label {
  font-weight: 600;
  color: #495057;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.answer-option {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  font-weight: 500;
  border: 1px solid #e9ecef;
}

.answer-option.user-answer.correct {
  background: #d4edda;
  border-color: #c3e6cb;
  color: #155724;
}

.answer-option.user-answer.incorrect {
  background: #f8d7da;
  border-color: #f5c6cb;
  color: #721c24;
}

.answer-option.correct-answer {
  background: #d1ecf1;
  border-color: #bee5eb;
  color: #0c5460;
}

.question-timing {
  margin-top: 0.5rem;
}

.question-actions {
  display: flex;
  justify-content: flex-end;
}

.more-info-btn {
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
}

/* Mobile Responsive for Quiz Results */
@media (max-width: 768px) {
  .result-details {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .result-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .result-quiz-name {
    margin-right: 0;
    margin-bottom: 0.5rem;
  }
  
  .result-score {
    align-self: flex-end;
  }
  
  .stat-detail {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
  
  .question-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .question-review-card {
    padding: 1rem;
  }
}