/* 
=============
Colour System
=============
*/

:root {
  --primary: #3551b8;           
  --tertiary: #07164d;          
  --secondary: #ffffff;         

  --bg-main: var(--primary);
  --bg-header-footer: var(--tertiary);
  --bg-card: #ffffff;

  --text-on-dark: #ffffff;      
  --text-on-light: #07164d;     

  --border-soft: #d1d5db;
  --muted-dark: #6b7280;
  --muted-light: #cbd5f5;
}

/* 
=============
Base + Layout
=============
*/

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background-color: var(--bg-main);   
  color: var(--text-on-dark);         
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* 
======
Header
======
*/

.site-header {
  background: var(--bg-header-footer); 
  color: var(--text-on-dark);          
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.75rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  position: relative;
  z-index: 10;
}

.header-left,
.header-center,
.header-right {
  display: flex;
  align-items: center;
}

.header-left {
  gap: 0.5rem;
}

.header-center {
  flex: 1;
  justify-content: center;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;        
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: auto;
  max-height: 15vh;  
  height: auto;          
}

.main-nav ul,
.footer-nav ul {
  list-style: none;
  display: flex;
  gap: 1.75rem;
  margin: 0;
  padding: 0;
}

.main-nav a,
.footer-nav a {
  color: var(--text-on-dark); 
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.main-nav a:hover,
.footer-nav a:hover {
  text-decoration: underline;
}

.icon-button {
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 1.15rem;
  color: var(--text-on-dark); 
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-button:hover {
  opacity: 0.85;
}

.user-label {
  font-size: 0.95rem;
  color: var(--text-on-dark); 
}

.logout-button {
  background: var(--primary);           
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-on-dark);          
  cursor: pointer;
  font: inherit;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.logout-button:hover {
  opacity: 0.9;
}

/* 
============
Page Content
============
*/

.page-content {
  flex: 1;
  padding: 1.75rem 1.5rem 2rem;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.dashboard-container {
  width: 100%;
}

.dashboard-section {
  margin-bottom: 1.25rem;
}

.section-title {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
  color: var(--text-on-dark);
}

.muted {
  color: var(--muted-light);
  font-size: 0.95rem;
}

/* 
=============
Cards & Grids
=============
*/

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  align-items: stretch;      
}

.card {
  background: var(--bg-card);   
  color: var(--text-on-light);  
  border-radius: 0.9rem;
  padding: 1rem;
  border: 1px solid var(--border-soft);
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.15);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 170px;            
}

.card-title {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-on-light);  
}

.card-meta {
  margin: 0.12rem 0;
  font-size: 0.9rem;
  color: var(--muted-dark);     
}

.card-clickable {
  cursor: pointer;
  transition:
    transform 0.08s ease,
    box-shadow 0.08s ease,
    border-color 0.08s ease,
    background-color 0.08s ease;
}

.card-clickable:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.25);
  border-color: var(--primary);
}

.card-link-wrapper {
  text-decoration: none;
  color: inherit;
  display: block;
}

.card .muted,
.week-block .muted {
  color: var(--muted-dark);
}

/* 
=================
Auth / Login Form
=================
*/

.auth-container {
  max-width: 420px;
  margin: 3.5rem auto;
  padding: 2rem 2.25rem;
  background: var(--bg-card);         
  color: var(--text-on-light);        
  border-radius: 1rem;
  box-shadow: 0 10px 35px rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(148, 163, 184, 0.9);
}

.auth-container h2 {
  margin-top: 0;
  margin-bottom: 1.25rem;
  font-size: 1.4rem;
  text-align: center;
  color: var(--text-on-light);        
}

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

.form-group label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
  color: var(--muted-dark);
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="email"] {
  width: 100%;
  padding: 0.55rem 0.6rem;
  border-radius: 0.55rem;
  border: 1px solid var(--border-soft);
  font-size: 0.95rem;
  outline: none;
  transition:
    border-color 0.1s ease,
    box-shadow 0.1s ease,
    background-color 0.1s ease;
  color: var(--text-on-light);
}

