/* ==========================================================================
   Tengsl Platform - Main Stylesheet
   Mobile-first, clean, professional design for Icelandic schools
   ========================================================================== */

/* --------------------------------------------------------------------------
   Reset & Base
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--peach);
  color: var(--olive);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-weight: 700;
  line-height: 1.3;
}

p {
  margin-top: 0;
  margin-bottom: 1rem;
}

a {
  color: var(--olive-lighter);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
}

/* --------------------------------------------------------------------------
   CSS Custom Properties
   -------------------------------------------------------------------------- */
:root {
  --olive: #576238;
  --olive-light: #6e7d48;
  --olive-lighter: #8a9a60;
  --olive-pale: #e8ecdf;
  --peach: #FAF9F6;
  --peach-dark: #f0f0e0;
  --peach-light: #fffff8;
  --peach-white: #fffffb;
  --sage: #6b8f71;
  --sage-light: #a3c4a8;
  --amber: #c4882a;
  --amber-light: #e8b35c;
  --coral: #c05555;
  --coral-light: #e09090;
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-700: #374151;
  --gray-900: #1f2937;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
  --transition: 150ms ease;
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */
.app-container {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: 260px;
  background: var(--olive);
  color: var(--peach);
  flex-shrink: 0;
  position: fixed;
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  z-index: 1000;
  transition: transform 0.3s ease;
}

.sidebar-header {
  padding: 1.75rem 1.5rem;
  border-bottom: 1px solid var(--olive-light);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sidebar-header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--peach);
  margin-bottom: 0;
}

.sidebar-header .logo-icon {
  font-size: 1.75rem;
}

.sidebar-brand {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--peach);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.sidebar-brand:hover {
  color: var(--peach-light);
  text-decoration: none;
}

.sidebar-nav {
  padding: 0.75rem 0;
  flex: 1;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  color: var(--peach);
  text-decoration: none;
  transition: all var(--transition);
  font-size: 1.25rem;
  font-weight: 600;
  border-left: 4px solid transparent;
}

.sidebar-nav a:hover {
  background: var(--olive-light);
  color: var(--peach-light);
  text-decoration: none;
}

.sidebar-nav a.active {
  background: var(--olive-light);
  color: var(--peach-light);
  border-left: 3px solid var(--peach);
}

.sidebar-nav .nav-section-title {
  padding: 1.25rem 1.5rem 0.5rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--peach-dark);
  font-weight: 600;
}

.sidebar-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--olive-light);
  font-size: 0.95rem;
  color: var(--peach);
}

.sidebar-user-name {
  font-weight: 600;
  color: var(--peach);
  font-size: 1rem;
}

.sidebar-user-role {
  color: var(--peach-dark);
  font-size: 0.9rem;
}

/* Main Content */
.main-content {
  flex: 1;
  margin-left: 260px;
  min-height: 100vh;
}

.top-bar {
  background: white;
  border-bottom: 1px solid var(--gray-200);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--olive);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem;
}

.content {
  padding: 2rem;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.page-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0;
}

.page-subtitle {
  font-size: 1.05rem;
  color: var(--slate);
  margin-top: 0.25rem;
}

/* Overlay for mobile sidebar */
.overlay {
  display: none;
}

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */
.card {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card + .card {
  margin-top: 1.5rem;
}

.card-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-header h2,
.card-header h3 {
  margin-bottom: 0;
  font-size: 1.1rem;
}

.card-body {
  padding: 1.5rem;
}

.card-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--gray-100);
  background: var(--gray-50);
}

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.stat-card {
  background: white;
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--olive);
}

.stat-card.sage {
  border-left-color: var(--sage);
}

.stat-card.amber {
  border-left-color: var(--amber);
}

.stat-card.coral {
  border-left-color: var(--coral);
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.2;
}

.stat-label {
  font-size: 0.95rem;
  color: var(--slate);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
}

/* --------------------------------------------------------------------------
   Tables
   -------------------------------------------------------------------------- */
.table-container {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th {
  text-align: left;
  padding: 0.875rem 1rem;
  background: var(--gray-50);
  color: var(--slate);
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 2px solid var(--gray-200);
  white-space: nowrap;
}

th[data-sort] {
  cursor: pointer;
  user-select: none;
}

th[data-sort]:hover {
  color: var(--olive);
}

th[data-sort]::after {
  content: " \2195";
  font-size: 0.7em;
  opacity: 0.4;
}

th[data-sort].sort-asc::after {
  content: " \2191";
  opacity: 1;
}

th[data-sort].sort-desc::after {
  content: " \2193";
  opacity: 1;
}

td {
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--gray-100);
  font-size: 1rem;
}

tr:hover td {
  background: var(--gray-50);
}

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  margin-bottom: 0.375rem;
  font-weight: 600;
  font-size: 1rem;
  color: var(--gray-700);
}

