/* =========================================
   LOGIN PAGE (FULL SCREEN CENTERED)
   ========================================= */
.login-page-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
}

.login-card-box {
  width: 100%;
  max-width: 440px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(20px);
  border: 1.5px solid rgba(234, 179, 8, 0.35);
  border-top: 4px solid #facc15;
  border-radius: 26px;
  padding: 34px 28px;
  box-shadow: 0 20px 48px rgba(180, 130, 10, 0.12);
}

.login-header {
  text-align: center;
  margin-bottom: 24px;
}

.login-header img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  display: block;
  margin: 0 auto 12px;
}

.login-header h1 {
  font-size: 26px;
  font-weight: 800;
  color: #0b1f3a;
  margin: 0 0 6px;
}

.login-header p {
  font-size: 14px;
  color: #475569;
  margin: 0;
}

.login-error {
  display: none;
  background: #fef2f2;
  border: 1px solid #f87171;
  color: #991b1b;
  padding: 11px 14px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
}

.login-footer-hint {
  margin-top: 18px;
  text-align: center;
  font-size: 13px;
  color: #64748b;
}

.login-footer-hint a {
  color: #b45309;
  font-weight: 700;
  text-decoration: none;
}

/* =========================================
   LMS DASHBOARD SHELL (DESKTOP & MOBILE)
   ========================================= */
.dashboard-page-wrap {
  max-width: 1440px;
  margin: 0 auto;
  padding: 20px 24px 48px;
  min-height: 100vh;
}

.portal-shell {
  display: grid;
  grid-template-columns: 265px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.portal-sidebar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border: 1.5px solid rgba(234, 179, 8, 0.35);
  border-top: 4px solid #facc15;
  border-radius: 22px;
  padding: 20px 14px;
  box-shadow: 0 14px 36px rgba(180, 130, 10, 0.1);
  position: sticky;
  top: 20px;
  min-height: calc(100vh - 40px);
  display: flex;
  flex-direction: column;
}

.sidebar-brand {
  padding: 4px 8px 16px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(234, 179, 8, 0.25);
}

.sidebar-brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-emblem {
  width: 38px;
  height: 38px;
  object-fit: contain;
  flex-shrink: 0;
}

.sidebar-brand small {
  display: block;
  font-size: 11px;
  font-weight: 800;
  color: #b45309;
  text-transform: uppercase;
  letter-spacing: 0.7px;
}

.sidebar-brand strong {
  display: block;
  font-size: 16px;
  color: #0b1f3a;
  margin-top: 2px;
}

.sidebar-uid {
  display: inline-block;
  margin-top: 10px;
  font-size: 11px;
  font-weight: 800;
  color: #854d0e;
  background: #fef9c3;
  border: 1px solid #facc15;
  padding: 3px 10px;
  border-radius: 999px;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.sidebar-nav-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid transparent;
  background: transparent;
  color: #334155;
  font-size: 14px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sidebar-nav-btn:hover {
  background: #fefce8;
  border-color: #fde047;
  color: #0b1f3a;
}

.sidebar-nav-btn.active {
  background: linear-gradient(135deg, #fef08a 0%, #facc15 60%, #eab308 100%);
  color: #0b1f3a;
  border-color: #eab308;
  font-weight: 800;
  box-shadow: 0 4px 0 #ca8a04;
}

.sidebar-footer {
  margin-top: 20px;
  padding: 14px 4px 0;
  border-top: 1px solid rgba(234, 179, 8, 0.22);
}

.sidebar-home-link {
  display: block;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: #b45309;
  text-decoration: none;
  margin-bottom: 10px;
}

.sidebar-home-link:hover {
  text-decoration: underline;
}

.sidebar-logout-btn {
  width: 100%;
  padding: 10px 14px;
  font-size: 13px;
}

.portal-main-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* =========================================
   DASHBOARD CARDS, TOOLBARS & PANELS
   ========================================= */
.dash-top-bar {
  background: rgba(255, 255, 255, 0.95);
  border: 1.5px solid rgba(234, 179, 8, 0.35);
  border-left: 5px solid #eab308;
  border-radius: 20px;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  box-shadow: 0 10px 26px rgba(180, 130, 10, 0.08);
}

.dash-role-pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  padding: 4px 12px;
  border-radius: 999px;
  background: #fef9c3;
  border: 1px solid #facc15;
  color: #854d0e;
  margin-bottom: 6px;
}

.dash-top-bar h2 {
  font-size: 24px;
  font-weight: 800;
  color: #0b1f3a;
  margin: 0;
}

.dash-top-bar p {
  font-size: 13.5px;
  color: #475569;
  margin: 4px 0 0;
}

.dash-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
}

