@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  /* Common tokens */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.5s cubic-bezier(0.16, 1, 0.3, 1);

  /* Semantic status colors */
  --success: #10b981;
  --success-glow: rgba(16, 185, 129, 0.15);
  --warning: #f59e0b;
  --warning-glow: rgba(245, 158, 11, 0.15);
  --danger: #ef4444;
  --danger-glow: rgba(239, 68, 68, 0.15);
  --info: #3b82f6;
  --info-glow: rgba(59, 130, 246, 0.15);

  /* Light Theme variables (default) */
  --bg-gradient: radial-gradient(circle at 0% 0%, #f0f4ff 0%, #f8fafc 50%, #eef2ff 100%);
  --bg-solid: #f8fafc;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --primary-glow: rgba(79, 70, 229, 0.15);
  --accent: #7c3aed;
  --accent-hover: #6d28d9;
  --accent-glow: rgba(124, 58, 237, 0.15);
  --card-bg: rgba(255, 255, 255, 0.7);
  --card-border: rgba(255, 255, 255, 0.6);
  --glass-bg: rgba(255, 255, 255, 0.4);
  --glass-border: rgba(255, 255, 255, 0.5);
  --input-bg: rgba(255, 255, 255, 0.9);
  --input-border: #cbd5e1;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.02);
  --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 20px 50px -12px rgba(0, 0, 0, 0.08);
  --color-scheme: light;
}

[data-theme="dark"] {
  /* Dark Theme variables */
  --bg-gradient: radial-gradient(circle at 0% 0%, #0d1224 0%, #070a13 50%, #0d0f1b 100%);
  --bg-solid: #070a13;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --primary: #6366f1;
  --primary-hover: #4f46e5;
  --primary-glow: rgba(99, 102, 241, 0.25);
  --accent: #8b5cf6;
  --accent-hover: #7c3aed;
  --accent-glow: rgba(139, 92, 246, 0.25);
  --card-bg: rgba(15, 23, 42, 0.45);
  --card-border: rgba(255, 255, 255, 0.05);
  --glass-bg: rgba(15, 23, 42, 0.35);
  --glass-border: rgba(255, 255, 255, 0.03);
  --input-bg: rgba(15, 23, 42, 0.6);
  --input-border: rgba(255, 255, 255, 0.1);
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 10px -6px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 25px 60px -15px rgba(0, 0, 0, 0.45);
  --color-scheme: dark;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  color-scheme: var(--color-scheme);
}

body {
  font-family: var(--font-body);
  background: var(--bg-solid);
  background-image: var(--bg-gradient);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Background blob decorations for premium organic depth */
body::before, body::after {
  content: "";
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  z-index: -1;
  filter: blur(120px);
  opacity: 0.35;
  pointer-events: none;
}

body::before {
  top: 10%;
  left: -100px;
  background: var(--primary);
}

body::after {
  bottom: 10%;
  right: -100px;
  background: var(--accent);
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--input-border);
  border-radius: var(--radius-full);
  border: 2px solid var(--bg-solid);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* Focus outline accessibility */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Utility styles */
.text-center { text-align: center; }
.mt-4 { margin-top: 16px; }
.mb-4 { margin-bottom: 16px; }
.glass-panel {
  background: var(--card-bg);
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--text-primary);
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Header & Navbar */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px) saturate(120%);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
  background: var(--glass-bg);
  border-bottom: 1px solid var(--glass-border);
  transition: var(--transition-normal);
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 800;
}

.logo i {
  font-size: 28px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-menu {
  display: flex;
  gap: 8px;
  list-style: none;
  align-items: center;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
  background: var(--glass-bg);
}

.nav-link.active {
  box-shadow: 0 0 0 1px var(--glass-border);
}

.btn-login {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: #ffffff !important;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: var(--primary-glow) 0px 10px 20px;
}

.theme-toggle-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 10px;
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle-btn:hover {
  background: var(--glass-bg);
  color: var(--text-primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 24px;
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}

.mobile-nav-toggle:hover {
  background: var(--glass-bg);
}

/* Hero Section */
.hero {
  padding: 80px 0;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero-content h1 {
  font-size: 56px;
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 500px;
}

.hero-actions {
  display: flex;
  gap: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-normal);
  text-decoration: none;
  border: none;
  outline: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--primary-glow) 0px 12px 24px;
}

.btn-secondary {
  background: var(--glass-bg);
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
  background: var(--card-bg);
  transform: translateY(-2px);
}

.hero-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16/9;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.hero-media:hover .hero-image {
  transform: scale(1.03);
}

/* Feature cards */
.features {
  padding: 80px 0;
}

.section-header {
  max-width: 600px;
  margin: 0 auto 56px auto;
}

.section-header h2 {
  font-size: 38px;
  margin-bottom: 16px;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 16px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.feature-card {
  padding: 32px;
  transition: var(--transition-normal);
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
}

.feature-icon-wrapper {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--primary-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.feature-icon-wrapper i {
  font-size: 24px;
  color: var(--primary);
}

.feature-card:nth-child(2) .feature-icon-wrapper {
  background: var(--accent-glow);
}
.feature-card:nth-child(2) .feature-icon-wrapper i {
  color: var(--accent);
}
.feature-card:nth-child(3) .feature-icon-wrapper {
  background: var(--success-glow);
}
.feature-card:nth-child(3) .feature-icon-wrapper i {
  color: var(--success);
}

.feature-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 15px;
}

/* Public Announcements Section */
.announcements-section {
  padding: 60px 0;
}

.announcements-box {
  padding: 40px;
  position: relative;
  overflow: hidden;
}

.announcements-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--card-border);
  padding-bottom: 20px;
  margin-bottom: 24px;
}

