/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  color: #333;
  line-height: 1.6;
  pointer-events: auto !important;
  cursor: default;
}

/* Force all interactive elements to be clickable */
/* Removed global pointer-events override to fix cookie consent buttons */

button,
.btn,
.nav-btn,
a[class*="btn"],
[onclick],
.modal-close,
.toolbar-btn,
.dropdown-btn,
.color-btn {
  pointer-events: auto !important;
  cursor: pointer !important;
  user-select: none !important;
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
  position: relative;
  z-index: 10;
}

input,
select,
textarea,
[contenteditable] {
  pointer-events: auto !important;
  cursor: text !important;
}

.modal {
  pointer-events: auto !important;
}

.modal-content {
  pointer-events: auto !important;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  min-height: 100vh;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.1);
  pointer-events: auto;
}

/* Header Styles */
.header {
  background: #1877f2;
  color: white;
  padding: 1rem 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo i {
  font-size: 1.8rem;
  color: #42b883;
}

.nav {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.nav-btn {
  background: transparent;
  border: 2px solid transparent;
  color: white;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  cursor: pointer !important;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  text-decoration: none;
  pointer-events: auto !important;
  user-select: none;
}

.nav-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.nav-btn.active {
  background: #42b883;
  border-color: #42b883;
  box-shadow: 0 4px 15px rgba(66, 184, 131, 0.3);
}

/* Main Content */
.main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.section {
  display: none;
  animation: fadeIn 0.5s ease-in-out;
}

.section.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.section-header h2 {
  font-size: 2rem;
  font-weight: 600;
  color: #1877f2;
}

.section-header p {
  color: #666;
  margin-top: 0.5rem;
}

/* Dashboard Styles */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.dashboard-card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  transition: all 0.3s ease;
}

.dashboard-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.card-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
}

.card-icon.courses {
  background: linear-gradient(135deg, #1877f2, #42b883);
}

.card-icon.assignments {
  background: linear-gradient(135deg, #42b883, #1877f2);
}

.card-icon.notes {
  background: linear-gradient(135deg, #667eea, #764ba2);
}

.card-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.5rem;
}

.card-number {
  font-size: 2rem;
  font-weight: 700;
  color: #1877f2;
  margin-bottom: 0.25rem;
}

.card-description {
  color: #666;
  font-size: 0.9rem;
}

.recent-activity {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid #e5e7eb;
}

.recent-activity h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 1.5rem;
}

.activity-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.no-activity {
  color: #666;
  text-align: center;
  padding: 2rem;
  font-style: italic;
}

/* Button Styles */
.btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  cursor: pointer !important;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  text-decoration: none;
  font-size: 0.9rem;
  pointer-events: auto !important;
  user-select: none;
}

.btn-primary {
  background: #1877f2;
  color: white;
}

.btn-primary:hover {
  background: #166fe5;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(24, 119, 242, 0.3);
}

.btn-secondary {
  background: #42b883;
  color: white;
}

.btn-secondary:hover {
  background: #369870;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(66, 184, 131, 0.3);
}

.btn-danger {
  background: #dc3545;
  color: white;
}

.btn-danger:hover {
  background: #c82333;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

/* Grid Layouts */
.courses-grid,
.notes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.assignments-list,
.resources-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.no-items {
  text-align: center;
  color: #666;
  padding: 3rem;
  font-size: 1.1rem;
  background: white;
  border-radius: 12px;
  border: 2px dashed #e5e7eb;
}

/* Course Card */
.course-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid #e5e7eb;
  transition: all 0.3s ease;
}

.course-card .course-description {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.course-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.course-card h3 {
  color: #1877f2;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.course-card .professor {
  color: #666;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.course-card .dates {
  color: #42b883;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.course-card .course-description {
  color: #666;
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1rem;
  padding: 0.5rem;
  background: #f8f9fa;
  border-radius: 4px;
}

.course-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}

/* Assignment Card */
.assignment-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid #e5e7eb;
  transition: all 0.3s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.assignment-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
}

.assignment-info h3 {
  color: #1877f2;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.assignment-info .course-name {
  color: #42b883;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.assignment-info .due-date {
  color: #666;
  font-size: 0.9rem;
}

.assignment-info .assignment-description {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #666;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.assignment-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
  flex-wrap: wrap;
}

/* Note Card */
.note-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid #e5e7eb;
  transition: all 0.3s ease;
  cursor: pointer;
}

