/* ============================================
   BASE STYLES - Hallenbelegung
   ============================================ */

/* CSS Custom Properties - Light Theme (Default) */
:root {
  /* Colors */
  --bg: #f8fafc;
  --bg-elevated: #ffffff;
  --panel: #ffffff;
  --text: #0f172a;
  --text-secondary: #475569;
  --muted: #64748b;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;

  /* Brand Colors */
  --accent: #8d1d39;
  --accent-hover: #7a1832;
  --accent-light: #fef2f2;
  --accent-rgb: 141, 29, 57;

  /* Chips & Tags */
  --chip: #0f172a;
  --chip-text: #ffffff;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.04), 0 2px 8px rgba(0, 0, 0, 0.02);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.08), 0 4px 16px rgba(0, 0, 0, 0.04);

  /* Radii */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 18px;
  --radius-full: 999px;

  /* Transitions */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  /* Header */
  --header-height: 64px;
  --header-bg: rgba(255, 255, 255, 0.85);

  /* Z-Index Scale */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-modal-backdrop: 400;
  --z-modal: 500;
  --z-tooltip: 600;
}

/* Dark Theme */
[data-theme="dark"] {
  --bg: #0f172a;
  --bg-elevated: #1e293b;
  --panel: #1e293b;
  --text: #f1f5f9;
  --text-secondary: #94a3b8;
  --muted: #64748b;
  --line: #334155;
  --line-strong: #475569;

  --accent-light: rgba(141, 29, 57, 0.15);

  --chip: #f1f5f9;
  --chip-text: #0f172a;

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.25), 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.3), 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.4), 0 4px 16px rgba(0, 0, 0, 0.3);

  --header-bg: rgba(15, 23, 42, 0.85);
}

/* ============================================
   RESET & BASE
   ============================================ */

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

html {
  height: 100%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   SITE HEADER
   ============================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-fixed);
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--header-height);
  padding: 0 24px;
  background: var(--header-bg);
  backdrop-filter: blur(12px) saturate(180%);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
}

.site-header__brand {
  flex-shrink: 0;
}

.site-header__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  transition: opacity var(--transition-fast);
}

.site-header__logo:hover {
  opacity: 0.8;
}

.site-header__logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.site-header__logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.site-header__title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--accent), #b91c1c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.site-header__subtitle {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* Navigation */
.site-header__nav {
  display: flex;
  gap: 4px;
}

/* Header Controls - Dynamic slot for page-specific navigation */
.site-header__controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-header__controls:empty {
  display: none;
}

/* Header Week Navigation */
.header-week-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--bg);
  padding: 3px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}

.header-week-nav__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  background: transparent;
  border-radius: var(--radius-xs);
  cursor: pointer;
  color: var(--muted);
  transition: all var(--transition-fast);
}

.header-week-nav__btn:hover {
  background: var(--panel);
  color: var(--text);
}

.header-week-nav__btn--today {
  width: auto;
  padding: 0 12px;
  background: var(--accent);
  color: white;
  font-size: 12px;
  font-weight: 700;
}

.header-week-nav__btn--today:hover {
  background: var(--accent-hover);
  color: white;
}

.header-week-nav__label {
  padding: 0 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

.header-week-nav__label--clickable {
  cursor: pointer;
  border-radius: var(--radius-xs);
  transition: background var(--transition-fast);
}

.header-week-nav__label--clickable:hover {
  background: var(--panel);
}

/* Hidden date input that opens on label click */
.header-week-nav__date-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  padding: 0;
  border: 0;
  pointer-events: none;
}

/* Header Week Days - compact day buttons */
.header-week-days {
  display: flex;
  gap: 2px;
}

.header-week-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4px 10px;
  background: transparent;
  border: none;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: all var(--transition-fast);
  min-width: 44px;
  font-family: inherit;
}

.header-week-day:hover {
  background: var(--panel);
}

.header-week-day--active {
  background: var(--accent);
  color: white;
}

.header-week-day--active:hover {
  background: var(--accent-hover);
}

.header-week-day--today {
  box-shadow: inset 0 -2px 0 var(--accent);
}

.header-week-day--today.header-week-day--active {
  box-shadow: none;
}

.header-week-day__name {
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--muted);
  margin-bottom: 2px;
}

.header-week-day--active .header-week-day__name {
  color: rgba(255, 255, 255, 0.85);
}

.header-week-day__date {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.header-week-day--active .header-week-day__date {
  color: white;
}

/* Day-specific variant */
.header-week-nav--day {
  padding: 2px;
}

/* Header Buttons */
.site-header__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  padding: 0 12px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--panel);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.site-header__btn:hover {
  border-color: var(--muted);
  transform: translateY(-1px);
}

.site-header__btn--icon {
  width: 36px;
  padding: 0;
}

.site-header__btn--ghost {
  background: transparent;
  border-color: transparent;
}

.site-header__btn--ghost:hover {
  background: var(--bg);
  border-color: var(--line);
}

