/* =============================================================================
   Mac Dashboard Styles
   =============================================================================
   Custom properties defined at the top for effortless theming.
   Supports automatic light/dark mode with light-dark() and fallback media query.
   ============================================================================= */

:root {
  /* Declare dual color scheme for viewport, root scrollbars, and form controls */
  color-scheme: light dark;

  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Monaco, Consolas, monospace;

  /* Spacing Scale */
  --space-2xs: 4px;
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 9999px;

  /* Light Theme Color Tokens */
  --color-canvas-light: #f8fafc;
  --color-surface-light: #ffffff;
  --color-surface-elevated-light: #f1f5f9;
  --color-surface-hover-light: #f8fafc;
  --color-text-primary-light: #0f172a;
  --color-text-secondary-light: #475569;
  --color-text-muted-light: #64748b;
  --color-border-subtle-light: #e2e8f0;
  --color-border-strong-light: #cbd5e1;
  --color-now-indicator-light: #ef4444;
  --color-highlight-bg-light: #eff6ff;
  --color-highlight-border-light: #3b82f6;
  --color-upnext-bg-light: #ecfdf5;
  --color-upnext-border-light: #10b981;
  --color-error-bg-light: #fef2f2;
  --color-error-text-light: #991b1b;
  --color-error-border-light: #fecaca;

  /* Dark Theme Color Tokens */
  --color-canvas-dark: #090d16;
  --color-surface-dark: #131b2c;
  --color-surface-elevated-dark: #1b253b;
  --color-surface-hover-dark: #172238;
  --color-text-primary-dark: #f8fafc;
  --color-text-secondary-dark: #94a3b8;
  --color-text-muted-dark: #64748b;
  --color-border-subtle-dark: #1e293b;
  --color-border-strong-dark: #334155;
  --color-now-indicator-dark: #f87171;
  --color-highlight-bg-dark: #172554;
  --color-highlight-border-dark: #60a5fa;
  --color-upnext-bg-dark: #064e3b;
  --color-upnext-border-dark: #34d399;
  --color-error-bg-dark: #450a0a;
  --color-error-text-dark: #fecaca;
  --color-error-border-dark: #7f1d1d;

  /* Default Active Tokens (Light) */
  --bg-canvas: var(--color-canvas-light);
  --bg-surface: var(--color-surface-light);
  --bg-surface-elevated: var(--color-surface-elevated-light);
  --bg-surface-hover: var(--color-surface-hover-light);
  --surface: var(--bg-surface);
  --surface-elevated: var(--bg-surface-elevated);
  --surface-hover: var(--bg-surface-hover);
  --text-primary: var(--color-text-primary-light);
  --text-secondary: var(--color-text-secondary-light);
  --text-muted: var(--color-text-muted-light);
  --border-subtle: var(--color-border-subtle-light);
  --border-strong: var(--color-border-strong-light);
  --now-indicator: var(--color-now-indicator-light);
  --highlight-bg: var(--color-highlight-bg-light);
  --highlight-border: var(--color-highlight-border-light);
  --upnext-bg: var(--color-upnext-bg-light);
  --upnext-border: var(--color-upnext-border-light);
  --error-bg: var(--color-error-bg-light);
  --error-text: var(--color-error-text-light);
  --error-border: var(--color-error-border-light);

  /* Modern light-dark() assignments where supported */
  @supports (color: light-dark(white, black)) {
    --bg-canvas: light-dark(var(--color-canvas-light), var(--color-canvas-dark));
    --bg-surface: light-dark(var(--color-surface-light), var(--color-surface-dark));
    --bg-surface-elevated: light-dark(var(--color-surface-elevated-light), var(--color-surface-elevated-dark));
    --bg-surface-hover: light-dark(var(--color-surface-hover-light), var(--color-surface-hover-dark));
    --surface: light-dark(var(--color-surface-light), var(--color-surface-dark));
    --surface-elevated: light-dark(var(--color-surface-elevated-light), var(--color-surface-elevated-dark));
    --surface-hover: light-dark(var(--color-surface-hover-light), var(--color-surface-hover-dark));
    --text-primary: light-dark(var(--color-text-primary-light), var(--color-text-primary-dark));
    --text-secondary: light-dark(var(--color-text-secondary-light), var(--color-text-secondary-dark));
    --text-muted: light-dark(var(--color-text-muted-light), var(--color-text-muted-dark));
    --border-subtle: light-dark(var(--color-border-subtle-light), var(--color-border-subtle-dark));
    --border-strong: light-dark(var(--color-border-strong-light), var(--color-border-strong-dark));
    --now-indicator: light-dark(var(--color-now-indicator-light), var(--color-now-indicator-dark));
    --highlight-bg: light-dark(var(--color-highlight-bg-light), var(--color-highlight-bg-dark));
    --highlight-border: light-dark(var(--color-highlight-border-light), var(--color-highlight-border-dark));
    --upnext-bg: light-dark(var(--color-upnext-bg-light), var(--color-upnext-bg-dark));
    --upnext-border: light-dark(var(--color-upnext-border-light), var(--color-upnext-border-dark));
    --error-bg: light-dark(var(--color-error-bg-light), var(--color-error-bg-dark));
    --error-text: light-dark(var(--color-error-text-light), var(--color-error-text-dark));
    --error-border: light-dark(var(--color-error-border-light), var(--color-error-border-dark));
  }
}