.note-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.note-card h3 {
  color: #1877f2;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.note-card .course-name {
  color: #42b883;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.note-card .note-preview {
  color: #666;
  font-size: 0.9rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Calendar Styles */
.calendar-container {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid #e5e7eb;
}

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

.calendar-header h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1877f2;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background: #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
}

.calendar-day {
  background: white;
  padding: 1rem;
  min-height: 100px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.calendar-day.header {
  background: #f8f9fa;
  min-height: auto;
  padding: 0.75rem;
  font-weight: 600;
  color: #666;
  text-align: center;
}

.calendar-day.other-month {
  background: #f8f9fa;
  color: #ccc;
}

.calendar-day.today {
  background: #e3f2fd;
  border: 2px solid #1877f2;
}

.day-number {
  font-weight: 600;
  color: #333;
}

.calendar-assignment {
  background: #1877f2;
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.calendar-assignment:hover {
  background: #166fe5;
  transform: scale(1.05);
}

.calendar-prep {
  background: #42b883;
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 0.25rem;
}

.calendar-prep:hover {
  background: #369870;
  transform: scale(1.05);
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  z-index: 1000;
  animation: fadeIn 0.3s ease;
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-content {
  background: white;
  border-radius: 12px;
  width: 95%;
  max-width: 1200px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-50px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid #e5e7eb;
}

.modal-header h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #1877f2;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.2rem;
  color: #666;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: #f3f4f6;
  color: #333;
}

/* Form Styles */
form {
  padding: 2rem;
  width: 100%;
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  font-family: inherit;
  min-height: 48px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #1877f2;
  box-shadow: 0 0 0 3px rgba(24, 119, 242, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e7eb;
}

/* Responsive Design */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    text-align: center;
  }

  .nav {
    justify-content: center;
  }

  .nav-btn {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }

  .main {
    padding: 1rem;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-card {
    flex-direction: column;
    text-align: center;
  }

  .courses-grid,
  .notes-grid {
    grid-template-columns: 1fr;
  }

  .assignment-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .assignment-actions {
    align-self: flex-end;
  }

  .calendar-header {
    flex-direction: column;
    gap: 1rem;
  }

  .calendar-day {
    min-height: 80px;
    padding: 0.5rem;
  }

  .form-actions {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .nav {
    flex-direction: column;
    width: 100%;
  }

  .nav-btn {
    justify-content: center;
  }

  .calendar-grid {
    font-size: 0.8rem;
  }

  .calendar-day {
    min-height: 60px;
    padding: 0.25rem;
  }

  .modal-content {
    width: 98%;
    margin: 0.5rem;
  }

  form {
    padding: 1rem;
  }
}

/* Course Section Styles */
.course-section {
  margin-bottom: 2rem;
}

.course-section-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: #1877f2;
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  border-radius: 8px;
  border-left: 4px solid #1877f2;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.course-section-title i {
  color: #42b883;
}

.course-assignments,
.course-notes {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-left: 1rem;
}

.course-notes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  padding-left: 1rem;
}

.course-resources {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-left: 1rem;
}

.course-prep {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-left: 1rem;
}

/* View Field Styles */
.view-field {
  background: #f8f9fa;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 1rem;
  min-height: 2.5rem;
  font-size: 1rem;
  line-height: 1.5;
  color: #333;
}

.view-field:empty::before {
  content: "No information provided";
  color: #999;
  font-style: italic;
}

/* Additional Styles for Assignment States */
.assignment-card.completed {
  opacity: 0.7;
  background: #f8f9fa;
}

.assignment-card.completed h3,
.assignment-card.completed h4 {
  text-decoration: line-through;
  color: #666;
}

.assignment-card.overdue {
  border-left: 4px solid #dc3545;
}

/* Update assignment and note card titles */
.assignment-info h4,
.note-card h4 {
  color: #1877f2;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.note-actions {
  margin-top: 1rem;
  display: flex;
  justify-content: flex-end;
}

.activity-item {
  padding: 0.75rem;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid #42b883;
  display: flex;
  align-items: center;
}

/* Resource Card */
.resource-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid #e5e7eb;
  transition: all 0.3s ease;
}

.resource-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
}

.resource-card h4 {
  color: #1877f2;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.resource-card .resource-url {
  margin-bottom: 1rem;
}

.resource-card .resource-url a {
  color: #1877f2;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  word-break: break-all;
}

.resource-card .resource-url a:hover {
  text-decoration: underline;
}

.resource-card .resource-description {
  color: #666;
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.resource-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
}