.site-header__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.site-header__link:hover {
  color: var(--text);
  background: rgba(var(--accent-rgb), 0.05);
}

.site-header__link--active {
  color: var(--accent);
  background: var(--accent-light);
}

.site-header__link--active:hover {
  color: var(--accent);
  background: var(--accent-light);
}

.site-header__link svg {
  flex-shrink: 0;
}

/* Actions (Dark Mode Toggle) */
.site-header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.site-header__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--panel);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.site-header__toggle:hover {
  border-color: var(--text);
  color: var(--text);
  transform: scale(1.05);
}

.site-header__toggle:active {
  transform: scale(0.95);
}

/* Sun/Moon Icons */
.site-header__toggle .icon-moon {
  display: none;
}

[data-theme="dark"] .site-header__toggle .icon-sun {
  display: none;
}

[data-theme="dark"] .site-header__toggle .icon-moon {
  display: block;
}

/* User Menu */
.site-header__user-menu {
  position: relative;
}

.site-header__user-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px 6px 6px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--panel);
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.site-header__user-btn:hover {
  border-color: var(--muted);
  background: var(--bg);
}

.site-header__user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

.site-header__user-name {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-header__dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 220px;
  padding: 8px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition-fast);
  z-index: var(--z-dropdown);
}

.site-header__dropdown.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.site-header__dropdown-header {
  padding: 8px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.site-header__dropdown-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.site-header__dropdown-role {
  font-size: 12px;
  color: var(--muted);
}

.site-header__dropdown-dept {
  font-size: 11px;
  color: var(--accent);
  font-weight: 500;
}

.site-header__dropdown-divider {
  height: 1px;
  background: var(--line);
  margin: 4px 0;
}

.site-header__dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: none;
  border-radius: var(--radius-xs);
  background: transparent;
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: inherit;
}

.site-header__dropdown-item:hover {
  background: var(--bg);
}

.site-header__dropdown-item svg {
  color: var(--muted);
  flex-shrink: 0;
}

.site-header__dropdown-item:hover svg {
  color: var(--text);
}

.site-header__dropdown-item--danger {
  color: #dc2626;
}

.site-header__dropdown-item--danger:hover {
  background: rgba(220, 38, 38, 0.08);
}

.site-header__dropdown-item--danger svg {
  color: #dc2626;
}

/* Primary Button (Login) */
.site-header__btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.site-header__btn--primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: white;
}

/* ============================================
   PAGE CONTROLS (TOPBAR CONTENT)
   ============================================ */

.page-controls {
  flex-shrink: 0;
  padding: 12px 20px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--line);
}

.page-controls__header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 12px;
}

.page-controls__title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0;
}

.page-controls__subtitle {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}

/* ============================================
   SKELETON LOADERS
   ============================================ */

.skeleton {
  background: linear-gradient(
    90deg,
    var(--line) 0%,
    var(--bg-elevated) 50%,
    var(--line) 100%
  );
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius-sm);
}

@keyframes skeleton-shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.skeleton--text {
  height: 1em;
  width: 100%;
}

.skeleton--chip {
  height: 32px;
  width: 80px;
  border-radius: var(--radius-full);
}

.skeleton--cell {
  height: var(--rowH, 40px);
}

/* ============================================
   LOADING SPINNER
   ============================================ */

.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loading-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--bg), 0.8);
  backdrop-filter: blur(4px);
  z-index: var(--z-modal-backdrop);
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

*:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

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

/* Skip Link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 24px;
  background: var(--accent);
  color: white;
  font-weight: 600;
  border-radius: var(--radius-sm);
  z-index: 9999;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 16px;
}

/* ============================================
   FORM CONTROLS - DROPDOWNS & INPUTS
   ============================================ */

.form-select,
.form-input {
  height: 36px;
  padding: 0 12px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--panel);
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.form-select {
  padding-right: 32px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 16px;
}

.form-select:hover,
.form-input:hover {
  border-color: var(--muted);
}

.form-select:focus,
.form-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.08);
}

.form-select--compact,
.form-input--compact {
  height: 32px;
  padding: 0 10px;
  font-size: 12px;
}

.form-select--compact {
  padding-right: 28px;
  background-size: 14px;
}