.form-group input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px rgba(53, 81, 184, 0.15);
  background-color: #f9fafb;
}

button[type="submit"] {
  width: 100%;
  padding: 0.75rem 1.2rem;
  border-radius: 0.75rem;
  border: none;
  background: var(--tertiary);
  color: var(--text-on-dark);      
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  margin-top: 0.5rem;
  transition:
    background-color 0.1s ease,
    transform 0.05s ease,
    box-shadow 0.1s ease;
}

button[type="submit"]:hover {
  box-shadow: 0 3px 8px rgba(15, 23, 42, 0.3);
  transform: translateY(-1px);
}

.auth-button {
  display: block;
  width: 100%;
  box-sizing: border-box;
  text-align: center;

  padding: 0.75rem 1.2rem;
  border-radius: 0.75rem;
  border: none;

  background: var(--tertiary);
  color: var(--text-on-dark);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;

  margin-top: 0.75rem;
  cursor: pointer;

  transition: transform 0.05s ease, box-shadow 0.1s ease, opacity 0.1s ease;
}

.auth-button:hover {
  opacity: 0.95;
  box-shadow: 0 3px 8px rgba(15, 23, 42, 0.3);
  transform: translateY(-1px);
}

.auth-button--tertiary {
  background: var(--tertiary);
}

.error-list {
  list-style: none;
  padding: 0.4rem 0.6rem;
  margin: 0 0 1rem;
  background: #fef2f2;
  border-radius: 0.5rem;
  border: 1px solid #fecaca;
  color: #b91c1c;
  font-size: 0.9rem;
}

.secondary-button {
  display: block;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  padding: 0.75rem 1.2rem;
  border-radius: 0.75rem;
  text-decoration: none;
  background: var(--primary); 
  color: var(--text-on-dark);
  font-weight: 600;
  font-size: 0.95rem;
  margin-top: 0.75rem;
}

.secondary-button:hover {
  opacity: 0.95;
  box-shadow: 0 3px 8px rgba(15, 23, 42, 0.3);
  transform: translateY(-1px);
}

.form-group select {
  width: 100%;
  padding: 0.55rem 0.6rem;
  border-radius: 0.55rem;
  border: 1px solid var(--border-soft);
  font-size: 0.95rem;
  outline: none;
  color: var(--text-on-light);
}

.form-group select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px rgba(53, 81, 184, 0.15);
  background-color: #f9fafb;
}

.hint {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.85rem;
  color: var(--muted-dark);
}

.dropdown {
  margin-top: 0.5rem;
  border: 1px solid var(--border-soft);
  border-radius: 0.55rem;
  background: var(--bg-card);
  color: var(--text-on-light);
  max-height: 220px;
  overflow-y: auto;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.18);
}

.dropdown-item {
  padding: 0.55rem 0.7rem;
  cursor: pointer;
  border-bottom: 1px solid rgba(209, 213, 219, 0.5);
}

.dropdown-item:last-child {
  border-bottom: none;
}

.dropdown-item:hover {
  background: rgba(53, 81, 184, 0.08);
}

.dropdown-item--disabled {
  cursor: default;
  opacity: 0.75;
}

.selected-modules {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.module-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  background: var(--tertiary);
  color: var(--text-on-dark);
  font-size: 0.85rem;
  cursor: pointer;
  user-select: none;
}

.module-chip:hover {
  opacity: 0.9;
}

.module-chip .chip-x {
  font-weight: 700;
  opacity: 0.9;
}

/* 
======
Footer
======
*/

.site-footer {
  background: var(--bg-header-footer);  
  color: var(--text-on-dark);           
  padding: 1.25rem 1.5rem 1.5rem;
  border-top: 1px solid rgba(15, 23, 42, 0.6);
}

