/**
 * Niemeyer Theme (JPSA Brand)
 * Version: 3.0
 *
 * Based on the Niemeyer architectural design mockups.
 * Dark header, orange accent, warm content area.
 * Activated via USE_SWISS_EDITORIAL feature flag.
 * All styles scoped under .swiss-theme class.
 */

/* ============================================
   CSS VARIABLES (Niemeyer Palette)
   ============================================ */

:root {
  /* Niemeyer Orange Accent */
  --nm-orange: #E85D04;
  --nm-orange-dark: #D05103;
  --nm-orange-light: rgba(232, 93, 4, 0.1);
  --nm-orange-subtle: rgba(232, 93, 4, 0.06);

  /* JPSA Brand */
  --nm-blue: #00609C;
  --nm-blue-light: #E6F0F7;
  --nm-blue-dark: #004A7A;

  /* JPSA Tier Colors */
  --nm-tier-marquee: #D31245;
  --nm-tier-medium: #00609C;
  --nm-tier-small: #4C9C2E;
  --nm-tier-committee: #57534E;

  /* Warm Palette */
  --nm-warm-50: #FAF9F7;
  --nm-warm-100: #F5F3F0;
  --nm-warm-200: #E7E5E4;
  --nm-warm-300: #D6D3D1;
  --nm-warm-400: #A8A29E;
  --nm-warm-500: #78716C;
  --nm-warm-600: #57534E;
  --nm-warm-700: #44403C;
  --nm-warm-800: #292524;
  --nm-warm-900: #1C1917;

  /* Semantic */
  --nm-success: #059669;
  --nm-success-light: #D1FAE5;
  --nm-warning: #D97706;
  --nm-warning-light: #FEF3C7;
  --nm-error: #DC2626;
  --nm-error-light: #FEE2E2;

  /* Typography */
  --nm-font-display: 'DM Sans', -apple-system, sans-serif;
  --nm-font-body: 'Plus Jakarta Sans', -apple-system, sans-serif;

  /* Shadows */
  --nm-shadow-sm: 0 1px 2px rgba(28, 25, 23, 0.05);
  --nm-shadow-md: 0 4px 6px rgba(28, 25, 23, 0.07);
  --nm-shadow-lg: 0 10px 15px rgba(28, 25, 23, 0.1);
  --nm-shadow-xl: 0 20px 25px rgba(28, 25, 23, 0.15);

  /* Radius */
  --nm-radius-sm: 4px;
  --nm-radius-md: 6px;
  --nm-radius-lg: 8px;
  --nm-radius-xl: 12px;

  /* Transitions */
  --nm-transition: 0.2s ease;
}

/* ============================================
   BASE STYLES
   ============================================ */

.swiss-theme {
  font-family: var(--nm-font-body);
  background: var(--nm-warm-50);
  color: var(--nm-warm-800);
}

/* ============================================
   HEADER - Dark Charcoal
   ============================================ */

.swiss-theme .site-header {
  background: var(--nm-warm-900) !important;
  border-bottom: none !important;
  padding: 0 48px;
  height: 64px;
}

.swiss-theme .site-header .logo-text,
.swiss-theme .site-header [class*="logo"] {
  font-family: var(--nm-font-display);
  font-size: 16px;
  font-weight: 600;
  color: white !important;
  letter-spacing: 0.02em;
}

.swiss-theme .site-header .logo-text span,
.swiss-theme .site-header [class*="subtitle"] {
  font-weight: 400;
  opacity: 0.6;
}

/* Navigation Tabs */
.swiss-theme .nav-tab {
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--nm-warm-400) !important;
  background: transparent !important;
  border: none !important;
  border-radius: var(--nm-radius-md);
  transition: all var(--nm-transition);
}

.swiss-theme .nav-tab:hover {
  color: white !important;
  background: rgba(255, 255, 255, 0.08) !important;
}

.swiss-theme .nav-tab.active,
.swiss-theme .nav-tab[aria-selected="true"] {
  color: white !important;
  background: var(--nm-orange) !important;
}

/* Header Right - Date and Sign In */
.swiss-theme .site-header .header-date,
.swiss-theme .site-header [class*="date"] {
  font-size: 13px;
  color: var(--nm-warm-400);
}

