html, body {
  margin: 0;
  padding: 0;
  font-family: "Inter", sans-serif, "Lato", sans-serif;
  color: #333;
  line-height: 1.6;
  background-color: #ffffff;
}

body {
  min-height: 100vh;
  top: 0 !important;
}

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

.nav {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.nav a {
  text-decoration: none;
  color: inherit;
}

.login {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.file-drop-mini {
  border: 2px dashed #ddd;
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.file-drop-mini.drag {
  background: #f8f5ff;
  border-color: #5704b0;
}
.file-drop-mini button {
  all: unset;
  cursor: pointer;
  color: #5704b0;
  font-weight: 600;
  text-decoration: underline;
}

.hide {
  display: none !important;
}

body.login-page {
  background: linear-gradient(135deg, #5704b0, #e9ddf5);
  background-size: cover;
}
body.login-page header nav a,
body.login-page header nav .login, body.login-page header nav .login h3 {
  color: white;
}
body.login-page main {
  padding: 3rem 0 3rem 0;
}
@media (min-width: 768px) {
  body.login-page main {
    padding: 250px 0 250px 0;
  }
}

body.register-page {
  background: linear-gradient(135deg, #5704b0, #e9ddf5);
  background-size: cover;
}
body.register-page header nav a,
body.register-page header nav .login, body.register-page header nav .login h3 {
  color: white;
}
body.register-page main {
  padding-top: 0;
}
h1, h2, h3, h4, h5, h6 {
  font-family: "Inter", sans-serif, "Lato", sans-serif;
  font-weight: 500;
  margin-top: 1em;
  margin-bottom: 0.5em;
}

.text-body {
  font-family: "Inter", sans-serif, "Lato", sans-serif;
  font-weight: 400;
}

.text-strong {
  font-family: "Inter", sans-serif, "Lato", sans-serif;
  font-weight: 700;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.fill {
  width: 100%;
}

.container, header {
  display: flex;
  justify-content: center;
  max-width: 100vw;
}
@media (min-width: 480px) {
  .container, header {
    padding: 10px;
  }
}
@media (min-width: 768px) {
  .container, header {
    padding: 10px;
  }
}
@media (min-width: 1024px) {
  .container, header {
    padding: 10px;
  }
}

.dashboard-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  min-height: 100vh;
}

.metrics-row {
  display: flex;
  gap: 2rem;
  margin: 2rem 0;
}
@media (max-width: 768px) {
  .metrics-row {
    flex-direction: column;
    gap: 1rem;
  }
}

.metric-card {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.metric-card .metric-number {
  font-size: 3rem;
  font-weight: bold;
  color: #1f2937;
  margin: 0;
}
.metric-card .metric-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.metric-card .metric-icon.students {
  background-color: #5704b0;
}
.metric-card .metric-icon.completed {
  background-color: #10b981;
}
.metric-card .metric-icon.pending {
  background-color: #f59e0b;
}
.metric-card .metric-label {
  font-size: 1rem;
  color: #6b7280;
  margin: 0;
}

.students-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin: 3rem 0 2rem 0;
  flex-direction: column;
}
@media (min-width: 768px) {
  .students-header {
    flex-direction: row;
  }
}
.students-header .header-content {
  flex: 1;
}
.students-header .header-content h2 {
  font-size: 2.5rem;
  font-weight: bold;
  margin: 0 0 0.5rem 0;
  color: #1f2937;
}
.students-header .header-content p {
  color: #6b7280;
  font-size: 1rem;
  margin: 0;
}
.students-header .add-student-btn {
  background-color: #5704b0;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  margin-top: 1rem;
}
@media (min-width: 768px) {
  .students-header .add-student-btn {
    margin: 0;
  }
}
.students-header .add-student-btn:hover {
  background-color: rgb(62.35, 2.8666666667, 126.1333333333);
}
.students-header .add-student-btn .plus-icon {
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: bold;
}

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

.student-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.08);
  cursor: pointer;
  text-decoration: none;
  flex-direction: column;
}
@media (min-width: 768px) {
  .student-card {
    flex-direction: row;
  }
}
.student-card .student-photo {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
}
.student-card .student-info {
  flex: 1;
  width: 100%;
}
.student-card .student-info .student-name {
  font-size: 1.5rem;
  font-weight: bold;
  margin: 0 0 0.25rem 0;
  color: #1f2937;
  text-align: center;
}
@media (min-width: 768px) {
  .student-card .student-info .student-name {
    text-align: left;
  }
}
.student-card .student-info .student-details {
  color: #6b7280;
  margin: 0;
}
.student-card .student-info .progress-bar {
  width: 100%;
  height: 10px;
  background-color: #e5e7eb;
  border-radius: 4px;
  overflow: hidden;
  margin-top: 0.5rem;
}
@media (min-width: 768px) {
  .student-card .student-info .progress-bar {
    width: 350px;
  }
}
.student-card .student-info .progress-bar .progress-fill {
  height: 100%;
  background-color: #5704b0;
  transition: width 0.3s ease;
}
.student-card .student-progress {
  flex-shrink: 0;
  margin: 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (min-width: 768px) {
  .student-card .student-progress {
    margin: 0;
  }
}

.form-field {
  display: flex;
  flex-direction: column;
  margin: 1.25rem 0;
}
.form-field label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #444;
  margin-bottom: 0.5rem;
  letter-spacing: 0.3px;
}
.form-field input,
.form-field select,
.form-field textarea {
  background-color: #fff;
  border: solid #5704b0 1px;
  border-radius: 12px;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 1px solid #ddd;
  background-color: #fff;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}
.form-field input:hover,
.form-field select:hover,
.form-field textarea:hover {
  border-color: #bbb;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: #5704b0;
  box-shadow: 0 0 0 3px rgba(87, 4, 176, 0.15);
  outline: none;
}
.form-field input::placeholder,
.form-field select::placeholder,
.form-field textarea::placeholder {
  color: #aaa;
  font-size: 0.95rem;
}
.form-field.error input {
  border-color: red;
  box-shadow: 0 0 0 2px rgba(255, 0, 0, 0.1);
}
.form-field.success input {
  border-color: darkgreen;
  box-shadow: 0 0 0 2px rgba(0, 128, 0, 0.1);
}

.card {
  margin: 1.5rem auto;
  padding: 2rem;
  background-color: #ffffff;
  border-radius: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), 0 6px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  width: 90%;
  max-width: 550px;
}
.card:hover, .card:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 0 12px 24px rgba(0, 0, 0, 0.12);
}
.card h1, .card h2, .card h3, .card h4, .card h5, .card p {
  text-align: center;
  margin: 0.75rem 0;
  line-height: 1.4;
}
@media (min-width: 480px) {
  .card {
    width: 85%;
  }
}
@media (min-width: 768px) {
  .card {
    width: 450px;
  }
}
@media (min-width: 1024px) {
  .card {
    width: 550px;
  }
}
.card .alert {
  font-size: 0.95rem;
  margin-top: 0.5rem;
  margin-bottom: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  text-align: center;
}
.card .alert-danger {
  background: rgba(255, 0, 0, 0.1);
  color: red;
  font-weight: 600;
}
.card .alert-success {
  background: rgba(0, 200, 0, 0.1);
  color: darkgreen;
  font-weight: 700;
}

header {
  display: flex;
  border-radius: 12px;
}
header nav {
  display: flex;
  justify-content: center; /* Horizontally center */
  align-items: center; /* Vertically center */
  width: 100%;
  display: flex;
  justify-content: left;
}
header nav a {
  margin: 16px 16px;
  vertical-align: middle;
  font-size: large;
  text-decoration: none;
}
header .login {
  display: flex;
  justify-content: right; /* Horizontally center */
  align-items: center; /* Vertically center */
  width: 100%;
  margin: 8px 16px;
}
header .login img {
  max-height: 40px;
}

.btn {
  border-radius: 12px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  padding: 0.75rem 1.25rem;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  display: inline-block;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(87, 4, 176, 0.2);
}
.btn-primary {
  background-color: #5704b0;
  color: #ffffff;
  border: 1px solid rgb(74.675, 3.4333333333, 151.0666666667);
}
.btn-primary:hover {
  background-color: rgb(99.325, 4.5666666667, 200.9333333333);
}
.btn-primary:active {
  transform: translateY(0);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15);
}
.btn-secondary {
  background-color: #e9ddf5;
  color: #5704b0;
  border: 1px solid #5704b0;
}
.btn-secondary:hover {
  background-color: rgb(245.75, 240.7045454545, 250.7954545455);
}
.btn-secondary:active {
  transform: translateY(0);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.12);
}
.btn-sm {
  font-size: 0.85rem;
  padding: 0.5rem 0.75rem;
}