.footer-top {
  display: flex;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.footer-image-placeholder {
  width: 100%;
  max-width: 600px;
  height: 80px;
  border-radius: 0.75rem;
  border: 1px dashed rgba(209, 213, 219, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: #e5e7eb;
  background: rgba(15, 23, 42, 0.4);
}

.footer-nav {
  display: flex;
  justify-content: center;
}

/* 
====================================
Weekly Resources / Academic Calendar
====================================
*/

.week-block {
  background: var(--bg-card);       
  color: var(--text-on-light);      
  border-radius: 0.9rem;
  padding: 1rem;
  margin-bottom: 1rem;
  border: 1px solid var(--border-soft);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.18);
}

.week-title {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-on-light);      
}

.week-description-text {
  margin: 0.2rem 0 0.6rem;
  font-size: 0.9rem;
  color: var(--text-on-light);
}

.week-label {
  display: block;
  font-size: 0.8rem;
  color: var(--muted-dark);
  margin-bottom: 0.2rem;
}

.week-description-input {
  width: 100%;
  border-radius: 0.5rem;
  border: 1px solid var(--border-soft);
  padding: 0.4rem 0.5rem;
  font-size: 0.9rem;
  resize: vertical;
  margin-bottom: 0.4rem;
  color: var(--text-on-light);
}

.week-files-block {
  margin-top: 0.5rem;
}

.week-files-title {
  font-size: 0.9rem;
  margin: 0 0 0.25rem;
  color: var(--muted-dark);
}

.week-files {
  list-style: none;
  padding-left: 0;
  margin: 0.25rem 0 0.75rem;
}

.week-files li {
  margin-bottom: 0.25rem;
  font-size: 0.9rem;
}

.week-files a {
  color: var(--primary);
  text-decoration: none;
}

.week-files a:hover {
  text-decoration: underline;
}

.week-file-meta {
  font-size: 0.8rem;
  color: var(--muted-dark);
  margin-left: 0.25rem;
}

.week-upload-form {
  margin-top: 0.3rem;
}

.week-upload-input {
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
}

.small-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.95rem;
  border-radius: 0.7rem;
  border: none;
  background: var(--tertiary); 
  color: var(--text-on-dark);       
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.25);
  transition:
    background-color 0.1s ease,
    box-shadow 0.1s ease,
    transform 0.05s ease;
}

.small-button:hover {
  box-shadow: 0 3px 8px rgba(15, 23, 42, 0.3);
  transform: translateY(-1px);
  opacity: 0.95;
}

/*
=============================
File Parser / Document Viewer
=============================
*/

.flash-messages {
  width: 100%;
  max-width: 1200px;
  margin: 1rem auto 0;
  padding: 0 1.5rem;
}