/* Prep Card */
.prep-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid #e5e7eb;
  transition: all 0.3s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.prep-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
}

.prep-info h4 {
  color: #42b883;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.prep-info .due-date {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.prep-info .prep-description {
  color: #666;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.prep-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.prep-card.completed {
  opacity: 0.7;
  background: #f8f9fa;
}

.prep-card.completed h4 {
  text-decoration: line-through;
  color: #666;
}

.prep-card.overdue {
  border-left: 4px solid #dc3545;
}

/* Rich Text Editor Styles */
.rich-text-toolbar {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem;
  background: #f8f9fa;
  border: 2px solid #e5e7eb;
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  flex-wrap: wrap;
}

.toolbar-btn {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  padding: 0.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  transition: all 0.2s ease;
  color: #666;
}

.toolbar-btn:hover {
  background: #e9ecef;
  color: #333;
  border-color: #1877f2;
}

.toolbar-btn:active {
  background: #1877f2;
  color: white;
}

.toolbar-separator {
  width: 1px;
  height: 24px;
  background: #e5e7eb;
  margin: 0 0.25rem;
}

/* Dropdown Styles */
.toolbar-dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-btn {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  width: auto;
  padding: 0.5rem 0.75rem;
}

.dropdown-btn .fa-chevron-down {
  font-size: 0.7rem;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  min-width: 120px;
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.2s ease,
    visibility 0.2s ease;
}

.dropdown-menu.active {
  display: block;
  opacity: 1;
  visibility: visible;
}

.dropdown-menu button {
  display: block;
  width: 100%;
  padding: 0.5rem;
  border: none;
  background: transparent;
  text-align: left;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.dropdown-menu button:hover {
  background: #f8f9fa;
}

.color-btn {
  width: 24px !important;
  height: 24px !important;
  border-radius: 50% !important;
  margin: 0.125rem !important;
  display: inline-block !important;
  border: 1px solid #ddd !important;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.color-btn:hover {
  transform: scale(1.1);
  border-color: #333 !important;
}

/* Color dropdown positioning - prevent overlap */
#font-color-dropdown {
  display: flex;
  flex-wrap: wrap;
  width: 140px;
  justify-content: center;
  gap: 0.25rem;
  right: 80px;
  left: auto;
}

#highlight-dropdown {
  display: flex;
  flex-wrap: wrap;
  width: 140px;
  justify-content: center;
  gap: 0.25rem;
  right: 0;
  left: auto;
}

#font-color-dropdown .color-btn,
#highlight-dropdown .color-btn {
  margin: 0.125rem;
}

.rich-text-editor {
  width: 100%;
  min-height: 300px;
  padding: 1rem;
  border: 2px solid #e5e7eb;
  border-top: none;
  border-radius: 0 0 8px 8px;
  font-size: 1.1rem;
  font-family: inherit;
  line-height: 1.5;
  outline: none;
  background: white;
  overflow-y: auto;
}

.rich-text-editor:focus {
  border-color: #1877f2;
  box-shadow: 0 0 0 3px rgba(24, 119, 242, 0.1);
}

.rich-text-editor[contenteditable]:empty::before {
  content: attr(placeholder);
  color: #999;
  font-style: italic;
}

.rich-text-editor ul,
.rich-text-editor ol {
  margin: 10px 0;
  padding-left: 30px;
}

.rich-text-editor li {
  margin: 5px 0;
}

.rich-text-editor table {
  border-collapse: collapse;
  width: 100%;
  margin: 10px 0;
}

.rich-text-editor table td,
.rich-text-editor table th {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: left;
}

.rich-text-editor table th {
  background-color: #f8f9fa;
  font-weight: 600;
}

.rich-text-editor strong {
  font-weight: bold;
}

.rich-text-editor em {
  font-style: italic;
}

.rich-text-editor u {
  text-decoration: underline;
}

/* Note preview with formatted content */
.note-preview {
  color: #666;
  font-size: 0.9rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Rubric Styles */
.rubric-section {
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  padding: 1rem;
  background: #f8f9fa;
}

.rubric-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  font-weight: 500;
  color: #333;
}

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

.criteria-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.criteria-item:hover {
  border-color: #1877f2;
  box-shadow: 0 2px 8px rgba(24, 119, 242, 0.1);
}