.student-view {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  background-color: #fff;
  min-height: 100vh;
}

.student-header-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.08);
  margin-bottom: 2rem;
  flex-direction: column;
}
@media (min-width: 480px) {
  .student-header-card {
    flex-direction: column;
  }
}
@media (min-width: 768px) {
  .student-header-card {
    flex-direction: row;
  }
}
.student-header-card .student-photo {
  width: 120px;
  height: 120px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
}
.student-header-card .student-info {
  flex: 1;
}
.student-header-card .student-info .student-name {
  font-size: 1.5rem;
  font-weight: bold;
  margin: 0 0 0.25rem 0;
  color: #1f2937;
  text-align: center;
}
@media (min-width: 768px) {
  .student-header-card .student-info .student-name {
    text-align: left;
  }
}
.student-header-card .student-info .student-details {
  color: #6b7280;
  margin: 0 0 1rem 0;
}
.student-header-card .student-info .progress-bar {
  width: 100%;
  height: 6px;
  background-color: #5704b0;
  border-radius: 4px;
  overflow: hidden;
}
@media (min-width: 480px) {
  .student-header-card .student-info .progress-bar {
    width: 300px;
  }
}
.student-header-card .student-info .progress-bar .progress-fill {
  height: 100%;
  background-color: #5704b0;
  transition: width 0.3s ease;
}
.student-header-card .student-metrics {
  display: flex;
  gap: 2rem;
}
.student-header-card .student-metrics .metric {
  text-align: center;
}
.student-header-card .student-metrics .metric .metric-number {
  font-size: 2rem;
  font-weight: bold;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.student-header-card .student-metrics .metric .metric-number .metric-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
.student-header-card .student-metrics .metric .metric-number .metric-icon.completed {
  background-color: #10b981;
  color: white;
}
.student-header-card .student-metrics .metric .metric-number .metric-icon.pending {
  background-color: #f59e0b;
  color: white;
}
.student-header-card .student-metrics .metric .metric-number .metric-icon.notes {
  background-color: #5704b0;
  color: white;
}
.student-header-card .student-metrics .metric .metric-label {
  font-size: 0.9rem;
  color: #6b7280;
  margin: 0.25rem 0 0 0;
}
.student-header-card .add-tasks-btn {
  background-color: #5704b0;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  text-decoration: none;
}
.student-header-card .add-tasks-btn:hover {
  background-color: rgb(62.35, 2.8666666667, 126.1333333333);
}
.student-header-card .add-tasks-btn .plus-icon {
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: bold;
}

.header-actions {
  justify-content: center;
}

.objectives-section .section-header {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 2rem;
  text-align: center;
  flex-direction: column;
}
@media (min-width: 768px) {
  .objectives-section .section-header {
    text-align: left;
    flex-direction: row;
  }
}
.objectives-section .section-header h2 {
  font-size: 2rem;
  font-weight: bold;
  margin: 0;
  color: #1f2937;
}
.objectives-section .section-header .view-all-btn {
  background-color: #e5e7eb;
  color: #6b7280;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
}
.objectives-section .section-header .view-all-btn:hover {
  background-color: #d1d5db;
}
.objectives-section .objectives-progress-bar {
  width: 100%;
  height: 12px;
  background-color: #e5e7eb;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 2rem;
}
.objectives-section .objectives-progress-bar .objectives-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #5704b0 0%, rgb(137.2, 32.0666666667, 249.9333333333) 100%);
  transition: width 0.3s ease;
}