.dash-info-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1.5px solid rgba(234, 179, 8, 0.3);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 8px 22px rgba(180, 130, 10, 0.07);
}

.dash-stat-icon {
  font-size: 22px;
  margin-bottom: 6px;
}

.dash-info-card span {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  color: #b45309;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.dash-info-card strong {
  font-size: 28px;
  font-weight: 800;
  color: #0b1f3a;
}

.staff-panel {
  background: rgba(255, 255, 255, 0.95);
  border: 1.5px solid rgba(234, 179, 8, 0.32);
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 12px 30px rgba(180, 130, 10, 0.08);
}

.staff-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.staff-panel h3 {
  font-size: 19px;
  font-weight: 800;
  color: #0b1f3a;
  margin: 0;
}

.quick-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(195px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.quick-link-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: #fffdf5;
  border: 1.5px solid rgba(234, 179, 8, 0.35);
  border-radius: 14px;
  color: #0b1f3a;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
}

.quick-link-btn:hover {
  background: #fef9c3;
  border-color: #eab308;
  transform: translateY(-2px);
}

/* =========================================
   LMS TOOLBAR, TABLES & ACTION BUTTONS
   ========================================= */
.lms-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
}

.lms-toolbar input,
.lms-toolbar select {
  padding: 10px 14px;
  border-radius: 12px;
  border: 1.5px solid rgba(234, 179, 8, 0.35);
  background: #fffdf8;
  font-size: 13.5px;
  color: #0b1f3a;
  outline: none;
  flex: 1 1 200px;
}

.lms-toolbar input:focus,
.lms-toolbar select:focus {
  border-color: #eab308;
  box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.25);
}

.lms-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lms-btn-sm {
  padding: 9px 14px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all 0.15s ease;
}

.lms-btn-gold {
  background: linear-gradient(135deg, #fef08a 0%, #facc15 60%, #eab308 100%);
  color: #0b1f3a;
  border-color: #eab308;
  box-shadow: 0 3px 0 #ca8a04;
}

.lms-btn-outline {
  background: #ffffff;
  color: #0b1f3a;
  border-color: rgba(234, 179, 8, 0.45);
}

.lms-btn-outline:hover {
  background: #fefce8;
}

.lms-btn-danger {
  background: #fef2f2;
  color: #b91c1c;
  border-color: #fca5a5;
}

.lms-btn-danger:hover {
  background: #fee2e2;
}

.staff-table-wrap {
  overflow-x: auto;
  border-radius: 14px;
  border: 1px solid rgba(234, 179, 8, 0.22);
}

.staff-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.staff-table th,
.staff-table td {
  padding: 11px 12px;
  text-align: left;
  border-bottom: 1px solid #f1f5f9;
  white-space: nowrap;
}

.staff-table th {
  background: #fef9c3;
  color: #0b1f3a;
  font-weight: 800;
}

.staff-table td {
  color: #334155;
}

.lms-form-card {
  background: #fffdf5;
  border: 1.5px solid rgba(234, 179, 8, 0.4);
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 18px;
}

.lms-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.lms-form-grid label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #0b1f3a;
  margin-bottom: 4px;
}

.lms-form-grid input,
.lms-form-grid select,
.lms-form-grid textarea {
  width: 100%;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1.5px solid rgba(234, 179, 8, 0.35);
  background: #ffffff;
  font-size: 13px;
  color: #0b1f3a;
}

/* =========================================
   MOBILE RESPONSIVE LMS
   ========================================= */