.swiss-theme .site-header .btn-signin,
.swiss-theme .site-header button[class*="sign"],
.swiss-theme .site-header .ds-btn-primary {
  padding: 8px 16px;
  background: var(--nm-blue) !important;
  color: white !important;
  border: none !important;
  border-radius: var(--nm-radius-md);
  font-size: 13px;
  font-weight: 600;
  transition: background var(--nm-transition);
}

.swiss-theme .site-header .btn-signin:hover,
.swiss-theme .site-header button[class*="sign"]:hover,
.swiss-theme .site-header .ds-btn-primary:hover {
  background: var(--nm-blue-dark) !important;
}

/* BETA Badge in Header */
.swiss-theme .site-header [class*="beta"] {
  background: var(--nm-blue-light);
  color: var(--nm-blue);
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--nm-radius-sm);
}

/* ============================================
   MAIN CONTENT AREA
   ============================================ */

.swiss-theme main,
.swiss-theme [class*="content"],
.swiss-theme .tab-content {
  background: var(--nm-warm-50);
  color: var(--nm-warm-800);
}

/* ============================================
   DASHBOARD HERO SECTION (Niemeyer Skyline)
   ============================================ */

.swiss-theme .dash-hero,
.swiss-theme .dashboard-hero,
.swiss-theme #dashboard-hero {
  background: var(--nm-orange);
  padding: 32px 48px 48px;
  margin: -24px -24px 24px -24px;
  border-radius: 0 0 var(--nm-radius-xl) var(--nm-radius-xl);
  color: white;
  position: relative;
  overflow: hidden;
}

.swiss-theme .dash-hero::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(to top, rgba(0,0,0,0.1) 0%, transparent 100%);
  pointer-events: none;
}

.swiss-theme .dash-hero-title {
  font-family: var(--nm-font-display);
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 8px;
  color: white;
}

.swiss-theme .dash-hero-subtitle {
  font-size: 14px;
  opacity: 0.85;
  margin-bottom: 32px;
}

/* Architectural Building Stats (Skyline) */
.swiss-theme .dash-skyline,
.swiss-theme .building-stats {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-top: 16px;
}

.swiss-theme .building-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.swiss-theme .building-shape {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: white;
  transition: all var(--nm-transition);
}

/* Marquee - Tall tower */
.swiss-theme .building-shape.marquee {
  width: 48px;
  height: 120px;
  border-radius: 6px 6px 0 0;
}

/* Medium - Dome shape */
.swiss-theme .building-shape.medium {
  width: 64px;
  height: 80px;
  border-radius: 50% 50% 0 0;
}

/* Small - Square */
.swiss-theme .building-shape.small {
  width: 56px;
  height: 56px;
  border-radius: 4px 4px 0 0;
}

/* Committee - Horizontal bar */
.swiss-theme .building-shape.committee {
  width: 80px;
  height: 32px;
  border-radius: 4px;
}

.swiss-theme .building-stat .stat-number {
  font-family: var(--nm-font-display);
  font-size: 32px;
  font-weight: 700;
  color: var(--nm-orange);
  line-height: 1;
  padding-bottom: 8px;
}

.swiss-theme .building-stat .stat-label {
  font-size: 12px;
  font-weight: 500;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ============================================
   DASHBOARD SECTIONS
   ============================================ */

.swiss-theme .dash-section {
  background: white;
  border: 1px solid var(--nm-warm-200);
  border-radius: var(--nm-radius-lg);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--nm-shadow-sm);
}

.swiss-theme .dash-section-title,
.swiss-theme .section-title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--nm-warm-600);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--nm-warm-200);
}

/* ============================================
   ATTENTION BANNER - Orange Accent
   ============================================ */

.swiss-theme .dash-attention-banner,
.swiss-theme [class*="attention-banner"] {
  background: var(--nm-orange-subtle);
  border-left: 3px solid var(--nm-orange);
  border-radius: 0 var(--nm-radius-lg) var(--nm-radius-lg) 0;
  padding: 20px 24px;
  margin-bottom: 24px;
}

.swiss-theme .dash-attention-banner .attention-dot,
.swiss-theme [class*="attention"] .dot {
  width: 8px;
  height: 8px;
  background: var(--nm-orange);
  border-radius: 50%;
  animation: nm-pulse 2s infinite;
}

@keyframes nm-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.swiss-theme .dash-attention-banner .attention-title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--nm-warm-600);
}