.announcements-header h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
}

.announcements-header i {
  color: var(--accent);
}

.announcement-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 380px;
  overflow-y: auto;
  padding-right: 8px;
}

.announcement-item {
  padding: 20px;
  border-radius: var(--radius-md);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  transition: var(--transition-fast);
}

.announcement-item:hover {
  background: var(--card-bg);
  border-color: var(--primary-glow);
}

.announcement-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.announcement-date {
  display: flex;
  align-items: center;
  gap: 6px;
}

.announcement-author {
  background: var(--primary-glow);
  color: var(--primary);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-weight: 600;
}

.announcement-item h4 {
  font-size: 16px;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.announcement-item p {
  font-size: 14px;
  color: var(--text-secondary);
}

/* Contact and Support Section */
.contact-section {
  padding: 80px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
}

.contact-info {
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.contact-card h3 {
  font-size: 28px;
  margin-bottom: 12px;
}

.contact-card p {
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.contact-details-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-detail-icon {
  width: 44px;
  height: 44px;
  background: var(--primary-glow);
  color: var(--primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.contact-detail-text h4 {
  font-size: 16px;
  margin-bottom: 4px;
}

.contact-detail-text p {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
}

.support-form-wrapper {
  padding: 40px;
}

.support-form-wrapper h3 {
  font-size: 24px;
  margin-bottom: 8px;
}

.support-form-wrapper p {
  color: var(--text-secondary);
  margin-bottom: 24px;
  font-size: 14px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-secondary);
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--input-border);
  background: var(--input-bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 15px;
  transition: var(--transition-fast);
}

.form-control:focus {
  border-color: var(--primary);
  background: var(--bg-solid);
  box-shadow: 0 0 0 4px var(--primary-glow);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Modals */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(7, 10, 19, 0.6);
  backdrop-filter: blur(8px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal.active {
  display: flex;
}

.modal-content {
  width: 100%;
  max-width: 440px;
  padding: 40px;
  position: relative;
  box-shadow: var(--shadow-lg);
  animation: modalFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 20px;
  cursor: pointer;
  transition: var(--transition-fast);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: var(--glass-bg);
  color: var(--text-primary);
}

.modal-header {
  margin-bottom: 24px;
  text-align: center;
}

.modal-header h3 {
  font-size: 24px;
  margin-bottom: 8px;
}

.modal-header p {
  color: var(--text-secondary);
  font-size: 14px;
}

/* Dashboard Styles */
.dashboard-view {
  padding: 40px 0 80px 0;
  display: none;
}

.dashboard-view.active {
  display: block;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  align-items: start;
}

.dashboard-sidebar {
  padding: 24px;
  position: sticky;
  top: 100px;
}

.user-profile-summary {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--card-border);
  margin-bottom: 24px;
}

.avatar-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-family: var(--font-heading);
  font-weight: 700;
  margin-bottom: 16px;
  box-shadow: var(--shadow-md);
}

.user-name {
  font-size: 18px;
  font-weight: 700;
}

.user-role-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  margin-top: 6px;
  display: inline-block;
}

.role-admin { background: var(--danger-glow); color: var(--danger); }
.role-teacher { background: var(--accent-glow); color: var(--accent); }
.role-student { background: var(--success-glow); color: var(--success); }

.sidebar-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sidebar-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 550;
  text-align: left;
  transition: var(--transition-fast);
}

.sidebar-btn:hover, .sidebar-btn.active {
  background: var(--glass-bg);
  color: var(--text-primary);
}

.sidebar-btn.active {
  box-shadow: 0 0 0 1px var(--glass-border);
  background: var(--card-bg);
}

.sidebar-btn-logout {
  margin-top: 24px;
  color: var(--danger);
}

.sidebar-btn-logout:hover {
  background: var(--danger-glow);
  color: var(--danger);
}

/* Dashboard content segments */
.dashboard-content-panel {
  padding: 32px;
  min-height: 500px;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
  animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.dashboard-pane-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--card-border);
  padding-bottom: 16px;
}

.dashboard-pane-header h3 {
  font-size: 24px;
}

/* Stats Row */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.stat-card {
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.stat-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.stat-info h4 {
  font-size: 28px;
  line-height: 1.1;
  margin-bottom: 4px;
}

.stat-info p {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Specific classes for stat colors */
.stat-primary .stat-icon { background: var(--primary-glow); color: var(--primary); }
.stat-accent .stat-icon { background: var(--accent-glow); color: var(--accent); }
.stat-success .stat-icon { background: var(--success-glow); color: var(--success); }
.stat-warning .stat-icon { background: var(--warning-glow); color: var(--warning); }

/* Table styles */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-md);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  margin-bottom: 20px;
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}

th {
  background: var(--card-bg);
  padding: 14px 20px;
  font-weight: 600;
  color: var(--text-primary);
  border-bottom: 1px solid var(--card-border);
}

td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--card-border);
  color: var(--text-secondary);
  vertical-align: middle;
}