@media (max-width: 860px) {
  .dashboard-page-wrap {
    padding: 12px 12px 40px;
  }

  .portal-shell {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .portal-sidebar {
    position: static;
    min-height: auto;
    padding: 14px;
  }

  .sidebar-nav {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .sidebar-nav-btn {
    padding: 10px 10px;
    font-size: 13px;
    justify-content: center;
  }

  .dash-top-bar {
    padding: 16px;
  }

  .dash-top-bar h2 {
    font-size: 20px;
  }

  .staff-panel {
    padding: 16px;
  }
}
/* =========================================
   LMS POP-UP MODAL (ADD / EDIT)
   ========================================= */
.lms-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(11, 31, 58, 0.55);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 9999;
}

.lms-modal-box {
  width: 100%;
  max-width: 620px;
  max-height: 90vh;
  overflow-y: auto;
  background: rgba(255, 255, 255, 0.97);
  border: 1.5px solid rgba(234, 179, 8, 0.45);
  border-top: 5px solid #facc15;
  border-radius: 22px;
  padding: 24px;
  box-shadow: 0 24px 60px rgba(11, 31, 58, 0.25);
  animation: lmsModalIn 0.18s ease-out;
}

@keyframes lmsModalIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.lms-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(234, 179, 8, 0.25);
}

.lms-modal-head h4 {
  margin: 0;
  font-size: 19px;
  font-weight: 800;
  color: #0b1f3a;
}

.lms-modal-close {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(234, 179, 8, 0.35);
  background: #fffdf5;
  color: #0b1f3a;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.lms-modal-close:hover {
  background: #fef9c3;
}
/* =========================================
   CLASSROOMS PAGE & MULTI-TEACHER ASSIGNMENTS
   ========================================= */
.lms-modal-wide {
  max-width: 780px;
}

.classroom-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
}

.classroom-card {
  background: #fffdf8;
  border: 1.5px solid rgba(234, 179, 8, 0.35);
  border-top: 4px solid #facc15;
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 8px 20px rgba(180, 130, 10, 0.07);
}

.classroom-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.classroom-card-head h4 {
  margin: 4px 0 2px;
  font-size: 18px;
  font-weight: 800;
  color: #0b1f3a;
}

.classroom-college {
  margin: 0;
  font-size: 13px;
  color: #475569;
  font-weight: 600;
}

.classroom-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding: 10px 12px;
  background: #fefce8;
  border-radius: 12px;
  font-size: 13px;
  color: #334155;
  margin-bottom: 14px;
}

.classroom-sub-title {
  font-size: 12px;
  font-weight: 800;
  color: #b45309;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.classroom-paper-item {
  padding: 9px 10px;
  background: #ffffff;
  border: 1px solid rgba(234, 179, 8, 0.25);
  border-radius: 10px;
  margin-bottom: 8px;
  font-size: 13px;
}

.mod-badge {
  display: inline-block;
  margin-left: 6px;
  font-size: 11px;
  background: #fef9c3;
  color: #854d0e;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 700;
}

.paper-teacher-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.paper-teacher-tags span {
  font-size: 11.5px;
  font-weight: 700;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #0b1f3a;
  padding: 3px 9px;
  border-radius: 8px;
}

.paper-teacher-tags span.unassigned {
  color: #94a3b8;
  font-style: italic;
}

.modal-section-block {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(234, 179, 8, 0.25);
}

.modal-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.modal-section-head h5 {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: #0b1f3a;
}

.paper-assign-card {
  background: #fffdf5;
  border: 1px solid rgba(234, 179, 8, 0.35);
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 10px;
}

.paper-assign-top {
  display: grid;
  grid-template-columns: 1fr 180px auto;
  gap: 8px;
  margin-bottom: 10px;
}

.paper-assign-top input {
  padding: 8px 10px;
  border-radius: 10px;
  border: 1.5px solid rgba(234, 179, 8, 0.35);
  font-size: 13px;
}

.paper-teachers-label {
  font-size: 11.5px;
  font-weight: 700;
  color: #64748b;
  margin-bottom: 6px;
}

.multi-check-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.multi-check-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid rgba(234, 179, 8, 0.35);
  background: #ffffff;
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
}

.multi-check-pill.checked {
  background: #fef9c3;
  border-color: #eab308;
  color: #0b1f3a;
}

@media (max-width: 640px) {
  .paper-assign-top {
    grid-template-columns: 1fr;
  }
}
/* =========================================
   ADMIN SYLLABUS MANAGER
   ========================================= */
.syllabus-sem-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.syllabus-papers-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.syllabus-paper-card {
  background: #fffdf8;
  border: 1.5px solid rgba(234, 179, 8, 0.35);
  border-left: 5px solid #eab308;
  border-radius: 18px;
  padding: 18px;
}