.swiss-theme .attention-days,
.swiss-theme [class*="overdue"] {
  font-size: 12px;
  font-weight: 600;
  color: var(--nm-orange);
  background: var(--nm-orange-light);
  padding: 4px 8px;
  border-radius: var(--nm-radius-sm);
}

/* ============================================
   HEALTH STATUS CARDS (Events Page)
   ============================================ */

.swiss-theme .health-cards,
.swiss-theme .portfolio-health-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.swiss-theme .health-card,
.swiss-theme .portfolio-stat {
  background: white;
  border: 1px solid var(--nm-warm-200);
  border-radius: var(--nm-radius-lg);
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: all var(--nm-transition);
}

.swiss-theme .health-card:hover,
.swiss-theme .portfolio-stat:hover {
  border-color: var(--nm-warm-400);
  box-shadow: var(--nm-shadow-md);
  transform: translateY(-2px);
}

.swiss-theme .health-card.active,
.swiss-theme .portfolio-stat.active {
  border-color: var(--nm-blue);
  box-shadow: 0 0 0 3px var(--nm-blue-light);
}

.swiss-theme .health-card .card-value,
.swiss-theme .portfolio-stat .stat-number {
  font-family: var(--nm-font-display);
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 4px;
}

.swiss-theme .health-card .card-label,
.swiss-theme .portfolio-stat .stat-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--nm-warm-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Health card color variants */
.swiss-theme .health-card.total .card-value { color: var(--nm-warm-800); }
.swiss-theme .health-card.ontrack .card-value { color: var(--nm-success); }
.swiss-theme .health-card.atrisk .card-value { color: var(--nm-warning); }
.swiss-theme .health-card.critical .card-value { color: var(--nm-error); }

/* ============================================
   STAT CARDS
   ============================================ */

.swiss-theme .dash-stat-card,
.swiss-theme .stat-card {
  background: white;
  border: 1px solid var(--nm-warm-200);
  border-radius: var(--nm-radius-lg);
  padding: 16px;
  text-align: center;
  transition: all var(--nm-transition);
}

.swiss-theme .dash-stat-card:hover,
.swiss-theme .stat-card:hover {
  border-color: var(--nm-orange);
  box-shadow: 0 2px 8px rgba(232, 93, 4, 0.12);
}

.swiss-theme .dash-stat-card .stat-number,
.swiss-theme .stat-card .number {
  font-family: var(--nm-font-display);
  font-size: 28px;
  font-weight: 300;
  color: var(--nm-warm-800);
}

.swiss-theme .dash-stat-card .stat-label,
.swiss-theme .stat-card .label {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--nm-warm-500);
  margin-top: 4px;
}

/* ============================================
   EVENT ROWS & TABLE WITH TIER SHAPES
   ============================================ */

.swiss-theme .events-table,
.swiss-theme table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.swiss-theme .events-table th,
.swiss-theme table th {
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--nm-warm-500);
  font-weight: 600;
  padding: 12px 16px;
  border-bottom: 2px solid var(--nm-warm-200);
  background: var(--nm-warm-50);
}

.swiss-theme .events-table td,
.swiss-theme table td {
  padding: 16px;
  border-bottom: 1px solid var(--nm-warm-100);
  vertical-align: middle;
}

.swiss-theme .dash-event-row,
.swiss-theme .event-row,
.swiss-theme tr {
  transition: all var(--nm-transition);
  border-radius: var(--nm-radius-md);
}

.swiss-theme .dash-event-row:hover,
.swiss-theme .event-row:hover,
.swiss-theme tbody tr:hover {
  background: rgba(232, 93, 4, 0.02);
}

/* Zebra striping */
.swiss-theme tbody tr:nth-child(even) {
  background: var(--nm-warm-100);
}

.swiss-theme tbody tr:nth-child(even):hover {
  background: rgba(232, 93, 4, 0.05);
}

/* Tier Shape Indicators (architectural shapes in table) */
.swiss-theme .tier-shape {
  display: inline-block;
  vertical-align: middle;
  margin-right: 8px;
}

.swiss-theme .tier-shape.marquee {
  width: 10px;
  height: 32px;
  background: var(--nm-tier-marquee);
  border-radius: 2px 2px 0 0;
}

.swiss-theme .tier-shape.medium {
  width: 16px;
  height: 20px;
  background: var(--nm-tier-medium);
  border-radius: 50% 50% 0 0;
}