.objective-card {
  background: white;
  border-radius: 12px;
  margin-bottom: 1rem;
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.08);
  overflow: hidden;
}
.objective-card.completed {
  opacity: 0.7;
}
.objective-card.completed .objective-header {
  background-color: #f3f4f6;
}
.objective-card.completed .objective-title {
  text-decoration: line-through;
  color: #6b7280;
}
.objective-card.completed .objective-description {
  text-decoration: line-through;
  color: #6b7280;
}
.objective-card.completed .notes-section {
  background-color: #f3f4f6;
}
.objective-card .objective-header {
  background: #fff;
  color: #1f2937;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
}
@media (min-width: 768px) {
  .objective-card .objective-header {
    flex-direction: row;
  }
}
.objective-card .objective-header .objective-info {
  flex: 1;
}
.objective-card .objective-header .objective-info .objective-title {
  font-size: 1.25rem;
  font-weight: bold;
  margin: 0 0 0.5rem 0;
}
.objective-card .objective-header .objective-info .grade-badge {
  background-color: #22f3ae;
  color: #1f2937;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 0.75rem;
}
.objective-card .objective-header .objective-info .objective-description {
  color: #1f2937;
  margin: 0;
  line-height: 1.4;
}
.objective-card .objective-header .objective-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-end;
  margin-top: 1rem;
}
@media (min-width: 768px) {
  .objective-card .objective-header .objective-actions {
    margin-top: 0;
  }
}
.objective-card .objective-header .objective-actions .mark-done-btn {
  background-color: #ffffff;
  border: 1px solid #1f2937;
  color: #1f2937;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.objective-card .objective-header .objective-actions .mark-done-btn:hover {
  background-color: #e9ddf5;
}
.objective-card .objective-header .objective-actions .mark-done-btn.completed {
  background-color: rgba(16, 185, 129, 0.2);
  border-color: rgba(16, 185, 129, 0.3);
}
.objective-card .objective-header .objective-actions .checkbox {
  width: 24px;
  height: 24px;
  border: 2px solid #5704b0;
  border-radius: 4px;
  background-color: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.objective-card .objective-header .objective-actions .checkbox.checked {
  background-color: white;
  border-color: white;
  color: #5704b0;
}
.objective-card .notes-section {
  padding: 1.5rem;
  border-top: 1px solid #e5e7eb;
}
.objective-card .notes-section .notes-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.objective-card .notes-section .notes-header .notes-count {
  background-color: #e9ddf5;
  color: black;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
}
.objective-card .notes-section .notes-header .add-note-btn {
  background-color: #5704b0;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  margin-left: auto;
}
.objective-card .notes-section .notes-header .add-note-btn:hover {
  background-color: rgb(62.35, 2.8666666667, 126.1333333333);
}
.objective-card .notes-section .notes-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.objective-card .notes-section .notes-list .note-item {
  background-color: #f8f9fa;
  padding: 1rem;
  border-radius: 8px;
  border-left: 3px solid #5704b0;
}
.objective-card .notes-section .notes-list .note-item .note-content {
  margin: 0 0 0.5rem 0;
  color: #1f2937;
}
.objective-card .notes-section .notes-list .note-item .note-meta {
  font-size: 0.8rem;
  color: #6b7280;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.objective-card .notes-section .notes-list .note-item .note-meta .delete-note-btn {
  background: none;
  border: none;
  color: #ef4444;
  cursor: pointer;
  font-size: 0.8rem;
}
.objective-card .notes-section .notes-list .note-item .note-meta .delete-note-btn:hover {
  text-decoration: underline;
}
.objective-card .notes-section .add-note-form {
  margin-top: 1rem;
  display: none;
}
.objective-card .notes-section .add-note-form.active {
  display: block;
}
.objective-card .notes-section .add-note-form .note-input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}
.objective-card .notes-section .add-note-form .note-input:focus {
  outline: none;
  border-color: #5704b0;
  box-shadow: 0 0 0 3px rgba(87, 4, 176, 0.1);
}
.objective-card .notes-section .add-note-form .form-actions {
  display: flex;
  gap: 0.5rem;
}
.objective-card .notes-section .add-note-form .form-actions .btn {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

.objective-title {
  position: relative;
  display: inline-block;
}
.objective-title.completed {
  color: #6b7280;
  text-decoration: none;
}
.objective-title.completed::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  height: 2px;
  background-color: currentColor;
  width: 0;
  transition: width 0.5s ease;
  transform: translateY(-50%);
}
.objective-title.completed.animate::after {
  width: 100%;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}