.syllabus-modules-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.syllabus-mod-box {
  background: #ffffff;
  border: 1px solid rgba(234, 179, 8, 0.28);
  border-radius: 14px;
  padding: 12px 14px;
}

.syllabus-mod-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 13.5px;
  color: #0b1f3a;
}

.quick-topic-btn {
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid #facc15;
  background: #fefce8;
  color: #854d0e;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.quick-topic-btn:hover {
  background: #fef08a;
}

.syllabus-topic-list {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  color: #334155;
  line-height: 1.6;
}

.syllabus-mod-editor {
  background: #fffdf5;
  border: 1px solid rgba(234, 179, 8, 0.35);
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 12px;
}

.syllabus-mod-editor-head {
  display: flex;
  gap: 8px;
  align-items: center;
}

.syllabus-mod-editor-head input {
  flex: 1;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1.5px solid rgba(234, 179, 8, 0.35);
  font-size: 13px;
}

.syllabus-mod-editor textarea {
  width: 100%;
  padding: 9px 10px;
  border-radius: 10px;
  border: 1.5px solid rgba(234, 179, 8, 0.35);
  font-size: 13px;
  font-family: inherit;
  resize: vertical;
}
/* =========================================
   ADMIN PYQ ARCHIVE (CLOUDINARY PDFs)
   ========================================= */
.pyq-subject-group {
  margin-top: 18px;
  padding: 16px;
  background: #fffdf8;
  border: 1.5px solid rgba(234, 179, 8, 0.32);
  border-radius: 18px;
}

.pyq-subject-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(234, 179, 8, 0.22);
}

.pyq-subject-head h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: #0b1f3a;
}

.pyq-subject-head span {
  font-size: 12px;
  font-weight: 700;
  color: #b45309;
  background: #fef9c3;
  padding: 3px 10px;
  border-radius: 999px;
}

.pyq-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.pyq-item-card {
  background: #ffffff;
  border: 1px solid rgba(234, 179, 8, 0.32);
  border-radius: 14px;
  padding: 14px;
}

.pyq-item-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.pyq-type-tag {
  font-size: 11px;
  font-weight: 700;
  color: #475569;
  background: #f1f5f9;
  padding: 3px 9px;
  border-radius: 999px;
}

.pyq-file-name {
  font-size: 13.5px;
  font-weight: 700;
  color: #0b1f3a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pyq-meta {
  font-size: 12px;
  color: #64748b;
  margin-top: 4px;
}

.pyq-upload-status {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fefce8;
  border: 1px solid #facc15;
  font-size: 12.5px;
  font-weight: 700;
  color: #854d0e;
}
/* =========================================
   ADMIN EXAM DATES & TIMETABLE
   ========================================= */
.exam-schedules-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.exam-schedule-card {
  background: #fffdf8;
  border: 1.5px solid rgba(234, 179, 8, 0.35);
  border-left: 5px solid #eab308;
  border-radius: 18px;
  padding: 18px;
}

.exam-countdown-badge {
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
}