.criteria-input {
  flex: 1;
  padding: 0.5rem;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.criteria-input:focus {
  outline: none;
  border-color: #1877f2;
  box-shadow: 0 0 0 2px rgba(24, 119, 242, 0.1);
}

.remove-criteria-btn {
  background: #dc3545;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 0.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  transition: all 0.2s ease;
}

.remove-criteria-btn:hover {
  background: #c82333;
  transform: scale(1.05);
}

.no-criteria {
  text-align: center;
  color: #666;
  font-style: italic;
  padding: 1rem;
}

/* Assignment rubric display */
.assignment-rubric {
  margin-top: 0.75rem;
  padding: 0.75rem;
  background: #f8f9fa;
  border-radius: 6px;
  border-left: 4px solid #42b883;
}

.assignment-rubric h5 {
  color: #42b883;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

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

.rubric-criteria li {
  padding: 0.25rem 0;
  color: #666;
  font-size: 0.85rem;
  position: relative;
  padding-left: 1rem;
}

.rubric-criteria li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #42b883;
  font-weight: bold;
}

/* Data Management Modal Styles */
.data-management-section {
  margin-bottom: 2rem;
  padding: 1.5rem;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f8f9fa;
}

.data-management-section h4 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.info-box {
  background: white;
  padding: 1rem;
  border-radius: 6px;
  border-left: 4px solid #1877f2;
  margin-bottom: 1rem;
}

.info-box p {
  margin: 0.5rem 0;
  color: #666;
}

.info-box strong {
  color: #333;
}

/* Admin Dashboard Styles */
.admin-form {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid #e5e7eb;
  margin-bottom: 2rem;
}

.admin-form h3 {
  color: #1877f2;
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.current-banners {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid #e5e7eb;
}

.current-banners h3 {
  color: #1877f2;
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.banner-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  margin-bottom: 1rem;
  background: #f8f9fa;
}

.banner-preview {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.banner-info p {
  margin: 0.25rem 0;
  font-size: 0.9rem;
  color: #666;
}

.banner-info a {
  color: #1877f2;
  text-decoration: none;
}

.banner-info a:hover {
  text-decoration: underline;
}

.banner-actions {
  flex-shrink: 0;
}

/* Banner Ad Display Styles */
.banner-ad {
  margin: 2rem 0;
  text-align: center;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.banner-ad img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  transition: opacity 0.3s ease;
}

.banner-ad img:hover {
  opacity: 0.8;
}

/* How to Use Section Styles */
.how-to-use-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Video Section Styles */
.video-section iframe {
  max-width: 100%;
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  border-radius: 8px;
}

@media (max-width: 768px) {
  .video-section {
    margin-bottom: 2rem !important;
  }

  .video-section iframe {
    height: 250px;
  }
}

@media (max-width: 480px) {
  .video-section iframe {
    height: 200px;
  }
}

.instruction-card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid #e5e7eb;
  transition: all 0.3s ease;
}

.instruction-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
}

.instruction-card h3 {
  color: #1877f2;
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.instruction-card h3 i {
  color: #42b883;
  font-size: 1.5rem;
}

.instruction-card p {
  color: #666;
  font-size: 1rem;
  line-height: 1.7;
  margin: 0;
}

@media (max-width: 768px) {
  .rich-text-toolbar {
    gap: 0.125rem;
  }

  .toolbar-btn {
    width: 28px;
    height: 28px;
    padding: 0.25rem;
  }

  .rich-text-editor {
    min-height: 150px;
  }

  .rubric-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .criteria-item {
    flex-direction: column;
    align-items: stretch;
  }

  .data-management-section {
    padding: 1rem;
  }

  .banner-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .banner-preview {
    flex-direction: column;
    align-items: flex-start;
  }

  .banner-ad img {
    width: 100%;
    max-width: 728px;
  }
}

/* Forgot Password Link Styles */
.forgot-password-link {
  background: none;
  border: none;
  color: #42b883;
  text-decoration: none;
  cursor: pointer;
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: all 0.3s ease;
  display: inline-block;
  font-weight: 500;
}

.forgot-password-link:hover {
  background: rgba(66, 184, 131, 0.1);
  color: #369870;
  text-decoration: none;
  transform: translateY(-1px);
}

/* Footer Styles */
.footer {
  background: #1877f2;
  background: -webkit-linear-gradient(135deg, #1877f2 0%, #166fe5 100%);
  background: -moz-linear-gradient(135deg, #1877f2 0%, #166fe5 100%);
  background: linear-gradient(135deg, #1877f2 0%, #166fe5 100%);
  color: white;
  padding: 2.5rem 0 1.5rem 0;
  margin-top: 4rem;
  border-top: 3px solid #42b883;
  -webkit-box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  -moz-box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: transparent;
  background: -webkit-linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  background: -moz-linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  position: relative;
  z-index: 1;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.footer-link {
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  min-width: 120px;
  justify-content: center;
  text-align: center;
}

.footer-link:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  text-decoration: none;
  color: white;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
}

.footer-link:active {
  transform: translateY(0);
}

.footer-link i {
  color: #42b883;
  font-size: 1rem;
  transition: color 0.3s ease;
  display: inline-block;
  width: 16px;
  text-align: center;
}

.footer-link:hover i {
  color: #4fd1a7;
}

.footer-text {
  text-align: center;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.85rem;
  line-height: 1.6;
  max-width: 600px;
  width: 100%;
}

.footer-text p {
  margin: 0;
  padding: 0.5rem 0;
}

/* Enhanced responsive design */
@media (max-width: 1024px) {
  .footer {
    padding: 2rem 0 1.5rem 0;
  }

  .footer-content {
    padding: 0 1rem;
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .footer {
    padding: 1.5rem 0 1rem 0;
    margin-top: 3rem;
  }

  .footer-content {
    padding: 0 1rem;
    gap: 1.5rem;
  }

  .footer-links {
    gap: 1rem;
    width: 100%;
    flex-direction: row;
  }

  .footer-link {
    flex: 1;
    min-width: calc(50% - 0.5rem);
    max-width: 200px;
    font-size: 0.85rem;
    padding: 0.6rem 1rem;
  }

  .footer-text {
    font-size: 0.8rem;
    padding: 0 1rem;
  }
}

@media (max-width: 480px) {
  .footer {
    padding: 1rem 0;
    margin-top: 2rem;
  }

  .footer-content {
    padding: 0 0.75rem;
    gap: 1rem;
  }

  .footer-links {
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
  }

  .footer-link {
    width: 100%;
    max-width: 280px;
    font-size: 0.85rem;
    padding: 0.75rem 1rem;
    flex: none;
  }

  .footer-text {
    font-size: 0.75rem;
    line-height: 1.5;
  }
}

/* Fix for very small screens */
@media (max-width: 320px) {
  .footer-content {
    padding: 0 0.5rem;
  }

  .footer-link {
    font-size: 0.8rem;
    padding: 0.6rem 0.8rem;
  }

  .footer-text {
    font-size: 0.7rem;
  }
}

/* Analytics Styles */
.analytics-section {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid #e5e7eb;
  margin-bottom: 2rem;
}

.analytics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.analytics-card {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
}

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

.analytics-table {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.analytics-table table {
  width: 100%;
  border-collapse: collapse;
}

.analytics-table th,
.analytics-table td {
  padding: 0.5rem;
  border-bottom: 1px solid #f1f3f4;
}

.analytics-table th {
  background: #f8f9fa;
  font-weight: 600;
  color: #333;
}

@media (max-width: 768px) {
  .analytics-section {
    padding: 1rem;
  }

  .analytics-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .analytics-section > div:nth-child(3) {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  .analytics-table {
    padding: 1rem;
  }

  .analytics-table th,
  .analytics-table td {
    padding: 0.4rem;
    font-size: 0.9rem;
  }
}

/* GDPR Cookie Consent Popup Styles */
.cookie-consent-popup {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 2000;
  padding: 1.5rem;
  border-top: 3px solid #1877f2;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
  display: none;
  animation: slideUpIn 0.4s ease-out;
}

.cookie-consent-popup.show {
  display: block;
}

@keyframes slideUpIn {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.cookie-consent-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.cookie-consent-text {
  flex: 1;
  color: white;
}

.cookie-consent-text h4 {
  color: #42b883;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cookie-consent-text h4::before {
  content: "🍪";
  font-size: 1.3rem;
}

.cookie-consent-text p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
}

.cookie-consent-actions {
  display: flex;
  gap: 1rem;
  flex-shrink: 0;
}

.cookie-consent-actions .btn {
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  border-radius: 6px;
  transition: all 0.3s ease;
  min-width: 100px;
}

.cookie-consent-actions .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
  .cookie-consent-popup {
    padding: 1rem;
  }

  .cookie-consent-content {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }

  .cookie-consent-actions {
    flex-direction: column;
    width: 100%;
  }

  .cookie-consent-actions .btn {
    width: 100%;
  }

  .cookie-consent-text h4 {
    font-size: 1.1rem;
  }

  .cookie-consent-text p {
    font-size: 0.9rem;
  }
}