.form-control {
  width: 100%;
  padding: 0.75rem 0.875rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color var(--transition), box-shadow var(--transition);
  background: white;
  color: var(--gray-900);
}

.form-control:focus {
  border-color: var(--olive);
  outline: none;
  box-shadow: 0 0 0 3px var(--olive-pale);
}

.form-control.is-invalid {
  border-color: var(--coral);
}

.form-control.is-invalid:focus {
  box-shadow: 0 0 0 3px rgba(232, 93, 93, 0.1);
}

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

.form-text {
  font-size: 0.9rem;
  color: var(--slate);
  margin-top: 0.25rem;
}

.form-error {
  font-size: 0.9rem;
  color: var(--coral);
  margin-top: 0.25rem;
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23475569' d='M6 8.825a.5.5 0 0 1-.354-.146l-4-4a.5.5 0 0 1 .708-.708L6 7.617l3.646-3.646a.5.5 0 0 1 .708.708l-4 4A.5.5 0 0 1 6 8.825z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.form-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.form-check input[type="checkbox"],
.form-check input[type="radio"] {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--olive);
  margin: 0;
}

.form-check label {
  font-size: 1rem;
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.35rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  text-decoration: none;
  line-height: 1.4;
}

.btn:hover {
  text-decoration: none;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--olive-light);
  color: white;
}

.btn-primary:hover:not(:disabled) {
  background: var(--olive);
}

.btn-secondary {
  background: var(--gray-200);
  color: var(--gray-700);
}

.btn-secondary:hover:not(:disabled) {
  background: var(--gray-300);
}

.btn-success {
  background: var(--sage);
  color: white;
}

.btn-success:hover:not(:disabled) {
  background: #5a7d60;
}

.btn-warning {
  background: var(--amber);
  color: white;
}

.btn-warning:hover:not(:disabled) {
  background: #b45309;
}

.btn-danger {
  background: var(--coral);
  color: white;
}

.btn-danger:hover:not(:disabled) {
  background: #d43d3d;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--gray-300);
  color: var(--gray-700);
}

.btn-outline:hover:not(:disabled) {
  background: var(--gray-50);
}

.btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.8rem;
}

.btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}

.btn-icon {
  padding: 0.5rem;
  border-radius: 50%;
}

.btn-group {
  display: flex;
  gap: 0.5rem;
}

/* --------------------------------------------------------------------------
   Badges & Status
   -------------------------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
}

.badge-blue {
  background: var(--olive-pale);
  color: var(--olive);
}

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

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

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

.badge-gray {
  background: var(--gray-200);
  color: var(--slate);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 0.5rem;
  flex-shrink: 0;
}

.status-dot.active {
  background: var(--sage);
}

.status-dot.inactive {
  background: var(--slate-light);
}

.status-dot.warning {
  background: var(--amber);
}

.status-dot.danger {
  background: var(--coral);
}

/* --------------------------------------------------------------------------
   Alerts / Notifications
   -------------------------------------------------------------------------- */
.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  display: flex;
  align-items: start;
  gap: 0.75rem;
  font-size: 0.9rem;
}

.alert-success {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #86efac;
}

.alert-error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

.alert-warning {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fcd34d;
}

.alert-info {
  background: var(--olive-pale);
  color: var(--olive);
  border: 1px solid #93c5fd;
}

.alert-icon {
  flex-shrink: 0;
  font-size: 1.2rem;
}

.alert-dismissible {
  position: relative;
  padding-right: 3rem;
}

.alert-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0.5;
  line-height: 1;
}

.alert-close:hover {
  opacity: 1;
}

/* --------------------------------------------------------------------------
   Modal
   -------------------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: white;
  border-radius: var(--radius-lg);
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  transform: translateY(10px);
  transition: transform 0.2s ease;
}

.modal-overlay.active .modal {
  transform: translateY(0);
}

.modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h2,
.modal-header h3 {
  margin-bottom: 0;
  font-size: 1.1rem;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--slate-light);
  line-height: 1;
  padding: 0;
}

.modal-close:hover {
  color: var(--gray-900);
}

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--gray-100);
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

/* --------------------------------------------------------------------------
   Pagination
   -------------------------------------------------------------------------- */
.pagination {
  display: flex;
  gap: 0.25rem;
  justify-content: center;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.pagination a,
.pagination span {
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  text-decoration: none;
  transition: all var(--transition);
}

.pagination a {
  background: white;
  color: var(--gray-700);
  border: 1px solid var(--gray-200);
}

.pagination a:hover {
  background: var(--gray-50);
  text-decoration: none;
}

.pagination .active {
  background: var(--olive);
  color: white;
  border-color: var(--olive);
}

.pagination .disabled {
  opacity: 0.5;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   Empty State
   -------------------------------------------------------------------------- */
.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--slate-light);
}