.exam-countdown-badge.upcoming {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.exam-countdown-badge.today {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.exam-countdown-badge.past {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
}

.exam-notes-box {
  margin: 12px 0 0;
  padding: 10px 12px;
  background: #fefce8;
  border-radius: 10px;
  font-size: 12.5px;
  color: #854d0e;
}

.exam-row-editor {
  display: grid;
  grid-template-columns: 145px 155px 115px 1fr auto;
  gap: 8px;
  margin-bottom: 8px;
  align-items: center;
}

.exam-row-editor input {
  padding: 8px 10px;
  border-radius: 10px;
  border: 1.5px solid rgba(234, 179, 8, 0.35);
  font-size: 12.5px;
  background: #ffffff;
  color: #0b1f3a;
}

@media (max-width: 720px) {
  .exam-row-editor {
    grid-template-columns: 1fr 1fr;
  }
}
/* =========================================
   STUDENT NOTIFICATIONS & PROFILE
   ========================================= */
.student-notif-panel {
  background: linear-gradient(135deg, #fffdf2 0%, #fef9c3 100%);
  border: 1.5px solid #facc15;
  border-radius: 20px;
  padding: 18px 20px;
  box-shadow: 0 10px 24px rgba(180, 130, 10, 0.1);
}

.student-notif-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 800;
  color: #854d0e;
}

.student-notif-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(234, 179, 8, 0.35);
  border-radius: 14px;
  padding: 14px 16px;
  margin-top: 8px;
}

.student-notif-item h4 {
  margin: 6px 0 3px;
  font-size: 16px;
  font-weight: 800;
  color: #0b1f3a;
}

.student-notif-item p {
  margin: 0;
  font-size: 13px;
  color: #475569;
}

.student-notif-empty {
  background: rgba(255, 255, 255, 0.85);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 13px;
  color: #475569;
}

.profile-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.profile-field {
  background: #fffdf8;
  border: 1px solid rgba(234, 179, 8, 0.3);
  border-radius: 14px;
  padding: 12px 14px;
}

.profile-field span {
  display: block;
  font-size: 11px;
  font-weight: 800;
  color: #b45309;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.profile-field strong {
  font-size: 14.5px;
  color: #0b1f3a;
}
/* =========================================
   STUDENT WEEKLY 5-HOUR STUDY PLAN
   ========================================= */
.study-settings-bar {
  display: grid;
  grid-template-columns: 180px 180px 1fr;
  gap: 14px;
  align-items: end;
  background: #fffdf5;
  border: 1.5px solid rgba(234, 179, 8, 0.35);
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 16px;
}

.study-settings-bar label {
  display: block;
  font-size: 11.5px;
  font-weight: 800;
  color: #b45309;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.study-settings-bar input {
  width: 100%;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1.5px solid rgba(234, 179, 8, 0.4);
  font-size: 13px;
  color: #0b1f3a;
  background: #ffffff;
}

.study-progress-track {
  width: 100%;
  height: 12px;
  background: #fef9c3;
  border-radius: 999px;
  overflow: hidden;
  margin-top: 6px;
  border: 1px solid rgba(234, 179, 8, 0.35);
}

.study-progress-track.small {
  height: 8px;
}

.study-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #facc15 0%, #eab308 100%);
  border-radius: 999px;
  transition: width 0.25s ease;
}

.paper-progress-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.paper-prog-card {
  background: #ffffff;
  border: 1px solid rgba(234, 179, 8, 0.3);
  border-radius: 12px;
  padding: 10px 12px;
}

.paper-prog-top {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #0b1f3a;
}

.paper-prog-top span {
  font-weight: 800;
  color: #b45309;
}

.pending-topics-panel {
  background: #fef2f2;
  border: 1.5px solid #fca5a5;
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 16px;
}

.pending-topics-head {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
  color: #991b1b;
  font-size: 13.5px;
  margin-bottom: 10px;
}

.pending-topics-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 180px;
  overflow-y: auto;
}

.pending-topic-chip {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: #ffffff;
  border: 1px solid #fecaca;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 12.5px;
  color: #334155;
  cursor: pointer;
}

.all-clear-banner {
  background: #f0fdf4;
  border: 1.5px solid #86efac;
  color: #166534;
  font-size: 13px;
  font-weight: 700;
  padding: 12px 14px;
  border-radius: 14px;
  margin-bottom: 16px;
}

.study-day-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(115px, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}

.study-day-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 8px;
  border-radius: 14px;
  border: 1.5px solid rgba(234, 179, 8, 0.35);
  background: #ffffff;
  cursor: pointer;
  color: #334155;
}

.study-day-tab small {
  font-size: 10.5px;
  font-weight: 800;
  color: #b45309;
  text-transform: uppercase;
}

.study-day-tab strong {
  font-size: 13px;
  color: #0b1f3a;
  margin: 2px 0;
}

.study-day-tab span {
  font-size: 11px;
  color: #64748b;
}

.study-day-tab.active {
  background: linear-gradient(135deg, #fef08a 0%, #facc15 100%);
  border-color: #eab308;
  box-shadow: 0 3px 0 #ca8a04;
}

.study-day-detail {
  background: #fffdf8;
  border: 1.5px solid rgba(234, 179, 8, 0.35);
  border-radius: 18px;
  padding: 18px;
}

.study-day-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.study-day-head h4 {
  margin: 0;
  font-size: 18px;
  color: #0b1f3a;
}

.day-score-pill {
  background: #fef9c3;
  border: 1px solid #facc15;
  color: #854d0e;
  font-size: 12px;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 999px;
}

.study-slots-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.study-slot-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(234, 179, 8, 0.3);
  background: #ffffff;
}