.swiss-theme .tier-shape.small {
  width: 14px;
  height: 14px;
  background: var(--nm-tier-small);
  border-radius: 2px 2px 0 0;
}

.swiss-theme .tier-shape.committee {
  width: 20px;
  height: 8px;
  background: var(--nm-tier-committee);
  border-radius: 2px;
}

.swiss-theme .event-name,
.swiss-theme .dash-event-name {
  font-weight: 600;
  color: var(--nm-warm-800);
}

.swiss-theme .event-date,
.swiss-theme .dash-event-date {
  font-size: 13px;
  color: var(--nm-warm-500);
}

.swiss-theme .event-staff {
  font-size: 13px;
  color: var(--nm-warm-600);
}

/* ============================================
   TIER BADGES - Pill Style
   ============================================ */

.swiss-theme .tier-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.swiss-theme .tier-badge[data-tier="Marquee"],
.swiss-theme .tier-badge.marquee {
  background: var(--nm-tier-marquee);
  color: white;
}

.swiss-theme .tier-badge[data-tier="Medium"],
.swiss-theme .tier-badge.medium {
  background: var(--nm-tier-medium);
  color: white;
}

.swiss-theme .tier-badge[data-tier="Small"],
.swiss-theme .tier-badge.small {
  background: var(--nm-tier-small);
  color: white;
}

.swiss-theme .tier-badge[data-tier="Committee"],
.swiss-theme .tier-badge.committee {
  background: var(--nm-tier-committee);
  color: white;
}

/* ============================================
   PROGRESS BARS
   ============================================ */

.swiss-theme .progress-bar,
.swiss-theme [class*="progress-track"] {
  height: 6px;
  background: var(--nm-warm-200);
  border-radius: 3px;
  overflow: hidden;
}

.swiss-theme .progress-fill,
.swiss-theme [class*="progress-bar"]:not(.progress-bar) {
  height: 100%;
  background: var(--nm-warm-600);
  border-radius: 3px;
  transition: width 0.5s ease;
}

.swiss-theme .progress-fill.success,
.swiss-theme [class*="success"] .progress-fill {
  background: var(--nm-success);
}

.swiss-theme .progress-fill.warning,
.swiss-theme [class*="warning"] .progress-fill {
  background: var(--nm-warning);
}

.swiss-theme .progress-fill.danger,
.swiss-theme .progress-fill.error,
.swiss-theme [class*="error"] .progress-fill,
.swiss-theme [class*="danger"] .progress-fill {
  background: var(--nm-error);
}

/* ============================================
   BUTTONS
   ============================================ */

.swiss-theme .ds-btn,
.swiss-theme button {
  font-family: var(--nm-font-body);
  border-radius: var(--nm-radius-md);
  transition: all var(--nm-transition);
}

.swiss-theme .ds-btn-primary,
.swiss-theme button[class*="primary"] {
  background: var(--nm-blue) !important;
  color: white !important;
  border: none !important;
}

.swiss-theme .ds-btn-primary:hover,
.swiss-theme button[class*="primary"]:hover {
  background: var(--nm-blue-dark) !important;
}

.swiss-theme .ds-btn-secondary,
.swiss-theme button[class*="secondary"] {
  background: white !important;
  color: var(--nm-warm-800) !important;
  border: 1px solid var(--nm-warm-200) !important;
}

.swiss-theme .ds-btn-secondary:hover,
.swiss-theme button[class*="secondary"]:hover {
  border-color: var(--nm-orange) !important;
  box-shadow: 0 2px 8px rgba(232, 93, 4, 0.12);
}

/* Orange Action Button */
.swiss-theme .ds-btn-orange,
.swiss-theme button[class*="action"] {
  background: var(--nm-orange) !important;
  color: white !important;
  border: none !important;
}

.swiss-theme .ds-btn-orange:hover,
.swiss-theme button[class*="action"]:hover {
  background: var(--nm-orange-dark) !important;
}

/* ============================================
   MODALS
   ============================================ */

.swiss-theme .ds-modal,
.swiss-theme [class*="modal-content"] {
  background: var(--nm-warm-50);
  border-radius: var(--nm-radius-lg);
  box-shadow: var(--nm-shadow-xl);
}

.swiss-theme .ds-modal-header {
  border-bottom: 1px solid var(--nm-warm-200);
  padding: 20px 24px;
}

.swiss-theme .ds-modal-title {
  font-family: var(--nm-font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--nm-warm-800);
}