.empty-state-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.empty-state-text {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

/* --------------------------------------------------------------------------
   Utility Classes
   -------------------------------------------------------------------------- */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }

.flex { display: flex; }
.flex-between { justify-content: space-between; }
.flex-center { align-items: center; }
.flex-wrap { flex-wrap: wrap; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }

.hidden { display: none; }
.w-full { width: 100%; }
.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Animations
   -------------------------------------------------------------------------- */
@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

.fade-in {
  animation: fadeIn 0.3s ease;
}

@keyframes slideDown {
  0% { opacity: 0; transform: translateY(-10px); }
  100% { opacity: 1; transform: translateY(0); }
}

.slide-down {
  animation: slideDown 0.3s ease;
}

/* --------------------------------------------------------------------------
   Sociogram Specific
   -------------------------------------------------------------------------- */
.sociogram-container {
  width: 100%;
  min-height: 500px;
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}

.sociogram-controls {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
  flex-wrap: wrap;
  align-items: center;
}

.sociogram-controls label {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.85rem;
  cursor: pointer;
  white-space: nowrap;
}

.sociogram-controls input[type="range"] {
  width: 100px;
}

.sociogram-legend {
  display: flex;
  gap: 1rem;
  padding: 0.75rem;
  font-size: 0.85rem;
  align-items: center;
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.legend-line {
  width: 20px;
  height: 2px;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Dropdown Menu
   -------------------------------------------------------------------------- */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
  min-width: 180px;
  padding: 0.375rem 0;
  z-index: 100;
  display: none;
}

.dropdown-menu.show {
  display: block;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  color: var(--gray-700);
  text-decoration: none;
  transition: background var(--transition);
}

.dropdown-item:hover {
  background: var(--gray-50);
  text-decoration: none;
}

.dropdown-item.danger {
  color: var(--coral);
}

.dropdown-divider {
  border-top: 1px solid var(--gray-200);
  margin: 0.375rem 0;
}

/* --------------------------------------------------------------------------
   Responsive / Mobile (max-width: 768px)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
    position: fixed;
    z-index: 1000;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .main-content {
    margin-left: 0;
  }

  .mobile-toggle {
    display: block;
  }

  .overlay.active {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
  }

  .content {
    padding: 1rem;
  }

  .top-bar {
    padding: 0.75rem 1rem;
  }

  .page-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .visible-mobile {
    display: block;
  }

  .hidden-mobile {
    display: none;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .btn-group {
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

/* Desktop only */
@media (min-width: 769px) {
  .visible-mobile {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   Auth Pages (login, 2FA)
   -------------------------------------------------------------------------- */
.auth-body {
  background: linear-gradient(135deg, var(--olive) 0%, var(--olive) 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-container {
  width: 100%;
  max-width: 420px;
  padding: 1rem;
}

.auth-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 2.5rem 2rem;
}

.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-brand {
  font-size: 2rem;
  font-weight: 700;
  color: var(--olive);
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.auth-subtitle {
  color: var(--slate-light);
  font-size: 0.95rem;
  margin: 0;
}

.btn-block {
  display: block;
  width: 100%;
}

/* --------------------------------------------------------------------------
   Alert Cards
   -------------------------------------------------------------------------- */
.alert-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.alert-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border-left: 5px solid var(--gray-300);
  overflow: hidden;
}

.alert-card-critical { border-left-color: var(--coral); }
.alert-card-warning { border-left-color: var(--amber); }
.alert-card-info { border-left-color: var(--sage); }
.alert-card-dismissed { border-left-color: var(--gray-300); opacity: 0.7; }

.alert-card-header {
  padding: 0.875rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid var(--gray-100);
  font-size: 0.95rem;
}

.alert-card-date {
  margin-left: auto;
  color: var(--slate);
  font-size: 0.9rem;
}

.alert-card-body {
  padding: 1rem 1.25rem;
}

.alert-card-student {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.alert-card-message {
  color: var(--slate);
  font-size: 1rem;
}

.alert-card-actions {
  padding: 0.75rem 1.25rem;
  border-top: 1px solid var(--gray-100);
  background: var(--gray-50);
}

.badge-critical { background: #fee2e2; color: #991b1b; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-info { background: var(--olive-pale); color: var(--olive); }

/* --------------------------------------------------------------------------
   Print (basic overrides — see print.css for full print styles)
   -------------------------------------------------------------------------- */
@media print {
  .sidebar,
  .top-bar,
  .btn,
  .no-print,
  .mobile-toggle,
  .overlay {
    display: none !important;
  }

  .main-content {
    margin-left: 0 !important;
  }

  .card {
    box-shadow: none;
    border: 1px solid #ddd;
  }

  body {
    background: white;
    color: black;
  }
}
