:root {
  --primary-color: #4a6fa5;
  --secondary-color: #6c757d;
  --success-color: #28a745;
  --danger-color: #dc3545;
  --warning-color: #ffc107;
  --info-color: #17a2b8;
  --light-color: #f8f9fa;
  --dark-color: #343a40;
  --border-radius: 5px;
  --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: #f5f7fa;
  color: #333;
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.header {
  text-align: center;
  margin-bottom: 30px;
  padding: 20px 0;
}

.header h1 {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.header .subtitle {
  font-size: 1.1rem;
  color: var(--secondary-color);
}

.actions {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border: none;
  border-radius: var(--border-radius);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn i {
  margin-right: 8px;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background-color: #3a5a8c;
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: white;
}

.btn-secondary:hover {
  background-color: #5a6268;
  transform: translateY(-2px);
}

.btn-success {
  background-color: var(--success-color);
  color: white;
}

.btn-warning {
  background-color: var(--warning-color);
  color: var(--dark-color);
}

.btn-danger {
  background-color: var(--danger-color);
  color: white;
}

.btn-reset {
  background-color: var(--light-color);
  color: var(--dark-color);
  border: 1px solid #ddd;
}

.btn-reset:hover {
  background-color: #e2e6ea;
}

/* Form Styles */
.form-container {
  background-color: white;
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  margin-bottom: 30px;
  transition: var(--transition);
}

.form-container.hidden {
  display: none;
}

.news-form {
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-group {
  margin-bottom: 20px;
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.form-row .form-group {
  flex: 1;
  min-width: 200px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--dark-color);
}

input[type="text"],
input[type="number"],
input[type="file"],
textarea,
select {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  font-size: 16px;
  transition: var(--transition);
}

input[type="text"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 2px rgba(74, 111, 165, 0.2);
}

.input-with-button {
  display: flex;
  gap: 10px;
}

.input-with-button input {
  flex: 1;
}

.btn-add-author {
  background-color: var(--success-color);
  color: white;
  border: none;
  border-radius: var(--border-radius);
  width: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.btn-add-author:hover {
  background-color: #218838;
  transform: scale(1.05);
}

.btn-remove-author {
  background-color: var(--danger-color);
  color: white;
  border: none;
  border-radius: var(--border-radius);
  width: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.btn-remove-author:hover {
  background-color: #c82333;
  transform: scale(1.05);
}

.file-upload {
  position: relative;
  overflow: hidden;
  display: inline-block;
  width: 100%;
}

.file-upload input[type="file"] {
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.file-upload-label {
  display: block;
  padding: 12px;
  background-color: var(--light-color);
  border: 1px dashed #ccc;
  border-radius: var(--border-radius);
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}

.file-upload-label:hover {
  background-color: #e9ecef;
  border-color: var(--primary-color);
}

.file-upload-label i {
  margin-right: 8px;
}

.file-name {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  color: var(--secondary-color);
}

.image-preview-container {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 15px;
}

.image-preview {
  width: 150px;
  height: 150px;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f5f5f5;
  position: relative;
  transition: var(--transition);
}

.image-preview:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.image-preview img {
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
}

.remove-image {
  position: absolute;
  top: 5px;
  right: 5px;
  background-color: var(--danger-color);
  color: white;
  border: none;
  border-radius: 50%;
  width: 25px;
  height: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 12px;
  transition: var(--transition);
}

.remove-image:hover {
  transform: scale(1.1);
}

.form-actions {
  display: flex;
  gap: 15px;
  margin-top: 30px;
}

/* 🌟 News List Wrapper */
.news-list {
  background: #f9fafe;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  font-family: 'Segoe UI', sans-serif;
}

/* 📰 Section Heading */
.news-list h2 {
  margin-bottom: 20px;
  color: #333;
  font-size: 28px;
  text-align: center;
}

/* 🧩 News Container */
.news-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* 🔲 News Card Style */
.news-card {
  padding: 25px 30px;
  border-radius: 16px;
  background-color: #fff;
  border-left: 6px solid var(--accent-color, #2196f3); /* default blue */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
  transition: 0.3s ease;
}

.news-card:hover {
  transform: translateY(-3px);
}

/* 🏷️ Category Color Examples */
.news-card.science {
  border-left-color: #f44336; /* red */
  background-color: #fff6f6;
}
.news-card.sports {
  border-left-color: #ff9800; /* orange */
  background-color: #fff8ed;
}
.news-card.environment {
  border-left-color: #4caf50; /* green */
  background-color: #f0fff4;
}
.news-card.technology {
  border-left-color: #9c27b0; /* purple */
  background-color: #f7f3ff;
}

/* 📘 Title and Content */
.news-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: #333;
}

.news-card p {
  color: #555;
  font-size: 16px;
  margin-bottom: 6px;
}

/* 👥 Author List */
.author-list ul {
  margin-top: 10px;
  padding-left: 20px;
  list-style: disc;
  color: #444;
}

/* 🖼 Image Gallery */
.news-images {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 12px;
  margin-top: 15px;
}

.news-images img {
  width: 100%;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
}

📌 Buttons
.card-buttons {
  margin-top: 20px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  
}

.card-buttons .btn {
  padding: 8px 14px;
  font-size: 14px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: 0.2s ease;
}

.btn-view {
  background-color: #2196f3;
  color: white;
}

.btn-view:hover {
  background-color: #1976d2;
}

.btn-update {
  background-color: #ffc107;
  color: #000;
}

.btn-update:hover {
  background-color: #e0a800;
}

.btn-delete {
  background-color: #f44336;
  color: white;
}

.btn-delete:hover {
  background-color: #d32f2f;
}


/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.3s;
}

.modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 25px;
  border-radius: var(--border-radius);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  width: 90%;
  max-width: 600px;
  position: relative;
  animation: slideDown 0.3s;
}

@keyframes slideDown {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-content h2, .modal-content h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
}

.close, .close-modal {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  font-weight: bold;
  color: #aaa;
  cursor: pointer;
  transition: var(--transition);
}

.close:hover, .close-modal:hover {
  color: var(--danger-color);
  transform: rotate(90deg);
}

.modal-images {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 15px;
  margin: 15px 0;
}

.modal-images img {
  width: 100%;
  max-height: 150px;
  object-fit: cover;
  border-radius: var(--border-radius);
}

/* Category Management Styles */
.category-form {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.category-form input {
  flex: 1;
  min-width: 200px;
}

.category-list-container {
  max-height: 400px;
  overflow-y: auto;
  padding-right: 5px;
}

.category-list {
  list-style: none;
  border-radius: var(--border-radius);
  overflow: hidden;
}

.category-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 15px;
  background-color: white;
  border-bottom: 1px solid #eee;
  transition: var(--transition);
}

.category-list li:last-child {
  border-bottom: none;
}

.category-list li:hover {
  background-color: #f8f9fa;
}

.category-actions {
  display: flex;
  gap: 8px;
}

.category-actions button {
  padding: 5px 10px;
  font-size: 13px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
}

.category-actions button:hover {
  transform: translateY(-2px);
}

/* Responsive Styles */
@media (max-width: 768px) {
  .form-row {
    flex-direction: column;
    gap: 0;
  }

  .form-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    margin-bottom: 10px;
  }

  .header h1 {
    font-size: 2rem;
  }

  .image-preview {
    width: 120px;
    height: 120px;
  }

  .modal-content {
    margin: 20% auto;
    width: 95%;
  }
}

@media (max-width: 480px) {
  .form-container,
  .news-list {
    padding: 20px;
  }

  .header h1 {
    font-size: 1.8rem;
  }

  .image-preview {
    width: 100px;
    height: 100px;
  }

  .actions {
    flex-direction: column;
  }

  .category-form {
    flex-direction: column;
  }

  .category-form input,
  .category-form button {
    width: 100%;
  }
}

.actions {
  display: flex;
  gap: 15px; /* space between buttons */
  justify-content: end;
  background-color: #e9e6e6;
    padding: 20px;
    border-radius: 8px;
}

.actions button {
  display: flex;
  align-items: center;
  gap: 8px; /* space between icon and text */
  padding: 10px 20px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
  user-select: none;
}

.actions button i {
  font-size: 18px;
}

/* Primary Button */
.btn-primary {
  background: linear-gradient(135deg, #4A90E2, #357ABD);
  color: white;
  box-shadow: 0 4px 15px rgba(70,130,180,0.4);
}

.btn-primary:hover,
.btn-primary:focus {
  background: linear-gradient(135deg, #357ABD, #2A65A0);
  box-shadow: 0 6px 20px rgba(50,110,170,0.6);
  outline: none;
}

/* Secondary Button */
.btn-secondary {
  background: #f0f0f0;
  color: #444;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  border: 1.5px solid #ccc;
}

.btn-secondary:hover,
.btn-secondary:focus {
  background: #e0e0e0;
  border-color: #aaa;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  outline: none;
}
.card-buttons {
   display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 15px;
}

.card-buttons .btn {
  display: flex;
  align-items: center;
  gap: 6px; /* space between icon and text */
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
  user-select: none;
}

/* Icon style */
.card-buttons .btn i {
  font-size: 16px;
}

/* View Button - Soft Blue */
.btn-view {
  background-color: #2f86eb;
  color: white;
  box-shadow: 0 3px 8px rgba(47,134,235,0.4);
}

.btn-view:hover,
.btn-view:focus {
  background-color: #256ec1;
  box-shadow: 0 4px 14px rgba(37,110,193,0.6);
  outline: none;
}

/* Update Button - Soft Orange */
.btn-update {
  background-color: #f0a330;
  color: white;
  box-shadow: 0 3px 8px rgba(240,163,48,0.4);
}

.btn-update:hover,
.btn-update:focus {
  background-color: #c27e23;
  box-shadow: 0 4px 14px rgba(194,126,35,0.6);
  outline: none;
}

/* Delete Button - Soft Red */
.btn-delete {
  background-color: #e94f4f;
  color: white;
  box-shadow: 0 3px 8px rgba(233,79,79,0.4);
}

.btn-delete:hover,
.btn-delete:focus {
  background-color: #b63b3b;
  box-shadow: 0 4px 14px rgba(182,59,59,0.6);
  outline: none;
}
#addCategoryBtn.btn-primary {
  background: linear-gradient(135deg, #007bff, #0056b3);
  color: white;
  border: none;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.5);
  transition: background 0.3s ease, box-shadow 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  user-select: none;
}

#addCategoryBtn.btn-primary:hover,
#addCategoryBtn.btn-primary:focus {
  background: linear-gradient(135deg, #0056b3, #003d80);
  box-shadow: 0 6px 20px rgba(0, 86, 179, 0.7);
  outline: none;
}
.form-actions {
  display: flex;
  gap: 15px; /* space between buttons */
  margin-top: 20px;
}

/* Save News Button - Primary style */
.form-actions .btn-primary {
  background: linear-gradient(135deg, #28a745, #1e7e34);
  color: white;
  border: none;
  padding: 12px 26px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(40, 167, 69, 0.5);
  transition: background 0.3s ease, box-shadow 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  user-select: none;
}

.form-actions .btn-primary:hover,
.form-actions .btn-primary:focus {
  background: linear-gradient(135deg, #1e7e34, #155d27);
  box-shadow: 0 6px 22px rgba(30, 126, 52, 0.7);
  outline: none;
}

/* Cancel Button - Reset style */
.form-actions .btn-reset {
  background: transparent;
  color: #555;
  border: 2px solid #ccc;
  padding: 12px 26px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  user-select: none;
}

.form-actions .btn-reset:hover,
.form-actions .btn-reset:focus {
  background-color: #f5f5f5;
  border-color: #999;
  color: #222;
  outline: none;
}

/* Icon size */
.form-actions button i {
  font-size: 18px;
}
.header {
  background: linear-gradient(135deg, #004e92, #000428);
  color: white;
  padding: 30px 40px;
  border-radius: 12px;
  margin-bottom: 25px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.header h1 {
  font-size: 32px;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
}

.header h1 i {
  font-size: 30px;
  color: #ffd700; /* golden icon color for contrast */
}

.header .subtitle {
  margin-top: 10px;
  font-size: 16px;
  font-weight: 400;
  color: #dcdcdc;
}
@media (max-width: 600px) {
  .header {
    padding: 20px;
    text-align: center;
  }

  .header h1 {
    justify-content: center;
    font-size: 26px;
  }

  .header .subtitle {
    font-size: 14px;
  }
}
/* quiz */

/* Container for quiz list */
.news-list {
  background-color: #e9e6e6;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 0 8px rgba(0,0,0,0.05);
  margin: 20px 0;
}

/* Header */
.news-list h2 {
  font-size: 24px;
  margin-bottom: 20px;
  color: #333;
}

/* Message when no quiz exists */
.empty-message {
  text-align: center;
  color: #999;
  font-style: italic;
  padding: 20px;
}

/* Quiz card base style */
.quiz-card {
  background-color: #fff;
  border-left: 6px solid #2196f3;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 16px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.quiz-card h3 {
  margin-top: 0;
  margin-bottom: 10px;
  color: #333;
}

.quiz-card p {
  margin: 8px 0;
}

/* Answer options list */
.quiz-options ol {
  padding-left: 20px;
  margin: 0;
}

.quiz-options li {
  margin: 5px 0;
  padding: 4px 8px;
  border-radius: 4px;
  background-color: #f1f1f1;
  list-style-type: decimal;
}

/* Highlight correct answer */
.quiz-options li.correct-answer {
  background-color: #d4edda;
  font-weight: bold;
  color: #155724;
  border-left: 4px solid #28a745;
}

/* Buttons section */
.card-buttons {
  margin-top: 15px;
}

.card-buttons .btn {
  margin-right: 10px;
  padding: 6px 14px;
  font-size: 14px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.card-buttons .btn-update-quiz {
  background-color: #007bff;
  color: #fff;
}

.card-buttons .btn-update-quiz:hover {
  background-color: #0056b3;
}

.card-buttons .btn-delete-quiz {
  background-color: #dc3545;
  color: #fff;
}

.card-buttons .btn-delete-quiz:hover {
  background-color: #b52a37;
}
.quiz-edit-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.quiz-edit-form {
    background: white;
    padding: 20px;
    border-radius: 5px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
}

.option-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.option-row input {
    flex: 1;
}

.btn-remove-option {
    background: #ff4444;
    color: white;
    border: none;
    width: 30px;
    border-radius: 3px;
    cursor: pointer;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}
.quiz-section {
  margin-top: 30px;
}

.quiz-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.quiz-header h2 {
  margin: 0;
}

.quiz-container {
  background-color: #f9f9f9;
  padding: 20px;
  border-radius: 5px;
  min-height: 100px;
}


/* quiz */
/* Quiz Modal Container */
.quiz-modal-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.quiz-modal-container.active {
  opacity: 1;
  visibility: visible;
}

/* Modal Content */
.quiz-modal-content {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 25px;
  position: relative;
}

/* Close Button */
.quiz-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
  color: #666;
  background: none;
  border: none;
}

.quiz-modal-close:hover {
  color: #333;
}

/* Form Styles */
.quiz-form {
  margin-top: 15px;
}

.quiz-form-title {
  margin-bottom: 20px;
  color: #2c3e50;
  font-size: 1.5rem;
}

.quiz-form-group {
  margin-bottom: 20px;
}

.quiz-form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
}

.quiz-form-control {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  transition: border-color 0.3s;
}

.quiz-form-control:focus {
  border-color: #3498db;
  outline: none;
}

.quiz-textarea {
  min-height: 100px;
  resize: vertical;
}

/* Options Container */
.quiz-options-container {
  margin-top: 15px;
}

.quiz-option-input {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.quiz-option-field {
  flex: 1;
  margin-right: 10px;
}

.quiz-remove-option {
  background-color: #e74c3c;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 5px 10px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.quiz-remove-option:hover {
  background-color: #c0392b;
}

/* Button Styles */
.quiz-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 25px;
}

.quiz-btn-primary {
  background-color: #3498db;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.quiz-btn-primary:hover {
  background-color: #2980b9;
}

.quiz-btn-secondary {
  background-color: #2ecc71;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.quiz-btn-secondary:hover {
  background-color: #27ae60;
}

.quiz-btn-reset {
  background-color: #95a5a6;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.quiz-btn-reset:hover {
  background-color: #7f8c8d;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .quiz-modal-content {
    width: 95%;
    padding: 15px;
  }
  
  .quiz-form-actions {
    flex-direction: column;
  }
  
  .quiz-btn-primary,
  .quiz-btn-secondary,
  .quiz-btn-reset {
    width: 100%;
  }
}

/* Hidden State */
.quiz-hidden {
  display: none !important;
}

/* MCQ Specific Styles */
.quiz-mcq-container {
  margin-top: 15px;
  padding: 15px;
  background-color: #f8f9fa;
  border-radius: 6px;
}

/* Fillups Specific Styles */
.quiz-fillups-container {
  margin-top: 15px;
  padding: 15px;
  background-color: #f8f9fa;
  border-radius: 6px;
}
.success-popup {
  position: fixed;
  top: 20px;
  right: 20px;
  background-color: #4CAF50;
  color: white;
  padding: 15px 25px;
  border-radius: 4px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.3s ease;
}

.success-popup.show {
  opacity: 1;
  transform: translateX(0);
}
/* date select  */
/* Date Selection Styles */
/* .date-range-container {
  background-color: #f8f9fa;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.date-range-selector {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.date-input {
  flex: 1;
  min-width: 140px;
  padding: 8px 12px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  background-color: white;
}

.date-range-separator {
  color: #6c757d;
  font-weight: bold;
}

.date-range-display {
  padding: 10px;
  background-color: #e9ecef;
  border-radius: 4px;
  font-size: 0.9em;
  color: #495057;
} */

/* Responsive Styles */
/* @media (max-width: 576px) {
  .date-range-selector {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .date-range-separator {
    display: none;
  }
  
  .date-input {
    width: 100%;
  }
} */

/* Background colors for different sections */
/* .form-container {
  background-color: #ffffff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.news-list {
  background-color: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  margin-top: 20px;
}

.quiz-section {
  background-color: #e9ecef;
  padding: 20px;
  border-radius: 8px;
  margin-top: 20px;
} */


.fillups-container {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    margin-top: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.fillups-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.fillup-item {
    background-color: white;
    padding: 15px;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fillup-content {
    flex-grow: 1;
}

.fillup-content p {
    margin: 5px 0;
    line-height: 1.5;
}

.fillup-answer {
    color: #2e7d32;
    font-style: italic;
    margin-top: 8px !important;
}

.fillup-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.btn-edit-fillup, .btn-delete-fillup {
    padding: 5px 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.2s;
}

.btn-edit-fillup {
    background-color: #4a6baf;
    color: white;
}

.btn-edit-fillup:hover {
    background-color: #3a5a9f;
}

.btn-delete-fillup {
    background-color: #e74c3c;
    color: white;
}

.btn-delete-fillup:hover {
    background-color: #c0392b;
}

.filup-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.filup-header h2 {
    margin: 0;
    font-size: 1.4rem;
    color: #333;
}

.filup-header i {
    margin-right: 10px;
    color: #4a6baf;
}

/* MCQ Options - Horizontal Single Row Layout */
.quiz-options {
  margin: 10px 0;
  max-width: 100%;
  overflow: hidden;
}

.quiz-options ol {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  padding: 5px 0;
  margin: 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: #888 #f0f0f0;
  -webkit-overflow-scrolling: touch;
}

/* Custom scrollbar for WebKit browsers */
.quiz-options ol::-webkit-scrollbar {
  height: 4px;
}

.quiz-options ol::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

.quiz-options ol::-webkit-scrollbar-track {
  background: #f0f0f0;
}

/* Option Items */
.quiz-options ol li {
  flex: 0 0 auto;
  padding: 6px 12px;
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 18px;
  white-space: nowrap;
  font-size: 14px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

/* Correct Answer Highlighting */
.quiz-options ol li.correct-answer {
  background: #d4edda;
  border-color: #c3e6cb;
  color: #155724;
  font-weight: 500;
}

/* Letter Indicators (A, B, C...) */
.quiz-options ol li::before {
  content: attr(data-letter) ".";
  font-weight: bold;
  margin-right: 4px;
  color: inherit;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .quiz-options ol li {
    padding: 5px 10px;
    font-size: 13px;
  }
}
.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
}
.current{
  display: flex;
  flex-direction: row;
      justify-content: space-between;
}