/* ==========================================================================
   GrasmanNL — Start van de Dag Dashboard
   Glassmorphism Responsive Design System
   ========================================================================== */

:root {
  /* Surface & Background Base */
  --bg-dark-base: #0a0e17;
  --bg-dark-surface: #111827;
  --bg-dark-elevated: #1f2937;

  /* Glassmorphism Surface Tokens */
  --glass-surface: rgba(17, 24, 39, 0.70);
  --glass-surface-hover: rgba(30, 41, 59, 0.80);
  --glass-surface-active: rgba(30, 41, 59, 0.90);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-hover: rgba(255, 255, 255, 0.18);
  --glass-blur: blur(16px);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.45);
  --glass-shadow-hover: 0 12px 40px 0 rgba(0, 0, 0, 0.6);

  /* Inner Card Glass */
  --inner-glass: rgba(15, 23, 42, 0.65);
  --inner-glass-hover: rgba(30, 41, 59, 0.65);
  --inner-glass-border: rgba(255, 255, 255, 0.06);

  /* Typography Colors (WCAG AA Compliant >= 4.5:1) */
  --text-primary: #f3f4f6;       /* Crisp slate white */
  --text-secondary: #9ca3af;     /* Muted metadata slate */
  --text-tertiary: #6b7280;      /* Micro captions & timestamps */

  /* High-Contrast Accents */
  --accent-amber: #f59e0b;       /* Morning sun & warm greeting */
  --accent-amber-glow: rgba(245, 158, 11, 0.20);
  --accent-cyan: #06b6d4;        /* Weather & water */
  --accent-cyan-glow: rgba(6, 182, 212, 0.20);
  --accent-emerald: #10b981;     /* Commute on-time & health OK */
  --accent-emerald-glow: rgba(16, 185, 129, 0.20);
  --accent-rose: #ef4444;        /* Commute delay & warnings */
  --accent-rose-glow: rgba(239, 68, 68, 0.20);
  --accent-indigo: #6366f1;      /* Launcher & links */
  --accent-indigo-glow: rgba(99, 102, 241, 0.20);
  --accent-sky: #38bdf8;
  --accent-pink: #f472b6;

  /* Layout, Radii & Transitions */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  color: var(--text-primary);
  background-color: var(--bg-dark-base);
  min-height: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  background-color: var(--bg-dark-base);
  position: relative;
  overflow-x: hidden;
  padding: 16px;
  display: flex;
  flex-direction: column;
}

/* Ambient Background Glow Meshes */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(100px);
  opacity: 0.35;
}

.glow-top-left {
  top: -150px;
  left: -150px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.35) 0%, transparent 70%);
}

.glow-bottom-right {
  bottom: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.25) 0%, transparent 70%);
}

/* Main Dashboard Wrapper */
.dashboard-container {
  position: relative;
  z-index: 1;
  max-width: 1600px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Glassmorphism Panel / Card Utility */
.glass-card {
  background: var(--glass-surface);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  box-shadow: var(--glass-shadow);
  transition: transform var(--transition-normal),
              border-color var(--transition-normal),
              box-shadow var(--transition-normal);
}

.glass-card:hover {
  border-color: var(--glass-border-hover);
}

/* ==========================================================================
   Header Bar
   ========================================================================== */
.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  gap: 20px;
  flex-wrap: wrap;
}

.header-left {
  display: flex;
  align-items: center;
  flex: 1 1 320px;
}

.greeting-container {
  display: flex;
  align-items: center;
  gap: 16px;
}

.greeting-icon {
  font-size: 2.4rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 0 12px var(--accent-amber-glow));
  animation: pulse-subtle 4s ease-in-out infinite;
}

.greeting-title {
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
  line-height: 1.2;
}

.greeting-subline {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 3px;
  line-height: 1.3;
}

/* Clock & Date (Center) */
.header-center {
  display: flex;
  justify-content: center;
  flex: 1 1 240px;
}

.datetime-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6px 18px;
  background: var(--inner-glass);
  border: 1px solid var(--inner-glass-border);
  border-radius: var(--radius-md);
}

.clock-display {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #ffffff;
  display: flex;
  align-items: baseline;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.clock-seconds {
  font-size: 1.15rem;
  color: var(--accent-cyan);
  opacity: 0.9;
}

.date-display {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: capitalize;
  margin-top: 2px;
}

/* Header Right: Actions */
.header-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex: 0 0 auto;
}

.header-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  min-height: 40px;
}

.header-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--glass-border-hover);
  transform: translateY(-1px);
}

.header-btn:active {
  transform: translateY(0);
}