.modal .modal-content {
  background-color: white;
  margin: 5% auto;
  padding: 2rem;
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
}
.modal .modal-content h2 {
  margin-top: 0;
  color: #1f2937;
}
.modal .modal-content .form-field {
  margin: 1rem 0;
}
.modal .modal-content .form-field label {
  display: block;
  margin-bottom: 0.5rem;
  color: #1f2937;
  font-weight: 500;
}
.modal .modal-content .form-field input {
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 1rem;
}
.modal .modal-content .form-field input:focus {
  outline: none;
  border-color: #5704b0;
  box-shadow: 0 0 0 3px rgba(87, 4, 176, 0.1);
}
.modal .modal-content .modal-buttons {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 2rem;
}
.modal .modal-content .modal-buttons .btn {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}

.grade-K {
  background-color: #ff6b9d !important;
  color: white !important;
}
.grade-K .objective-header {
  background: linear-gradient(135deg, #ff6b9d, #ff8fb3) !important;
}

.grade-1 {
  background-color: #00dbcc !important;
  color: #ffffff !important;
}
.grade-1 .objective-header {
  background: linear-gradient(135deg, #4ecdc4, #6dd5ce) !important;
}

.grade-2 {
  background-color: #17adcf !important;
  color: #ffffff !important;
}
.grade-2 .objective-header {
  background: linear-gradient(135deg, #45b7d1, #66c5da) !important;
}

.grade-3 {
  background-color: #96ceb4 !important;
  color: #ffffff !important;
}
.grade-3 .objective-header {
  background: linear-gradient(135deg, #96ceb4, #a8d4c2) !important;
}

.grade-4 {
  background-color: #feca57 !important;
  color: white !important;
}
.grade-4 .objective-header {
  background: linear-gradient(135deg, #feca57, #fed670) !important;
}

.grade-5 {
  background-color: #a80794 !important;
  color: white !important;
}
.grade-5 .objective-header {
  background: linear-gradient(135deg, #ff9ff3, #ffb3f5) !important;
}

.grade-6 {
  background-color: #0a77ff !important;
  color: white !important;
}
.grade-6 .objective-header {
  background: linear-gradient(135deg, #54a0ff, #74b0ff) !important;
}

.grade-7 {
  background-color: #5f27cd !important;
  color: white !important;
}
.grade-7 .objective-header {
  background: linear-gradient(135deg, #5f27cd, #7c4ddb) !important;
}

.grade-8 {
  background-color: #00d2d3 !important;
  color: white !important;
}
.grade-8 .objective-header {
  background: linear-gradient(135deg, #00d2d3, #26dadb) !important;
}

.grade-9 {
  background-color: #ff6348 !important;
  color: white !important;
}
.grade-9 .objective-header {
  background: linear-gradient(135deg, #ff6348, #ff7f69) !important;
}

.grade-10 {
  background-color: #2ed573 !important;
  color: #000000 !important;
}
.grade-10 .objective-header {
  background: linear-gradient(135deg, #2ed573, #4edd87) !important;
}

.grade-11 {
  background-color: #ffa400 !important;
  color: white !important;
}
.grade-11 .objective-header {
  background: linear-gradient(135deg, #ffa502, #ffb533) !important;
}

.grade-12 {
  background-color: #3742fa !important;
  color: white !important;
}
.grade-12 .objective-header {
  background: linear-gradient(135deg, #3742fa, #5964fb) !important;
}

/* === Dashboard Manage Students (add-on) === */
/* Make emoji/icons inside metric circles white without inline styles */
.metric-card .metric-icon span {
  color: #fff;
  font-size: 20px;
  line-height: 1;
}

/* Placeholder image block for students without a photo */
.student-photo.placeholder {
  display: flex;
  justify-content: center; /* Horizontally center */
  align-items: center; /* Vertically center */
  background-color: #e5e7eb;
  color: #9ca3af;
  font-size: 2rem;
}

/* Modal list for managing students */
.students-manage-list {
  margin: 0;
  padding: 0;
}
.students-manage-list .student-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid #e5e7eb;
}
.students-manage-list .student-row:last-child {
  border-bottom: 0;
}
.students-manage-list .student-row .student-photo {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
}
.students-manage-list .student-row .student-info {
  flex: 1;
}
.students-manage-list .student-row .student-info .student-name {
  margin: 0;
  font-weight: 700;
  color: #1f2937;
}
.students-manage-list .student-row .student-info .student-details {
  margin: 0.25rem 0 0 0;
  color: #6b7280;
  font-size: 0.95rem;
}
.students-manage-list .student-row .row-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.delete-form {
  border-radius: 12px;
  background-color: red;
}

/* Round icon buttons (edit/delete) */
.icon-btn {
  border-radius: 12px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 18px;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.08);
  /* Keyboard focus */
}
.icon-btn.edit {
  background-color: #10b981; /* green */
  color: #fff;
}
.icon-btn.edit:hover {
  background-color: rgb(13.5641791045, 156.8358208955, 109.3611940299);
}
.icon-btn.edit:active {
  transform: translateY(1px);
}
.icon-btn.delete {
  background-color: #ef4444; /* red */
  color: #fff;
}
.icon-btn.delete:hover {
  background-color: rgb(236.5881773399, 39.8118226601, 39.8118226601);
}
.icon-btn.delete:active {
  transform: translateY(1px);
}
.icon-btn:focus-visible {
  outline: 3px solid rgba(87, 4, 176, 0.35);
  outline-offset: 2px;
}

/* Manage Students modal header (close button sits at top-right) */
#studentModal .modal-content {
  position: relative;
}
#studentModal .modal-content > .btn.btn-secondary.btn-sm[aria-label=Close] {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: transparent;
  color: #6b7280;
  border: none;
  box-shadow: none;
}
#studentModal .modal-content > .btn.btn-secondary.btn-sm[aria-label=Close]:hover {
  color: #1f2937;
}
#studentModal .modal-content > .btn.btn-secondary.btn-sm[aria-label=Close]:focus-visible {
  outline: 3px solid rgba(87, 4, 176, 0.35);
  border-radius: 8px;
}

/* Add Student CTA inside modal */
#studentModal .add-student-btn {
  /* Reuse your existing .add-student-btn styles */
}
#studentModal .add-student-btn .plus-icon {
  width: 40px;
  height: 40px;
  font-size: 22px;
}

/* Student progress module: ensure good behavior on small screens */
@media (max-width: 768px) {
  .student-card .student-progress {
    width: 100%;
  }
}

/* Respect reduced motion for subtle animations */
@media (prefers-reduced-motion: reduce) {
  .progress-fill {
    transition: none;
  }
}
/* Select styling consistent with inputs */
.grade-select {
  background-color: #fff;
  border: solid #5704b0 1px;
  border-radius: 12px;
  height: 40px;
  font-size: 16px;
  padding: 6px 8px;
}

/* Ensure placeholder avatar matches across views */
.student-view .student-header-card .student-photo.placeholder {
  display: flex;
  justify-content: center; /* Horizontally center */
  align-items: center; /* Vertically center */
  background-color: #e5e7eb;
  color: #9ca3af;
  font-size: 3rem;
}

/* Modal close button focus ring */
#editStudentModal .modal-content > .btn.btn-secondary.btn-sm[aria-label=Close] {
  background: transparent;
  border: none;
  box-shadow: none;
}
#editStudentModal .modal-content > .btn.btn-secondary.btn-sm[aria-label=Close]:focus-visible {
  outline: 3px solid rgba(87, 4, 176, 0.35);
  border-radius: 8px;
}

.error-page {
  display: flex;
  justify-content: center;
  font-family: "Inter", sans-serif;
  text-align: center;
  padding: 2rem;
  max-width: 100vw;
}
.error-page .error-container {
  max-width: 600px;
}
.error-page .error-number {
  font-size: 200px;
  margin: 0;
  color: rgb(230.5841121495, 144.4859813084, 141.9158878505);
}
.error-page .error-title {
  font-size: 80px;
  color: #5704b0;
  margin: 0;
}
.error-page .error-issue {
  font-size: 2.5rem;
  font-weight: 700;
  color: #2d2d2d;
}
.error-page .error-message {
  font-size: 1.1rem;
  color: rgb(6.75, 6.75, 6.75);
}
.error-page .error-btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: #d9534f;
  border-radius: 8px;
  text-decoration: none;
}
.error-page .error-btn:hover {
  background: rgb(201.4953271028, 48.0841121495, 43.5046728972);
}

/*# sourceMappingURL=styles.css.map */