.flash-message {
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.flash-message--success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.flash-message--error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.flash-message--warning {
  background: #fffbeb;
  color: #92400e;
  border: 1px solid #fde68a;
}

.flash-message--info {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.week-file-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.status-badge.ready {
  background: #dcfce7;
  color: #166534;
}

.status-badge.processing {
  background: #fef3c7;
  color: #92400e;
}

.status-badge.failed {
  background: #fee2e2;
  color: #991b1b;
}

.parsed-modal.hidden {
  display: none;
}

.parsed-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.parsed-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
}

.parsed-modal-panel {
  position: relative;
  width: min(1000px, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  margin: 1rem auto;
  background: #ffffff;
  color: var(--text-on-light);
  border-radius: 1rem;
  overflow: auto;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.45);
  padding: 1.25rem;
}

.parsed-modal-close {
  width: auto;
  margin-top: 0;
  margin-bottom: 1rem;
  padding: 0.45rem 0.9rem;
  border-radius: 0.75rem;
}

.parsed-modal-topbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.parsed-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.parsed-document-body {
  color: var(--text-on-light);
}

.parsed-page {
  background: #ffffff;
}

.parsed-page-header {
  font-size: 0.85rem;
  color: var(--muted-dark);
  margin-bottom: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.parsed-page-break {
  margin: 1.5rem 0;
  border: 0;
  border-top: 2px dashed #cbd5e1;
}

.parsed-document-body h1,
.parsed-document-body h2,
.parsed-document-body h3,
.parsed-document-body h4,
.parsed-document-body h5,
.parsed-document-body h6 {
  color: var(--text-on-light);
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.parsed-document-body p,
.parsed-document-body li,
.parsed-document-body td,
.parsed-document-body th,
.parsed-document-body figcaption,
.parsed-document-body blockquote {
  color: var(--text-on-light);
  line-height: 1.6;
}

.parsed-document-body ul,
.parsed-document-body ol {
  padding-left: 1.4rem;
  margin-bottom: 1rem;
}

.parsed-table-wrap {
  overflow-x: auto;
  margin: 1rem 0;
}

.parsed-document-body table {
  width: 100%;
  border-collapse: collapse;
  min-width: 420px;
}

.parsed-document-body th,
.parsed-document-body td {
  border: 1px solid #cbd5e1;
  padding: 0.6rem;
  text-align: left;
  vertical-align: top;
}

.parsed-document-body figure {
  margin: 1rem 0;
}

.parsed-document-body img,
.parsed-image-preview {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
  border: 1px solid #cbd5e1;
}

.parsed-image-preview {
  margin-bottom: 0.75rem;
  max-height: 420px;
  object-fit: contain;
}

/*
=====================
Quizzes Functionality
=====================
*/

.assessment-card-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 0.65rem;
}

.assessment-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.18rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 600;
}

.assessment-badge.assignment {
  background: #dbeafe;
  color: #1d4ed8;
}

.assessment-badge.quiz {
  background: #ede9fe;
  color: #6d28d9;
}

.assessment-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.18rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 600;
  background: #f3f4f6;
  color: #374151;
}

.card-disabled {
  opacity: 0.82;
  cursor: not-allowed;
  border-style: dashed;
}

.card-link-wrapper-disabled {
  text-decoration: none;
  color: inherit;
  display: block;
}

.quiz-divider {
  margin: 1rem 0 1.25rem;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.quiz-builder {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1rem;
}

.quiz-question-editor {
  background: #ffffff;
  color: var(--text-on-light);
  border: 1px solid var(--border-soft);
  border-radius: 0.9rem;
  padding: 1rem;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.15);
}

.quiz-question-editor .card-title,
.quiz-question-editor .card-meta,
.quiz-question-editor label,
.quiz-question-editor legend {
  color: var(--text-on-light);
}

.quiz-question-editor input,
.quiz-question-editor select,
.quiz-question-editor textarea {
  width: 100%;
}

.quiz-checkbox-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: fit-content;
}

.quiz-checkbox-row input {
  width: auto;
}

.quiz-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.quiz-meta-card {
  background: #ffffff;
  color: var(--text-on-light);
  border-radius: 0.9rem;
  border: 1px solid var(--border-soft);
  padding: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.quiz-timer-banner {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #f59e0b;
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.quiz-options-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 0.75rem;
}

.quiz-option-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text-on-light);
}

.quiz-option-row input {
  width: auto;
}

.quiz-fill-preview {
  color: var(--text-on-light);
  font-weight: 600;
  margin: 0.5rem 0 0.25rem;
}

.quiz-blank-selected {
  display: inline-block;
  min-width: 120px;
  border-bottom: 2px solid var(--primary);
  padding-bottom: 0.1rem;
}

.error-list {
  margin: 0 0 1rem 0;
  padding-left: 1.2rem;
  color: #fecaca;
}

/*
============
User Profile
============
*/

.user-link {
  color: var(--text-on-dark);
  text-decoration: none;
}

.user-link:hover {
  text-decoration: underline;
}