/* Inline form field with label */
.form-field {
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-field__label {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

/* Stacked form field */
.form-field--stacked {
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

/* Dark mode select arrow */
[data-theme="dark"] .form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
  .site-header {
    padding: 0 16px;
    gap: 12px;
  }

  .site-header__logo-text {
    display: none;
  }

  .site-header__link span {
    display: none;
  }

  .site-header__link {
    padding: 10px 12px;
  }

  .site-header__controls {
    margin-left: auto;
  }

  .header-week-nav__label {
    display: none;
  }

  .site-header__btn span {
    display: none;
  }

  .site-header__btn--ghost {
    width: 36px;
    padding: 0;
  }

  .site-header__user-name {
    display: none;
  }

  .site-header__user-btn {
    padding: 6px;
  }

  .site-header__user-btn svg:last-child {
    display: none;
  }

  .site-header__dropdown {
    right: -8px;
    min-width: 200px;
  }
}

@media (max-width: 480px) {
  :root {
    --header-height: 56px;
  }

  .site-header__logo-icon svg {
    width: 28px;
    height: 28px;
  }

  .header-week-nav {
    padding: 2px;
  }

  .header-week-nav__btn {
    width: 28px;
    height: 28px;
  }

  .header-week-nav__btn--today {
    padding: 0 8px;
    font-size: 11px;
  }

  .header-week-days {
    gap: 1px;
  }

  .header-week-day {
    padding: 3px 6px;
    min-width: 36px;
  }

  .header-week-day__name {
    font-size: 8px;
  }

  .header-week-day__date {
    font-size: 12px;
  }
}

/* ============================================
   DARK MODE TRANSITION
   ============================================ */

html.theme-transition,
html.theme-transition *,
html.theme-transition *::before,
html.theme-transition *::after {
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease !important;
}

/* ============================================
   SITE FOOTER
   ============================================ */

.site-footer {
  flex-shrink: 0;
  padding: 12px 24px;
  background: var(--bg-elevated);
  border-top: 1px solid var(--line);
  text-align: center;
}

.site-footer__content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 12px;
  color: var(--muted);
}

.site-footer__divider {
  opacity: 0.5;
}

.site-footer__version {
  font-weight: 600;
}

@media (max-width: 768px) {
  .site-footer {
    display: none;
  }
}

@media print {
  .site-footer {
    display: none !important;
  }
}

/* ============================================
   HAMBURGER BUTTON (Mobile Only)
   ============================================ */

.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  padding: 8px;
  gap: 5px;
  border: none;
  background: transparent;
  cursor: pointer;
  z-index: calc(var(--z-modal) + 10);
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
}

.hamburger-btn:hover {
  background: var(--bg);
}

.hamburger-btn__line {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger-btn.is-active .hamburger-btn__line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-btn.is-active .hamburger-btn__line:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
}

.hamburger-btn.is-active .hamburger-btn__line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 768px) {
  .hamburger-btn {
    display: flex;
  }

  /* Hide desktop nav on mobile */
  .site-header__nav {
    display: none;
  }

  /* Hide user menu on mobile (it's in the hamburger menu) */
  .site-header__user-menu {
    display: none;
  }

  /* Hide Kurabu button on mobile */
  .site-header__btn--ghost {
    display: none;
  }

  /* Hide month nav in header on mobile (day view) */
  .site-header__controls .month-nav {
    display: none;
  }
}

/* ============================================
   MOBILE MENU OVERLAY
   ============================================ */

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 85%;
  max-width: 320px;
  height: 100%;
  background: var(--panel);
  z-index: var(--z-modal);
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
}

.mobile-menu.is-open {
  transform: translateX(0);
}

.mobile-menu__backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: calc(var(--z-modal) - 1);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu__backdrop.is-visible {
  opacity: 1;
  visibility: visible;
}

.mobile-menu__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.mobile-menu__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.mobile-menu__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.mobile-menu__close:hover {
  background: var(--bg);
  color: var(--text);
}

.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  padding: 12px 0;
}

.mobile-menu__link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  color: var(--text);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: all var(--transition-fast);
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: left;
  width: 100%;
}

.mobile-menu__link:hover {
  background: var(--bg);
}

.mobile-menu__link svg {
  flex-shrink: 0;
  color: var(--muted);
}

.mobile-menu__link--active {
  background: rgba(var(--accent-rgb), 0.08);
  color: var(--accent);
}

.mobile-menu__link--active svg {
  color: var(--accent);
}

.mobile-menu__link--danger {
  color: #dc2626;
}

.mobile-menu__link--danger svg {
  color: #dc2626;
}

.mobile-menu__link--primary {
  color: var(--accent);
}

.mobile-menu__link--primary svg {
  color: var(--accent);
}

.mobile-menu__divider {
  height: 1px;
  background: var(--line);
  margin: 8px 20px;
}

.mobile-menu__user {
  padding: 16px 20px;
}

.mobile-menu__user-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-menu__user-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu__user-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mobile-menu__user-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.mobile-menu__user-role {
  font-size: 13px;
  color: var(--muted);
}

.mobile-menu__actions {
  display: flex;
  flex-direction: column;
  padding: 12px 0;
  margin-top: auto;
}

.mobile-menu__logout-form {
  margin: 0;
}

/* Dark mode toggle in mobile menu */
.mobile-menu__link .icon-sun {
  display: block;
}

.mobile-menu__link .icon-moon {
  display: none;
}

[data-theme="dark"] .mobile-menu__link .icon-sun {
  display: none;
}

[data-theme="dark"] .mobile-menu__link .icon-moon {
  display: block;
}
