@media (min-width: 992px) {
  .sidebar.sidebar-offcanvas {
    position: fixed;
    top: 63px;
    left: 0;
    bottom: 0;
    overflow-y: auto;
  }

  .main-panel {
    margin-left: 270px;
  }

  body.sidebar-text-hidden .main-panel {
    margin-left: 72px;
  }
}

.notification-preview-list {
  padding: 0 1rem 0.5rem;
}

.notification-preview-item {
  display: block;
  padding: 0.5rem 0;
  text-decoration: none;
  border-top: 1px solid #edf2f7;
}

.notification-preview-title {
  color: #1f2937;
  font-weight: 600;
  font-size: 13px;
  line-height: 1.35;
}

.notification-preview-meta {
  color: #6b7280;
  font-size: 12px;
  line-height: 1.35;
}

.current-schoolyear-label,
.page-title-label {
  font-weight: 700;
}

.schoolyear-dropdown-menu {
  text-align: center;
}

.schoolyear-dropdown-item {
  line-height: 25px;
  cursor: pointer;
}

.profile-name {
  font-size: 16px;
}

.profile-detail {
  font-size: 14px;
}

.profile-avatar-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #475569;
  background: #e2e8f0;
}

.profile-avatar-placeholder i {
  line-height: 1;
}

.profile-avatar-placeholder-nav {
  width: 32px;
  height: 32px;
  font-size: 28px;
}

.profile-avatar-placeholder-menu {
  width: 68px;
  height: 68px;
  margin: 0 auto;
  font-size: 54px;
}

.sidebar-toggle-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px 12px 24px;
}

.sidebar-account-panel {
  flex: 1 1 auto;
  min-width: 0;
  color: #fff;
}

.sidebar-account-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: #fff;
}

.sidebar-profile-dropdown {
  flex: 0 0 auto;
}

.sidebar-profile-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.sidebar-profile-button:focus {
  outline: none;
}

.sidebar-profile-button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.sidebar-account-avatar {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  font-size: 34px;
}

.sidebar-profile-caret {
  position: absolute;
  right: -1px;
  bottom: -1px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border: 2px solid #1c45ef;
  border-radius: 50%;
  background: #2f3a4a;
  color: #fff;
  font-size: 14px;
  line-height: 1;
}

.sidebar-profile-menu {
  min-width: 150px;
  margin-top: 8px;
  border-radius: 6px;
}

.sidebar-account-copy {
  display: block;
  min-width: 0;
  line-height: 1.2;
}