/* Fallback for browsers without light-dark() support */
@media (prefers-color-scheme: dark) {
  :root {
    --bg-canvas: var(--color-canvas-dark);
    --bg-surface: var(--color-surface-dark);
    --bg-surface-elevated: var(--color-surface-elevated-dark);
    --bg-surface-hover: var(--color-surface-hover-dark);
    --surface: var(--color-surface-dark);
    --surface-elevated: var(--color-surface-elevated-dark);
    --surface-hover: var(--color-surface-hover-dark);
    --text-primary: var(--color-text-primary-dark);
    --text-secondary: var(--color-text-secondary-dark);
    --text-muted: var(--color-text-muted-dark);
    --border-subtle: var(--color-border-subtle-dark);
    --border-strong: var(--color-border-strong-dark);
    --now-indicator: var(--color-now-indicator-dark);
    --highlight-bg: var(--color-highlight-bg-dark);
    --highlight-border: var(--color-highlight-border-dark);
    --upnext-bg: var(--color-upnext-bg-dark);
    --upnext-border: var(--color-upnext-border-dark);
    --error-bg: var(--color-error-bg-dark);
    --error-text: var(--color-error-text-dark);
    --error-border: var(--color-error-border-dark);
  }
}

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

html {
  font-family: var(--font-sans);
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  touch-action: manipulation;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  background-color: var(--bg-canvas);
  display: flex;
  flex-direction: column;
}

/* Container */
.dashboard-container {
  width: 100%;
  max-width: 740px;
  margin-inline: auto;
  padding-inline: max(var(--space-md), env(safe-area-inset-left));
  padding-right: max(var(--space-md), env(safe-area-inset-right));
  padding-top: max(var(--space-md), env(safe-area-inset-top));
  padding-bottom: max(var(--space-xl), env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

/* Header & Status Bar */
.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--border-subtle);
}

.header-brand {
  display: flex;
  align-items: baseline;
  gap: var(--space-xs);
}

.dashboard-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.status-meta {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* Last Updated Pill */
.sync-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 9999px;
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.2;
  user-select: none;
}

.sync-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
  background-color: #10b981;
  transition: background-color 0.2s ease;
}

.sync-dot-green {
  background-color: #10b981;
}

.sync-dot-yellow {
  background-color: #f59e0b;
}

.sync-dot-red {
  background-color: #ef4444;
}

.sync-dot.is-error {
  background-color: #ef4444;
}

/* Desktop Sync Now Button */
.btn-sync {
  display: none;
  background-color: var(--bg-surface-elevated);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 3px 10px;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, opacity 0.15s ease;
  line-height: 1.2;
  user-select: none;
}