.profile-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.profile-summary-card {
  background: var(--bg-card);
  color: var(--text-on-light);
  border-radius: 0.9rem;
  padding: 1rem;
  border: 1px solid var(--border-soft);
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.15);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.profile-summary-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted-dark);
}

.profile-summary-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-on-light);
}

.profile-assessment-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.profile-assessment-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 0;
  border-top: 1px solid rgba(209, 213, 219, 0.7);
}

.profile-assessment-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.profile-assessment-main {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.profile-assessment-link {
  color: var(--text-on-light);
  text-decoration: none;
  font-weight: 600;
}

.profile-assessment-link:hover {
  text-decoration: underline;
}

.profile-metric {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  background: #e5e7eb;
  color: #374151;
}

.profile-metric--complete {
  background: #dcfce7;
  color: #166534;
}

.profile-metric--pending {
  background: #fef3c7;
  color: #92400e;
}

.profile-metric--empty {
  background: #e5e7eb;
  color: #374151;
}

/*
=============
Notifications
============= 
*/

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.notification-shell {
  position: relative;
}

.notification-button {
  position: relative;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 999px;
}

.notification-bell {
  line-height: 1;
}

.notification-badge {
  position: absolute;
  top: -0.2rem;
  right: -0.2rem;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  background: #ef4444;
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.notification-dropdown[hidden] {
  display: none;
}

.notification-dropdown {
  position: absolute;
  top: calc(100% + 0.6rem);
  right: 0;
  width: min(420px, calc(100vw - 2rem));
  background: #ffffff;
  color: var(--text-on-light);
  border: 1px solid var(--border-soft);
  border-radius: 1rem;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.28);
  overflow: hidden;
  z-index: 50;
}

.notification-dropdown-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid rgba(209, 213, 219, 0.7);
  background: #f8fafc;
}

.notification-unread-label {
  color: var(--muted-dark);
  font-size: 0.8rem;
  font-weight: 600;
}

.notification-list {
  display: flex;
  flex-direction: column;
}

.notification-item {
  display: block;
  padding: 0.85rem 1rem;
  text-decoration: none;
  color: var(--text-on-light);
  border-top: 1px solid rgba(209, 213, 219, 0.7);
  transition: background-color 0.15s ease, opacity 0.15s ease;
}

.notification-item:first-child {
  border-top: 0;
}

.notification-item:hover {
  background: #eff6ff;
}

.notification-item--unread {
  background: #f8fbff;
}

.notification-item--read {
  opacity: 0.6;
  background: #ffffff;
}

.notification-title {
  display: block;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 0.25rem;
}

.notification-meta {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  font-size: 0.78rem;
  color: var(--muted-dark);
}

.notification-item-extra {
  display: none;
}

.notification-dropdown--expanded .notification-item-extra {
  display: block;
}

.notification-dropdown--expanded .notification-list {
  max-height: 420px;
  overflow-y: auto;
}

.notification-more-button {
  width: 100%;
  border: 0;
  border-top: 1px solid rgba(209, 213, 219, 0.7);
  background: #f8fafc;
  color: var(--text-on-light);
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  padding: 0.75rem 1rem;
  text-align: center;
}

.notification-more-button:hover {
  background: #eff6ff;
}

.notification-empty {
  padding: 1rem;
  color: var(--muted-dark);
  font-size: 0.9rem;
}

/* 
===============================
Responsive Tweaks - Unfinished
=============================== 
*/

@media (max-width: 768px) {
  .site-header {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .header-center {
    order: 3;
    justify-content: flex-start;
    width: 100%;
  }

  .header-right {
    margin-left: auto;
  }

  .main-nav ul {
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.85rem;
  }

  .page-content {
    padding: 1.25rem 1rem 1.5rem;
  }

  .auth-container {
    margin: 2.5rem 1rem;
    padding: 1.5rem 1.6rem;
  }
}