.sidebar-account-name,
.sidebar-account-role {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-account-name {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  font-weight: 600;
  opacity: 0.95;
}

.sidebar-account-role {
  display: block;
  font-size: 15px;
  font-weight: 700;
}

@media (min-width: 992px) {
  body.sidebar-text-hidden .sidebar-account-panel {
    display: none;
  }
}

.enrollment-modal-content {
  border-radius: 15px;
  overflow: hidden;
}

.enrollment-modal-header {
  padding: 20px 25px;
}

.enrollment-modal-close {
  opacity: 1;
}

.enrollment-modal-close-icon {
  font-size: 28px;
}

.enrollment-modal-body {
  padding: 25px;
}

.enrollment-section-badge {
  font-size: 14px;
}

.enrollment-modal-footer {
  padding: 15px 25px;
}

.step-box {
  display: flex;
  align-items: flex-start;
  background: #f8f9fa;
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 12px;
  border-left: 4px solid #4caf50;
  transition: all 0.3s ease;
}

.step-box:hover {
  background: #e8f5e9;
  transform: translateX(5px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.step-number {
  min-width: 35px;
  height: 35px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  margin-right: 15px;
}

.timeline-section:first-child .step-box {
  border-left-color: #667eea;
}

.timeline-section:first-child .step-number,
.bg-gradient-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.form-error-message {
  margin-bottom: 10px;
  color: #dc2626;
  font-weight: 600;
}

.flash-message-spaced {
  margin-bottom: 10px;
}

.soa-heading {
  text-align: center;
}

.soa-action-bar {
  text-align: right;
}

.soa-misc-card .card-title {
  margin-bottom: 18px;
}

.soa-misc-item {
  margin: 0 0 10px;
}

.soa-misc-item:last-of-type {
  margin-bottom: 0;
}

.soa-misc-label {
  margin-bottom: 0;
  padding: 10px 14px;
}

.soa-misc-label code {
  display: block;
  white-space: normal;
  word-break: break-word;
  color: #4f46e5 !important;
  background: linear-gradient(135deg, #eef2ff 0%, #f5f3ff 100%);
  border: 1px solid #d9d6fe;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
  box-shadow: 0 8px 18px rgba(79, 70, 229, 0.08);
}

.enrollment-procedures-nav {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 8px;
  margin: 5px 10px;
}

.nav-item-hidden {
  display: none;
}

.student-theme-dark {
  background: #0f172a;
  color: #e2e8f0;
}

.student-theme-dark .container-scroller,
.student-theme-dark .content-wrapper,
.student-theme-dark .main-panel,
.student-theme-dark .card,
.student-theme-dark .dropdown-menu,
.student-theme-dark .modal-content,
.student-theme-dark .footer {
  background-color: #0f172a;
  color: #e2e8f0;
}

.student-theme-dark .card,
.student-theme-dark .dropdown-menu,
.student-theme-dark .modal-content {
  border-color: #334155;
  box-shadow: 0 16px 36px rgba(2, 6, 23, 0.35);
}

.student-theme-dark .navbar.default-layout,
.student-theme-dark .sidebar {
  background: #111827;
}

.student-theme-dark .text-dark,
.student-theme-dark h1,
.student-theme-dark h2,
.student-theme-dark h3,
.student-theme-dark h4,
.student-theme-dark h5,
.student-theme-dark h6,
.student-theme-dark label,
.student-theme-dark .notification-preview-title,
.student-theme-dark .notification-preview-meta,
.student-theme-dark p,
.student-theme-dark li,
.student-theme-dark span,
.student-theme-dark a {
  color: inherit;
}

.student-theme-dark input,
.student-theme-dark select,
.student-theme-dark textarea {
  background: #1e293b;
  border-color: #334155;
  color: #e2e8f0;
}

.student-theme-dark .table th,
.student-theme-dark .table td {
  border-color: #334155;
}

.student-theme-dark .student-settings-card,
.student-theme-dark .student-settings-alert,
.student-theme-dark .student-dashboard .info-card,
.student-theme-dark .student-notifications-page .notification-card,
.student-theme-dark .student-notifications-page .empty-state {
  background: #111827;
  border-color: #334155;
  color: #e2e8f0;
}

.student-theme-dark .student-settings-hero,
.student-theme-dark .student-dashboard .welcome-card {
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.4);
}

.student-theme-dark .student-settings-card-head h3,
.student-theme-dark .student-settings-card-head p,
.student-theme-dark .student-setting-row h4,
.student-theme-dark .student-setting-row p,
.student-theme-dark .student-setting-row label,
.student-theme-dark .student-dashboard .card-body,
.student-theme-dark .student-dashboard .bank-info code,
.student-theme-dark .student-dashboard .card-body p,
.student-theme-dark .student-dashboard .card-body li,
.student-theme-dark .student-dashboard .card-body small,
.student-theme-dark .student-dashboard .card-body .text-muted,
.student-theme-dark .student-dashboard .card-body .text-info,
.student-theme-dark .student-dashboard .card-body .text-primary,
.student-theme-dark .student-dashboard .card-body .text-success,
.student-theme-dark .student-dashboard .card-body .text-warning,
.student-theme-dark .student-dashboard .card-body .text-danger,
.student-theme-dark .student-dashboard .card-body h5,
.student-theme-dark .student-dashboard .card-body h3,
.student-theme-dark .student-dashboard .card-body strong,
.student-theme-dark .student-dashboard .card-body i {
  color: #e2e8f0 !important;
}

.student-theme-dark .student-setting-row,
.student-theme-dark .student-dashboard hr {
  border-color: #334155;
}

.student-theme-dark .student-settings-back {
  background: rgba(15, 23, 42, 0.45);
}

.student-theme-dark .student-settings-alert {
  background: rgba(16, 185, 129, 0.14);
  border-color: rgba(16, 185, 129, 0.35);
  color: #d1fae5;
}

.student-theme-dark .student-setting-row .form-control,
.student-theme-dark .student-dashboard .bank-info {
  background: #1e293b;
  border-color: #475569;
  color: #e2e8f0;
}

.student-theme-dark .student-dashboard .list-ticked li::before,
.student-theme-dark .student-dashboard .list-arrow li::before,
.student-theme-dark .student-dashboard .list-star li::before {
  color: #f87171 !important;
}

.student-theme-dark .student-setting-row .form-control option {
  background: #1e293b;
  color: #e2e8f0;
}

.student-theme-dark .student-switch-slider {
  background: #475569;
}

.student-theme-dark .navbar-nav .nav-item.dropdown .navbar-dropdown,
.student-theme-dark .navbar.default-layout .navbar-menu-wrapper .navbar-nav .nav-item.user-dropdown .dropdown-menu,
.student-theme-dark .dropdown-menu {
  background: #ffffff;
  color: #0f172a;
  border-color: #dbe5f0;
}

.student-theme-dark .dropdown-menu .dropdown-header,
.student-theme-dark .dropdown-menu .dropdown-header *,
.student-theme-dark .dropdown-menu .dropdown-item,
.student-theme-dark .dropdown-menu .dropdown-item span,
.student-theme-dark .dropdown-menu .dropdown-item i,
.student-theme-dark .dropdown-menu .notification-preview-title,
.student-theme-dark .dropdown-menu .notification-preview-meta,
.student-theme-dark .dropdown-menu a,
.student-theme-dark .dropdown-menu p,
.student-theme-dark .dropdown-menu div {
  color: #0f172a;
}

.student-theme-dark .dropdown-menu .dropdown-item:hover,
.student-theme-dark .dropdown-menu .dropdown-item:focus {
  background: #f8fafc;
  color: #0f172a;
}

.student-theme-dark .dropdown-menu .dropdown-item.text-muted,
.student-theme-dark .dropdown-menu .text-muted,
.student-theme-dark .dropdown-menu .notification-preview-meta {
  color: #64748b;
}

.student-theme-dark .dropdown-menu .badge-danger {
  color: #fff;
}

.student-font-large {
  font-size: 1.08rem;
}

.student-font-small {
  font-size: 0.94rem;
}

.student-layout-compact .content-wrapper {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.student-layout-compact .card .card-body {
  padding: 1rem;
}

.student-high-contrast {
  filter: contrast(1.12);
}

.student-high-contrast a,
.student-high-contrast .btn {
  text-decoration-thickness: 2px;
}

.student-reduce-motion *,
.student-reduce-motion *::before,
.student-reduce-motion *::after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}

.student-notifications-page .page-header {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #fff;
  border-radius: 18px;
  padding: 28px;
  margin-bottom: 24px;
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.18);
}

.student-notifications-page .page-header h3 {
  margin-bottom: 8px;
  font-weight: 700;
}

.student-notifications-page .page-header p {
  margin: 0;
  opacity: 0.92;
}

.student-notifications-page .notification-list {
  display: grid;
  gap: 18px;
}

.student-notifications-page .notification-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
}

.student-notifications-page .notification-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}

.student-notifications-page .notification-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.student-notifications-page .notification-badge.activity {
  background: rgba(37, 99, 235, 0.12);
  color: #1d4ed8;
}

.student-notifications-page .notification-badge.announcement {
  background: rgba(245, 158, 11, 0.14);
  color: #b45309;
}

.student-notifications-page .notification-class {
  font-weight: 600;
  color: #334155;
}

.student-notifications-page .notification-date {
  color: #64748b;
  font-size: 13px;
}

.student-notifications-page .notification-title {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
}

.student-notifications-page .notification-body {
  color: #475569;
  margin-bottom: 14px;
}

.student-notifications-page .notification-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.student-notifications-page .notification-due {
  color: #dc2626;
  font-weight: 600;
}

.student-notifications-page .notification-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 600;
}

.student-notifications-page .empty-state {
  background: #fff;
  border: 1px dashed #cbd5e1;
  border-radius: 18px;
  padding: 42px 24px;
  text-align: center;
  color: #64748b;
}