.btn-sync:hover:not(:disabled) {
  background-color: var(--bg-surface-hover);
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.btn-sync:active:not(:disabled) {
  transform: translateY(1px);
}

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

.btn-sync.is-visible {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.refresh-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.refresh-btn:hover {
  color: var(--text-primary);
  background-color: var(--bg-surface-elevated);
}

.refresh-btn:focus-visible {
  outline: 2px solid var(--highlight-border);
  outline-offset: 2px;
}

/* Error Banner */
.error-banner {
  background-color: var(--error-bg);
  color: var(--error-text);
  border: 1px solid var(--error-border);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
}

.error-banner[hidden] {
  display: none;
}

/* Day Sections */
.day-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

/* Today is the hero section - fills viewport on mobile/desktop */
.today-section {
  min-height: calc(100vh - 120px);
  min-height: calc(100dvh - 120px);
}

.tomorrow-section {
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px dashed var(--border-subtle);
  opacity: 0.88;
  transition: opacity 0.2s ease;
}

.tomorrow-section:hover,
.tomorrow-section:focus-within {
  opacity: 1;
}

/* Date Headers */
.section-header {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.day-badge {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--highlight-border);
}

.tomorrow-section .day-badge {
  color: var(--text-muted);
}

.day-heading {
  font-size: 1.875rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.tomorrow-section .day-heading {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-secondary);
}

/* All-Day Events Chips */
.allday-container {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  empty-cells: hide;
}

.allday-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 4px 12px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-primary);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

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

/* Events Stack */
.events-stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  position: relative;
}

/* Event Card */
.event-card {
  position: relative;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  padding-left: calc(var(--space-md) + 6px);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.2s ease, border-color 0.2s ease;
  overflow: hidden;
}

/* Calendar Color Left Stripe */
.event-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 5px;
  background-color: var(--event-calendar-color, var(--highlight-border));
  border-top-left-radius: var(--radius-md);
  border-bottom-left-radius: var(--radius-md);
}

/* Card States */
.event-card.is-current {
  background-color: var(--highlight-bg);
  border-color: var(--highlight-border);
  box-shadow: 0 4px 14px -2px rgba(59, 130, 246, 0.18);
  transform: scale(1.01);
}

.event-card.is-next {
  border-color: var(--upnext-border);
  box-shadow: 0 2px 10px -2px rgba(16, 185, 129, 0.14);
}

.event-card.is-past {
  opacity: 0.52;
}

.event-card.is-past:hover {
  opacity: 0.85;
}

/* Card Header: Tags & Time */
.card-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xs);
  font-size: 0.8125rem;
}

.time-range {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
}

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

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.status-badge.current-badge {
  background-color: var(--highlight-border);
  color: #ffffff;
}

.status-badge.upnext-badge {
  background-color: var(--upnext-border);
  color: #ffffff;
}

.calendar-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Card Title */
.event-title {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  line-height: 1.35;
  word-break: break-word;
}

/* Card Location */
.event-location {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  text-decoration: none;
  margin-top: 2px;
  width: fit-content;
  border-radius: var(--radius-sm);
  padding: 2px 4px;
  margin-left: -4px;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.event-location:hover {
  color: var(--text-primary);
  background-color: var(--bg-surface-elevated);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.event-location:focus-visible {
  outline: 2px solid var(--highlight-border);
  outline-offset: 2px;
}

.location-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  stroke: currentColor;
}

/* Timeline "NOW" Divider */
.now-divider {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  margin-block: var(--space-xs);
  padding-inline: 4px;
}

.now-badge {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #ffffff;
  background-color: var(--now-indicator);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  flex-shrink: 0;
  box-shadow: 0 1px 4px rgba(239, 68, 68, 0.3);
}

.now-line {
  flex-grow: 1;
  height: 2px;
  background-color: var(--now-indicator);
  opacity: 0.85;
  border-radius: 1px;
}

/* Empty State */
.empty-state {
  background-color: var(--bg-surface);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md);
  padding: var(--space-xl) var(--space-md);
  text-align: center;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
}

.empty-state-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.empty-state-subtitle {
  font-size: 0.8125rem;
}