.study-slot-row.break-row {
  background: #f8fafc;
  border-style: dashed;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: #475569;
}

.study-slot-row.task-row {
  cursor: pointer;
}

.study-slot-row.task-row.completed {
  background: #f0fdf4;
  border-color: #86efac;
}

.study-slot-row.task-row.completed .slot-topic-title {
  text-decoration: line-through;
  color: #166534;
}

.slot-main {
  flex: 1;
}

.slot-top-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 4px;
}

.slot-time {
  font-size: 12px;
  font-weight: 800;
  color: #0b1f3a;
}

.slot-paper-badge {
  font-size: 11px;
  font-weight: 800;
  background: #fef9c3;
  color: #854d0e;
  padding: 2px 8px;
  border-radius: 999px;
}

.slot-dur {
  font-size: 11px;
  color: #64748b;
  margin-left: auto;
}

.slot-topic-title {
  font-size: 14.5px;
  font-weight: 800;
  color: #0b1f3a;
}

.slot-topic-detail {
  font-size: 12.5px;
  color: #475569;
  margin-top: 2px;
}

.daily-extra-checks {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(234, 179, 8, 0.25);
}

.extra-chk-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid rgba(234, 179, 8, 0.3);
  font-size: 13px;
  color: #0b1f3a;
  cursor: pointer;
}

.extra-chk-item.completed {
  background: #f0fdf4;
  border-color: #86efac;
}

@media (max-width: 720px) {
  .study-settings-bar {
    grid-template-columns: 1fr;
  }
}
/* =========================================
   STUDENT HOME: MOTIVATION, TODAY TOPICS & TARGETS
   ========================================= */
.weekly-motivation-card {
  background: linear-gradient(135deg, #0b1f3a 0%, #16335b 100%);
  border: 1.5px solid #facc15;
  border-radius: 20px;
  padding: 20px 24px;
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(11, 31, 58, 0.16);
}

.motivation-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  background: rgba(250, 204, 21, 0.2);
  border: 1px solid #facc15;
  color: #fef08a;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.motivation-quote {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.45;
  color: #ffffff;
}

.motivation-tip {
  display: block;
  font-size: 13px;
  color: #fde68a;
}

.home-two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
}

.home-topic-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.home-topic-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  background: #fffdf8;
  border: 1px solid rgba(234, 179, 8, 0.28);
  border-radius: 12px;
}

.home-topic-row.done {
  background: #f0fdf4;
  border-color: #86efac;
}

.home-topic-row strong {
  display: block;
  font-size: 13px;
  color: #0b1f3a;
}

.home-topic-row small {
  display: block;
  font-size: 12px;
  color: #475569;
  margin-top: 2px;
}
/* =========================================
   MOBILE-FIRST DYNAMIC STUDY PLAN
   ========================================= */
.study-hero-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.study-hero-stat {
  background: linear-gradient(135deg, #fffdf2 0%, #fef9c3 100%);
  border: 1.5px solid #facc15;
  border-radius: 16px;
  padding: 12px 14px;
  text-align: center;
}

.study-hero-stat span {
  display: block;
  font-size: 11px;
  font-weight: 800;
  color: #b45309;
  text-transform: uppercase;
}

.study-hero-stat strong {
  display: block;
  font-size: 20px;
  font-weight: 800;
  color: #0b1f3a;
  margin: 4px 0 2px;
}

.study-hero-stat small {
  font-size: 11.5px;
  color: #475569;
}

.study-settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  background: #fffdf5;
  border: 1.5px solid rgba(234, 179, 8, 0.35);
  border-radius: 16px;
  padding: 12px 14px;
  margin-bottom: 14px;
}

.study-settings-grid label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  color: #b45309;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.study-settings-grid input,
.study-settings-grid select {
  width: 100%;
  padding: 9px 10px;
  border-radius: 10px;
  border: 1.5px solid rgba(234, 179, 8, 0.4);
  font-size: 13px;
  color: #0b1f3a;
  background: #ffffff;
}