tr:last-child td {
  border-bottom: none;
}

tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* Badge styles */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
}

.badge-success { background: var(--success-glow); color: var(--success); }
.badge-warning { background: var(--warning-glow); color: var(--warning); }
.badge-danger { background: var(--danger-glow); color: var(--danger); }
.badge-info { background: var(--info-glow); color: var(--info); }

/* Class assignment picker */
.classes-grid-selector {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
  margin-top: 8px;
  padding: 12px;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: var(--radius-md);
  max-height: 180px;
  overflow-y: auto;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  color: var(--text-secondary);
}

.checkbox-label input {
  cursor: pointer;
}

.permissions-grid-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 8px;
  padding: 12px;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: var(--radius-md);
}

/* Homework student item styling */
.student-homework-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.homework-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.homework-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.homework-card-header h4 {
  font-size: 18px;
}

.homework-class-tag {
  background: var(--primary-glow);
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.homework-card p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  flex-grow: 1;
}

.homework-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--card-border);
  padding-top: 16px;
  font-size: 13px;
}

.homework-due-date {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Notice list inside class board */
.notices-board-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.notice-board-card {
  padding: 20px;
}

.notice-board-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
  font-weight: 500;
}

.notice-board-card h4 {
  font-size: 16px;
  margin-bottom: 8px;
}

.notice-board-card p {
  font-size: 14px;
  color: var(--text-secondary);
}

/* Support tickets lists */
.ticket-item {
  padding: 20px;
  margin-bottom: 16px;
}

.ticket-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.ticket-header h4 {
  font-size: 16px;
}

.ticket-body {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.ticket-reply-box {
  background: var(--input-bg);
  border-top: 1px solid var(--card-border);
  padding: 16px 20px;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  margin: 16px -20px -20px -20px;
  font-size: 13px;
}

.ticket-reply-author {
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 4px;
}

.ticket-reply-text {
  color: var(--text-secondary);
}

/* Footer styling */
footer {
  background: var(--bg-solid);
  border-top: 1px solid var(--card-border);
  padding: 40px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.footer-logo i {
  color: var(--primary);
}

/* Toast notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.toast {
  padding: 16px 24px;
  border-radius: var(--radius-md);
  color: white;
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: toastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes toastSlideIn {
  from { transform: translateX(100%) translateY(10px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.toast-success { background: var(--success); }
.toast-error { background: var(--danger); }
.toast-info { background: var(--info); }

/* Responsive adjustments */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-actions {
    justify-content: center;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .dashboard-sidebar {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 16px;
    position: sticky;
    top: 80px;
    z-index: 10;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
  }
  .user-profile-summary {
    display: none; /* Hide profile summary on sidebar to save screen space */
  }
  .sidebar-menu {
    flex-direction: row;
    flex: 1;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 4px 0;
    align-items: center;
    margin-bottom: 0;
  }
  .sidebar-menu::-webkit-scrollbar {
    display: none;
  }
  .sidebar-btn {
    white-space: nowrap;
    width: auto;
    padding: 8px 14px;
    scroll-snap-align: start;
    font-size: 13px;
  }
  .sidebar-btn-logout {
    margin-top: 0;
    white-space: nowrap;
    width: auto;
    padding: 8px 14px;
    font-size: 13px;
  }
}

@media (max-width: 768px) {
  .nav-wrapper {
    height: 70px;
  }
  .nav-menu {
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    flex-direction: column;
    background: var(--glass-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--glass-border);
    padding: 24px;
    gap: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-15px);
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
    pointer-events: none;
    z-index: 99;
  }
  .nav-menu.active {
    display: flex;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }
  .mobile-nav-toggle {
    display: block;
  }
  .hero-content h1 {
    font-size: 36px;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .dashboard-content-panel {
    padding: 20px;
  }
  .dashboard-sidebar {
    top: 70px; /* Adjust for shorter nav on mobile */
  }
}