/* Widget Slot (for easy user extensions) */
.widget-slot {
  margin-top: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

/* =============================================================================
   Cloudflare Tunnel Status Bar & Logs Modal
   ============================================================================= */

.tunnel-bar {
  margin-top: var(--space-sm);
  margin-bottom: var(--space-md);
  padding: 10px 14px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.tunnel-bar[hidden] {
  display: none !important;
}

.tunnel-status-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tunnel-dot {
  width: 11px;
  height: 11px;
  border-radius: var(--radius-pill);
  flex-shrink: 0;
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

.tunnel-dot-green {
  background-color: #10b981;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.6);
}

.tunnel-dot-yellow {
  background-color: #f59e0b;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.6);
}

.tunnel-dot-red {
  background-color: #ef4444;
  box-shadow: 0 0 4px rgba(239, 68, 68, 0.3);
}

.tunnel-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tunnel-host-line {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tunnel-host {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  font-family: var(--font-mono);
}

.tunnel-badge {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
}

.tunnel-badge-green {
  background-color: rgba(16, 185, 129, 0.15);
  color: #10b981;
}

.tunnel-badge-yellow {
  background-color: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
}

.tunnel-badge-red {
  background-color: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.tunnel-subtext {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.tunnel-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-sm {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
  border: 1px solid transparent;
}

.btn-tunnel {
  background-color: #3b82f6;
  color: #ffffff;
}

.btn-tunnel:hover {
  background-color: #2563eb;
}

.btn-tunnel-secondary {
  background-color: var(--bg-surface-elevated);
  color: var(--text-secondary);
  border-color: var(--border-subtle);
}

.btn-tunnel-secondary:hover {
  background-color: var(--bg-surface-hover);
  color: var(--text-primary);
}

/* Logs Modal */
.logs-modal {
  border: none;
  border-radius: var(--radius-md);
  padding: 0;
  margin: auto;
  background: transparent;
  max-width: 90vw;
  width: 720px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.logs-modal::backdrop {
  background-color: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
}

.logs-modal-box {
  background-color: #0f172a;
  color: #f1f5f9;
  border: 1px solid #334155;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.logs-modal-header {
  padding: 14px 18px;
  border-bottom: 1px solid #334155;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #1e293b;
}

.logs-modal-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logs-modal-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #f8fafc;
  margin: 0;
}

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

.logs-body {
  padding: 14px 18px;
  max-height: 60vh;
  overflow-y: auto;
}

.logs-pre {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-all;
  color: #cbd5e1;
}

/* =============================================================================
   Apple Reminders Card & List Styling
   ============================================================================= */

.reminders-card {
  margin-top: var(--space-xs);
  margin-bottom: var(--space-md);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.reminders-card[hidden] {
  display: none;
}

.reminders-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.reminders-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #8b5cf6;
}

.reminders-card-title {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-primary);
}

.reminders-count-badge {
  font-size: 0.6875rem;
  font-weight: 700;
  background-color: rgba(139, 92, 246, 0.15);
  color: #8b5cf6;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.reminders-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.reminder-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 10px;
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
}

.reminder-item:hover {
  background-color: var(--bg-surface-hover);
}

.reminder-bullet {
  width: 14px;
  height: 14px;
  border-radius: var(--radius-pill);
  border: 2px solid #8b5cf6;
  margin-top: 2px;
  flex-shrink: 0;
}

.reminder-content {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
}

.reminder-title-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.reminder-text {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
}

.reminder-tag {
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: var(--radius-pill);
  background-color: rgba(139, 92, 246, 0.12);
  color: #8b5cf6;
}

.reminder-due-badge {
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: var(--radius-pill);
}

.reminder-due-overdue {
  background-color: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.reminder-due-today {
  background-color: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
}

.reminder-due-tomorrow {
  background-color: rgba(16, 185, 129, 0.15);
  color: #10b981;
}

.reminder-notes {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Accessibility: Focus & Forced Colors */
:focus-visible {
  outline: 2px solid var(--highlight-border);
  outline-offset: 2px;
}

@media (forced-colors: active) {
  .event-card,
  .allday-chip,
  .now-divider,
  .empty-state {
    border: 1px solid CanvasText;
  }
  .event-card::before {
    background-color: Highlight;
  }
  .now-line {
    background-color: Highlight;
  }
  .now-badge,
  .status-badge {
    background-color: Highlight;
    color: HighlightText;
  }
}