.header-btn:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 2px;
}

.header-btn.spinning .btn-icon {
  animation: spin 800ms linear infinite;
}

/* ==========================================================================
   Main Grid Layout (3-Col Desktop, 2-Col Tablet, 1-Col Mobile)
   ========================================================================== */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1.15fr 1.15fr 1.05fr;
  gap: 20px;
  align-items: start;
}

.grid-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

/* Widget Card Generic Styles */
.widget-card {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.widget-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--inner-glass-border);
  padding-bottom: 12px;
}

.widget-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.widget-icon {
  font-size: 1.4rem;
  line-height: 1;
}

.widget-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.widget-subtitle {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-top: 1px;
}

.widget-badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  border: 1px solid var(--glass-border);
}

/* ==========================================================================
   Widget 1: Weerbericht (3 Locaties)
   ========================================================================== */
.weather-cards-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.weather-location-card {
  background: var(--inner-glass);
  border: 1px solid var(--inner-glass-border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  transition: all var(--transition-fast);
}

.weather-location-card:hover {
  background: var(--inner-glass-hover);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.weather-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.location-label-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.location-badge {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  width: fit-content;
}

.home-badge {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.work-badge {
  background: rgba(56, 189, 248, 0.15);
  color: var(--accent-sky);
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.flex-badge {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-amber);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.location-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
}

.weather-temp-badge {
  display: flex;
  align-items: center;
  gap: 8px;
}

.temp-val {
  font-size: 1.7rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.weather-icon-inline {
  font-size: 1.8rem;
  line-height: 1;
}

.weather-condition {
  font-size: 0.85rem;
  color: var(--accent-cyan);
  font-weight: 500;
}

.weather-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.metric-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.metric-label {
  font-size: 0.68rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.metric-val {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* 3rd Location Search Box */
.weather-search-box {
  position: relative;
  margin-top: 2px;
  margin-bottom: 2px;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 10px;
  color: var(--text-tertiary);
  pointer-events: none;
}

.weather-search-input {
  width: 100%;
  padding: 8px 30px 8px 30px;
  background: rgba(10, 14, 23, 0.65);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.82rem;
  transition: all var(--transition-fast);
}

.weather-search-input:focus {
  outline: none;
  border-color: var(--accent-amber);
  background: rgba(10, 14, 23, 0.9);
  box-shadow: 0 0 0 2px var(--accent-amber-glow);
}

.search-clear-btn {
  position: absolute;
  right: 8px;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.1rem;
  cursor: pointer;
  line-height: 1;
}

.weather-search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 4px;
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7);
  z-index: 50;
  max-height: 200px;
  overflow-y: auto;
}

.search-result-item {
  padding: 8px 12px;
  font-size: 0.82rem;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.search-result-item:hover, .search-result-item:focus {
  background: rgba(245, 158, 11, 0.15);
  color: #ffffff;
  outline: none;
}

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

.search-result-country {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* 14-Daagse Horizontale Weersverwachting Mini-Strip */
.weather-forecast-strip {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  overflow-y: hidden;
  min-width: 0;
  max-width: 100%;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  padding: 8px 2px 4px 2px;
  margin-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pan-y;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}

.weather-forecast-strip:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 2px;
}

.weather-forecast-strip::-webkit-scrollbar {
  height: 4px;
}

.weather-forecast-strip::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-full);
}

.weather-forecast-strip::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-full);
}

.weather-forecast-strip::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.28);
}

.forecast-day-card {
  flex: 0 0 56px;
  width: 56px;
  min-width: 56px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 6px 3px;
  background: rgba(10, 14, 23, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  user-select: none;
}

.forecast-day-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

.forecast-day-card.is-today {
  border-color: rgba(6, 182, 212, 0.35);
  background: rgba(6, 182, 212, 0.08);
}

.forecast-day-name {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: capitalize;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.forecast-day-card.is-today .forecast-day-name {
  color: var(--accent-cyan);
}

.forecast-day-icon {
  font-size: 1.15rem;
  line-height: 1.1;
  margin: 1px 0;
}

.forecast-day-temp {
  font-size: 0.70rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.forecast-day-rain {
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--accent-cyan);
  white-space: nowrap;
  min-height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.forecast-day-rain.is-empty {
  visibility: hidden;
}

/* ==========================================================================
   Widget 2: Lokale Dagnotities (100% localStorage, zero network)
   ========================================================================== */
.notes-widget {
  gap: 12px;
}

.notes-status-badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
  transition: all var(--transition-fast);
}

.notes-status-badge.saved-pulse {
  background: var(--accent-emerald);
  color: #000000;
}

.notes-textarea {
  width: 100%;
  background: var(--inner-glass);
  border: 1px solid var(--inner-glass-border);
  border-radius: var(--radius-sm);
  padding: 12px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.9rem;
  line-height: 1.5;
  resize: vertical;
  min-height: 120px;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.notes-textarea:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 2px var(--accent-cyan-glow);
}

.notes-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.notes-privacy-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--accent-emerald);
}