.swiss-theme .ds-modal-body {
  padding: 24px;
  background: white;
}

.swiss-theme .ds-modal-footer {
  border-top: 1px solid var(--nm-warm-200);
  padding: 16px 24px;
  background: var(--nm-warm-50);
}

/* ============================================
   QUICK POPUP
   ============================================ */

.swiss-theme #event-quick-popup,
.swiss-theme .quick-popup {
  background: white;
  border: 1px solid var(--nm-warm-200);
  border-radius: var(--nm-radius-lg);
  box-shadow: var(--nm-shadow-xl);
}

.swiss-theme .dash-popup-task {
  padding: 12px 0;
  border-bottom: 1px solid var(--nm-warm-100);
  cursor: pointer;
  transition: all var(--nm-transition);
}

.swiss-theme .dash-popup-task:hover {
  padding-left: 8px;
  background: rgba(232, 93, 4, 0.03);
  margin: 0 -8px;
  padding-right: 8px;
  border-radius: var(--nm-radius-sm);
}

/* ============================================
   REPORTS SIDEBAR
   ============================================ */

.swiss-theme .report-btn,
.swiss-theme [class*="report-card"] {
  display: block;
  width: 100%;
  padding: 14px 16px;
  background: white;
  border: 1px solid var(--nm-warm-200);
  border-radius: var(--nm-radius-lg);
  cursor: pointer;
  margin-bottom: 8px;
  text-align: left;
  transition: all var(--nm-transition);
}

.swiss-theme .report-btn:hover,
.swiss-theme [class*="report-card"]:hover {
  border-color: var(--nm-orange);
  box-shadow: 0 2px 8px rgba(232, 93, 4, 0.12);
}

.swiss-theme .report-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--nm-warm-800);
  margin-bottom: 2px;
}

.swiss-theme .report-desc {
  font-size: 12px;
  color: var(--nm-warm-500);
}

/* BETA Badge */
.swiss-theme .beta-badge,
.swiss-theme [class*="beta"] {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  color: var(--nm-blue);
  background: var(--nm-blue-light);
  padding: 2px 6px;
  border-radius: var(--nm-radius-sm);
}

.swiss-theme .beta-note {
  margin-top: 16px;
  font-size: 11px;
  color: var(--nm-warm-500);
  padding: 12px;
  background: var(--nm-warm-100);
  border-radius: var(--nm-radius-md);
  line-height: 1.5;
}

/* ============================================
   FORM INPUTS
   ============================================ */

.swiss-theme input,
.swiss-theme select,
.swiss-theme textarea {
  font-family: var(--nm-font-body);
  border: 1px solid var(--nm-warm-300);
  border-radius: var(--nm-radius-md);
  background: white;
  color: var(--nm-warm-800);
  transition: all var(--nm-transition);
  padding: 10px 12px;
}

.swiss-theme input:focus,
.swiss-theme select:focus,
.swiss-theme textarea:focus {
  outline: none;
  border-color: var(--nm-blue);
  box-shadow: 0 0 0 3px var(--nm-blue-light);
}

.swiss-theme label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--nm-warm-700);
  margin-bottom: 6px;
}

/* ============================================
   CALENDAR - Orange Header
   ============================================ */

.swiss-theme .calendar-header,
.swiss-theme #calendar-header {
  background: var(--nm-orange);
  color: white;
  padding: 24px 32px;
  border-radius: var(--nm-radius-lg) var(--nm-radius-lg) 0 0;
}

.swiss-theme .calendar-header .calendar-title {
  font-family: var(--nm-font-display);
  font-size: 28px;
  font-weight: 600;
  color: white;
}

.swiss-theme .calendar-header .calendar-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.swiss-theme .calendar-header .nav-btn {
  background: rgba(255,255,255,0.2);
  border: none;
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  transition: all var(--nm-transition);
}

.swiss-theme .calendar-header .nav-btn:hover {
  background: rgba(255,255,255,0.3);
}

/* Tier Filter Pills */
.swiss-theme .tier-filters,
.swiss-theme .calendar-filters {
  display: flex;
  gap: 8px;
  padding: 16px 0;
}

.swiss-theme .tier-filter,
.swiss-theme .calendar-filter-btn {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--nm-warm-200);
  background: white;
  color: var(--nm-warm-700);
  cursor: pointer;
  transition: all var(--nm-transition);
}