.week-pills-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 12px;
  -webkit-overflow-scrolling: touch;
}

.week-pill-btn {
  flex: 0 0 auto;
  min-width: 88px;
  padding: 9px 14px;
  border-radius: 14px;
  border: 1.5px solid rgba(234, 179, 8, 0.4);
  background: #ffffff;
  color: #0b1f3a;
  cursor: pointer;
  text-align: center;
}

.week-pill-btn strong {
  display: block;
  font-size: 13px;
}

.week-pill-btn small {
  display: block;
  font-size: 11px;
  color: #b45309;
  font-weight: 700;
}

.week-pill-btn.active {
  background: linear-gradient(135deg, #fef08a 0%, #facc15 100%);
  border-color: #eab308;
  box-shadow: 0 3px 0 #ca8a04;
}

/* Bigger touch checkboxes for mobile */
.sp-topic-chk {
  width: 20px;
  height: 20px;
  accent-color: #eab308;
  flex-shrink: 0;
  margin-top: 2px;
}

@media (max-width: 640px) {
  .study-hero-summary {
    grid-template-columns: 1fr;
  }

  .study-day-tabs {
    grid-template-columns: repeat(2, 1fr);
  }
}
/* =========================================
   KEEP SIDEBAR FIXED ON DESKTOP SCROLL
   ========================================= */
@media (min-width: 861px) {
  .portal-shell {
    display: block;
  }

  .portal-sidebar {
    position: fixed;
    top: 20px;
    left: 24px;
    width: 265px;
    height: calc(100vh - 40px);
    min-height: 0;
    overflow-y: auto;
    z-index: 50;
  }

  .portal-main-content {
    margin-left: 289px;
  }
}
/* =========================================
   MOBILE 3-LINE (HAMBURGER) SIDEBAR TOGGLE
   ========================================= */
.mobile-topbar {
  display: none;
}

.sidebar-backdrop {
  display: none;
}

.sidebar-close-btn {
  display: none;
}

@media (max-width: 860px) {
  .portal-shell {
    display: block;
    padding-top: 64px;
  }

  .portal-main-content {
    margin-left: 0;
  }

  .mobile-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 58px;
    background: rgba(255, 253, 245, 0.96);
    backdrop-filter: blur(12px);
    border-bottom: 1.5px solid rgba(234, 179, 8, 0.4);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 14px;
    z-index: 90;
    box-shadow: 0 4px 14px rgba(180, 130, 10, 0.08);
  }

  .hamburger-btn {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    border: 1.5px solid #eab308;
    background: linear-gradient(135deg, #fef08a 0%, #facc15 100%);
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    flex-shrink: 0;
  }

  .hamburger-btn span {
    display: block;
    width: 20px;
    height: 2.5px;
    background: #0b1f3a;
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .hamburger-btn.is-open span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
  }

  .hamburger-btn.is-open span:nth-child(2) {
    opacity: 0;
  }

  .hamburger-btn.is-open span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
  }

  .mobile-topbar-title {
    flex: 1;
    min-width: 0;
  }

  .mobile-topbar-title strong {
    display: block;
    font-size: 14px;
    font-weight: 800;
    color: #0b1f3a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .mobile-topbar-title small {
    display: block;
    font-size: 11px;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .mobile-topbar-uid {
    font-size: 11px;
    font-weight: 800;
    background: #fef9c3;
    border: 1px solid #facc15;
    color: #854d0e;
    padding: 4px 8px;
    border-radius: 8px;
    flex-shrink: 0;
  }

  .sidebar-backdrop.show {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(11, 31, 58, 0.45);
    backdrop-filter: blur(2px);
    z-index: 105;
  }

  .portal-sidebar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    width: 275px !important;
    max-width: 85vw !important;
    height: 100vh !important;
    border-radius: 0 20px 20px 0 !important;
    transform: translateX(-105%);
    transition: transform 0.25s ease;
    z-index: 110 !important;
    overflow-y: auto;
  }

  .portal-sidebar.mobile-open {
    transform: translateX(0);
  }

  .sidebar-close-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: 1px solid rgba(234, 179, 8, 0.5);
    background: #fef9c3;
    color: #0b1f3a;
    font-size: 18px;
    font-weight: 800;
    cursor: pointer;
  }
}