.privacy-icon {
  flex-shrink: 0;
}

.notes-actions {
  display: flex;
  gap: 8px;
}

.notes-btn {
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  transition: all var(--transition-fast);
  min-height: 34px;
}

.notes-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--glass-border-hover);
}

.notes-btn:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 2px;
}

.notes-btn.btn-danger:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.4);
  color: var(--accent-rose);
}

/* ==========================================================================
   Widget 3: Forenzen & Reisinformatie (A1 & NS)
   ========================================================================== */
.traffic-widget {
  gap: 16px;
}

.traffic-content {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.traffic-subcard {
  background: var(--inner-glass);
  border: 1px solid var(--inner-glass-border);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all var(--transition-fast);
}

.traffic-subcard:hover {
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.traffic-subcard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.route-badge-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.route-shield {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.78rem;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.05em;
}

.highway-shield {
  background: #dc2626;
  color: #ffffff;
  border: 1px solid #b91c1c;
}

.train-shield {
  background: #0284c7;
  color: #ffffff;
  border: 1px solid #0369a1;
}

.route-info {
  display: flex;
  flex-direction: column;
}

.route-title {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
}

.route-segment {
  font-size: 0.74rem;
  color: var(--text-secondary);
}

/* Status Pills */
.status-pill {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.status-indicator-badge {
  font-size: 0.74rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.status-smooth, .status-ok {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.status-delayed, .status-disrupted {
  background: rgba(239, 68, 68, 0.15);
  color: var(--accent-rose);
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.status-roadworks, .status-maintenance, .status-warning {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-amber);
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.traffic-telemetry {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.delay-highlight {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.delay-val {
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
}

.delay-val.has-delay {
  color: var(--accent-rose);
}

.delay-unit {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.incidents-list, .rail-disruptions-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.incident-item {
  background: rgba(10, 14, 23, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-left: 3px solid var(--accent-amber);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.incident-item.incident-danger {
  border-left-color: var(--accent-rose);
}

.incident-item-empty {
  font-size: 0.82rem;
  color: var(--accent-emerald);
  padding: 4px 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.incident-title {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-primary);
}

.incident-desc {
  font-size: 0.76rem;
  color: var(--text-secondary);
}

/* NS Station Trail */
.rail-stations-trail {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  padding: 6px 0;
  scrollbar-width: none;
}

.rail-stations-trail::-webkit-scrollbar {
  display: none;
}

.station-node {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
}

.station-arrow {
  font-size: 0.74rem;
  color: var(--text-tertiary);
}

/* ==========================================================================
   Widget 4: Quick App Launcher
   ========================================================================== */
.launcher-widget {
  gap: 16px;
}

.launcher-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.launcher-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: var(--inner-glass);
  border: 1px solid var(--inner-glass-border);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: inherit;
  position: relative;
  transition: all var(--transition-normal);
}

.launcher-card:hover {
  background: var(--inner-glass-hover);
  border-color: var(--glass-border-hover);
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 10px 24px -5px rgba(0, 0, 0, 0.5);
}

.launcher-card:focus-visible {
  outline: 2px solid var(--accent-indigo);
  outline-offset: 2px;
}

.launcher-card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.launcher-card:hover .launcher-card-icon {
  transform: scale(1.08);
}

.notities-color {
  background: rgba(56, 189, 248, 0.15);
  color: var(--accent-sky);
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.tracker-color {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.kunst-color {
  background: rgba(244, 114, 182, 0.15);
  color: var(--accent-pink);
  border: 1px solid rgba(244, 114, 182, 0.3);
}

.jasmijn-color {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-amber);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.launcher-card-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.launcher-card-header-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.launcher-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.launcher-badge {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 1px 5px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  border: 1px solid var(--glass-border);
}

.launcher-desc {
  font-size: 0.74rem;
  color: var(--text-secondary);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.launcher-url {
  font-size: 0.70rem;
  color: var(--text-tertiary);
  font-family: ui-monospace, monospace;
}

.launcher-external-icon {
  color: var(--text-tertiary);
  flex-shrink: 0;
  opacity: 0.6;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.launcher-card:hover .launcher-external-icon {
  opacity: 1;
  transform: translate(2px, -2px);
  color: #ffffff;
}

/* ==========================================================================
   Widget 5: Actueel Nieuwsoverzicht
   ========================================================================== */
.news-widget {
  max-height: calc(100vh - 120px);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.news-filters-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.news-filters-bar::-webkit-scrollbar {
  display: none;
}

.news-filter-btn {
  padding: 6px 12px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
  min-height: 32px;
}

.news-filter-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
}

.news-filter-btn.active {
  background: var(--accent-indigo);
  border-color: var(--accent-indigo);
  color: #ffffff;
  box-shadow: 0 0 12px var(--accent-indigo-glow);
}

.news-filter-btn:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 2px;
}

.news-articles-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  padding-right: 4px;
  flex: 1;
  min-height: 400px;
}

/* Custom Scrollbar for News */
.news-articles-list::-webkit-scrollbar {
  width: 6px;
}

.news-articles-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 3px;
}

.news-articles-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
}

.news-articles-list::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}

.news-article-card {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: var(--inner-glass);
  border: 1px solid var(--inner-glass-border);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: inherit;
  transition: all var(--transition-fast);
}

.news-article-card:hover {
  background: var(--inner-glass-hover);
  border-color: var(--glass-border-hover);
  transform: translateY(-2px);
}

.news-article-card:focus-visible {
  outline: 2px solid var(--accent-indigo);
  outline-offset: 2px;
}

.article-thumb-container {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: #1e293b;
  display: flex;
  align-items: center;
  justify-content: center;
}

.article-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-fast);
}

.news-article-card:hover .article-thumb {
  transform: scale(1.05);
}

.article-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.article-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
}

.source-badge {
  font-weight: 700;
  padding: 1px 6px;
  border-radius: var(--radius-sm);
}

.source-nos {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.source-nu {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.source-rtv {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.article-time {
  color: var(--text-tertiary);
}

.article-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-desc {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Skeleton Loading Animation */
.news-skeleton-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: var(--inner-glass);
  border-radius: var(--radius-md);
}

.skeleton-thumb {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  animation: shimmer 1.5s infinite;
}

.skeleton-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.skeleton-line {
  height: 12px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  animation: shimmer 1.5s infinite;
}

.line-short { width: 35%; }
.line-title { width: 90%; height: 16px; }
.line-desc { width: 75%; }

/* ==========================================================================
   Footer
   ========================================================================== */
.dashboard-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  font-size: 0.78rem;
  color: var(--text-secondary);
  flex-wrap: wrap;
  gap: 10px;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-brand {
  font-weight: 700;
  color: #ffffff;
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-badge {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  color: var(--text-tertiary);
  font-size: 0.72rem;
}

/* ==========================================================================
   Animations & Keyframes
   ========================================================================== */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes shimmer {
  0% { opacity: 0.3; }
  50% { opacity: 0.7; }
  100% { opacity: 0.3; }
}

@keyframes pulse-subtle {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

.hidden {
  display: none !important;
}

/* ==========================================================================
   Responsive Breakpoints
   Desktop: >= 1024px (3 cols)
   Tablet:  768px - 1023px (2 cols)
   Mobile:  < 768px (1 col fluid)
   ========================================================================== */

/* Tablet (768px - 1023px) */
@media (max-width: 1023px) {
  .dashboard-grid {
    grid-template-columns: 1fr 1fr;
  }

  .col-news {
    grid-column: span 2;
  }

  .news-widget {
    max-height: 500px;
  }
}

/* Mobile (< 768px) */
@media (max-width: 767px) {
  body {
    padding: 10px;
  }

  .dashboard-container {
    gap: 14px;
  }

  .dashboard-header {
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    gap: 12px;
  }

  .header-left, .header-center, .header-right {
    flex: 1 1 100%;
    justify-content: center;
  }

  .greeting-container {
    justify-content: center;
    text-align: center;
  }

  .header-right {
    justify-content: stretch;
  }

  .header-btn {
    width: 100%;
    justify-content: center;
    min-height: 48px; /* Touch target >= 48px */
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .col-news {
    grid-column: span 1;
  }

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

  .launcher-card {
    min-height: 48px;
  }

  .weather-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .weather-forecast-strip {
    gap: 5px;
    padding: 6px 1px 3px 1px;
  }

  .notes-btn {
    min-height: 48px; /* Touch target >= 48px */
  }

  .news-filter-btn {
    min-height: 48px; /* Touch target >= 48px */
  }

  .news-widget {
    max-height: 600px;
  }

  .dashboard-footer {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }

  .footer-left, .footer-right {
    justify-content: center;
  }
}