.swiss-theme .tier-filter:hover,
.swiss-theme .calendar-filter-btn:hover {
  border-color: var(--nm-orange);
  color: var(--nm-orange);
}

.swiss-theme .tier-filter.active,
.swiss-theme .calendar-filter-btn.active {
  background: var(--nm-orange);
  border-color: var(--nm-orange);
  color: white;
}

/* Calendar Grid */
.swiss-theme .calendar-grid {
  background: white;
  border: 1px solid var(--nm-warm-200);
  border-top: none;
  border-radius: 0 0 var(--nm-radius-lg) var(--nm-radius-lg);
}

.swiss-theme .calendar-day {
  border: 1px solid var(--nm-warm-100);
  min-height: 100px;
  padding: 8px;
  transition: all var(--nm-transition);
}

.swiss-theme .calendar-day:hover {
  background: rgba(232, 93, 4, 0.03);
}

.swiss-theme .calendar-day.today {
  background: var(--nm-orange-light);
}

.swiss-theme .calendar-day.today .day-number {
  background: var(--nm-orange);
  color: white;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.swiss-theme .calendar-day.weekend {
  background: var(--nm-warm-100);
}

.swiss-theme .calendar-day.weekend .day-number {
  color: var(--nm-error);
}

.swiss-theme .calendar-day.past {
  opacity: 0.5;
}

/* Calendar Event Dots */
.swiss-theme .calendar-event-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 4px;
}

.swiss-theme .calendar-event-dot.marquee { background: var(--nm-tier-marquee); }
.swiss-theme .calendar-event-dot.medium { background: var(--nm-tier-medium); }
.swiss-theme .calendar-event-dot.small { background: var(--nm-tier-small); }
.swiss-theme .calendar-event-dot.committee { background: var(--nm-tier-committee); }

/* ============================================
   SETTINGS PAGE - Sidebar Navigation
   ============================================ */

.swiss-theme .settings-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
}

.swiss-theme .settings-sidebar,
.swiss-theme .settings-nav {
  background: white;
  border: 1px solid var(--nm-warm-200);
  border-radius: var(--nm-radius-lg);
  padding: 8px;
}

.swiss-theme .settings-nav-item,
.swiss-theme .settings-tab {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: var(--nm-warm-600);
  border-radius: var(--nm-radius-md);
  transition: all var(--nm-transition);
  cursor: pointer;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
  font-size: 14px;
}

.swiss-theme .settings-nav-item:hover,
.swiss-theme .settings-tab:hover {
  background: var(--nm-warm-100);
  color: var(--nm-warm-800);
}

.swiss-theme .settings-nav-item.active,
.swiss-theme .settings-tab.active {
  background: white;
  color: var(--nm-blue);
  border-left: 3px solid var(--nm-blue);
  margin-left: -8px;
  padding-left: 21px;
  font-weight: 600;
}

.swiss-theme .settings-panel,
.swiss-theme .settings-content {
  background: white;
  border: 1px solid var(--nm-warm-200);
  border-radius: var(--nm-radius-lg);
  padding: 32px;
}

.swiss-theme .settings-section {
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--nm-warm-200);
}

.swiss-theme .settings-section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.swiss-theme .settings-section-title {
  font-family: var(--nm-font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--nm-warm-800);
  margin-bottom: 16px;
}

/* Toggle Switches */
.swiss-theme .toggle-switch {
  position: relative;
  width: 48px;
  height: 24px;
  background: var(--nm-warm-300);
  border-radius: 12px;
  cursor: pointer;
  transition: all var(--nm-transition);
}

.swiss-theme .toggle-switch.active {
  background: var(--nm-blue);
}

.swiss-theme .toggle-switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  transition: all var(--nm-transition);
  box-shadow: var(--nm-shadow-sm);
}

.swiss-theme .toggle-switch.active::after {
  left: 26px;
}

/* Danger Zone */
.swiss-theme .danger-zone {
  background: var(--nm-error-light);
  border: 1px solid var(--nm-error);
  border-radius: var(--nm-radius-lg);
  padding: 24px;
  margin-top: 32px;
}

.swiss-theme .danger-zone-title {
  color: var(--nm-error);
  font-weight: 600;
  margin-bottom: 12px;
}

/* ============================================
   LOGIN OVERLAY
   ============================================ */

.swiss-theme #login-overlay,
.swiss-theme .login-overlay {
  background: linear-gradient(135deg, var(--nm-warm-900) 0%, var(--nm-warm-800) 100%);
}

.swiss-theme #login-overlay > div,
.swiss-theme .login-card {
  background: white;
  border-radius: var(--nm-radius-lg);
  box-shadow: var(--nm-shadow-xl);
  padding: 48px;
  text-align: center;
}

.swiss-theme #login-overlay h2,
.swiss-theme .login-card h2 {
  font-family: var(--nm-font-display);
  font-size: 24px;
  font-weight: 600;
  color: var(--nm-warm-800);
  margin-bottom: 8px;
}

.swiss-theme #login-overlay p,
.swiss-theme .login-card p {
  color: var(--nm-warm-500);
  margin-bottom: 24px;
}

.swiss-theme #login-overlay .ds-btn-primary,
.swiss-theme .login-card button {
  background: var(--nm-blue) !important;
  color: white !important;
  padding: 12px 32px;
  font-size: 14px;
  font-weight: 600;
}

/* ============================================
   LINKS
   ============================================ */

.swiss-theme a {
  color: var(--nm-blue);
  text-decoration: none;
  transition: color var(--nm-transition);
}

.swiss-theme a:hover {
  text-decoration: underline;
}

/* ============================================
   STATUS BADGES
   ============================================ */

.swiss-theme .status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
}

.swiss-theme .status-badge.ready,
.swiss-theme .status-badge.success {
  background: var(--nm-success-light);
  color: var(--nm-success);
}

.swiss-theme .status-badge.watch,
.swiss-theme .status-badge.warning {
  background: var(--nm-warning-light);
  color: var(--nm-warning);
}

.swiss-theme .status-badge.review,
.swiss-theme .status-badge.error {
  background: var(--nm-error-light);
  color: var(--nm-error);
}

/* ============================================
   SCROLLBAR
   ============================================ */

.swiss-theme ::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.swiss-theme ::-webkit-scrollbar-track {
  background: var(--nm-warm-100);
  border-radius: var(--nm-radius-sm);
}

.swiss-theme ::-webkit-scrollbar-thumb {
  background: var(--nm-warm-400);
  border-radius: var(--nm-radius-sm);
}

.swiss-theme ::-webkit-scrollbar-thumb:hover {
  background: var(--nm-warm-500);
}

/* ============================================
   SELECTION
   ============================================ */

.swiss-theme ::selection {
  background: var(--nm-orange-light);
  color: var(--nm-warm-900);
}

/* ============================================
   TASK CHECKBOXES
   ============================================ */

.swiss-theme input[type="checkbox"] {
  width: 18px;
  height: 18px;
  border: 2px solid var(--nm-warm-300);
  border-radius: var(--nm-radius-sm);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background: white;
  transition: all var(--nm-transition);
}

.swiss-theme input[type="checkbox"]:checked {
  background: var(--nm-success);
  border-color: var(--nm-success);
}

.swiss-theme input[type="checkbox"]:checked::after {
  content: '✓';
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 12px;
  font-weight: bold;
}

.swiss-theme input[type="checkbox"]:hover {
  border-color: var(--nm-blue);
}

/* ============================================
   REDUCED MOTION
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  .swiss-theme *,
  .swiss-theme *::before,
  .swiss-theme *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================
   FOOTER
   ============================================ */

.swiss-theme .footer,
.swiss-theme footer {
  border-top: 1px solid var(--nm-warm-200);
  padding-top: 24px;
  margin-top: 48px;
  font-size: 12px;
  color: var(--nm-warm-500);
  text-align: center;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */

@media (max-width: 1024px) {
  .swiss-theme .settings-layout {
    grid-template-columns: 1fr;
  }

  .swiss-theme .settings-sidebar {
    display: flex;
    overflow-x: auto;
    padding: 8px 16px;
  }

  .swiss-theme .settings-nav-item {
    white-space: nowrap;
  }

  .swiss-theme .health-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .swiss-theme .site-header {
    padding: 0 16px;
  }

  .swiss-theme .dash-hero {
    padding: 24px;
    margin: -16px -16px 16px -16px;
  }

  .swiss-theme .dash-skyline {
    flex-wrap: wrap;
    justify-content: center;
  }

  .swiss-theme .calendar-header {
    padding: 16px;
  }

  .swiss-theme .health-cards {
    grid-template-columns: 1fr;
  }
}
