/* 
   DownXmonitor Stylesheet
   Designed under the Vercel Console Design System specifications.
   Near-white canvas by default, polarity-flipped dark console on toggling.
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* Fonts */
  --font-family: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Colors (Light Canvas Mode) */
  --bg-primary: #fafafa;
  --bg-card: #ffffff;
  --bg-input: #ffffff;
  --bg-secondary: #fafafa;
  
  --text-primary: #111111;      /* Ink */
  --text-secondary: #444444;    /* Body */
  --text-muted: #888888;       /* Mute */
  
  --border-color: #eaeaea;      /* Hairline */
  --border-color-hover: #a1a1a1; /* Hairline strong */
  
  --accent: #0070f3;            /* Vercel Blue */
  --accent-gradient: linear-gradient(135deg, #0070f3, #50e3c2);
  
  /* Status Semantics */
  --status-up-color: #0070f3;   /* Vercel success is blue */
  --status-up-bg: #e6f2ff;
  --status-down-color: #ee0000; /* Vercel error is red */
  --status-down-bg: #feebeb;
  --status-slow-color: #f5a623; /* Vercel warning is amber */
  --status-slow-bg: #fffcf0;
  
  /* Shadows & Radius */
  --shadow-color: rgba(0, 0, 0, 0.04);
  --shadow-glow: rgba(0, 112, 243, 0.08);
  
  --border-radius-xs: 4px;
  --border-radius-sm: 6px;      /* Vercel UI element radius */
  --border-radius-md: 8px;      /* Vercel Card radius */
  --border-radius-lg: 12px;
  
  --transition-fast: 0.12s ease;
  --transition-normal: 0.22s ease;
  --transition-slow: 0.4s ease;
}

.dark-theme {
  /* Colors (Dark Console Mode) */
  --bg-primary: #000000;
  --bg-card: #0a0a0a;
  --bg-input: #0a0a0a;
  --bg-secondary: #111111;
  
  --text-primary: #ededed;
  --text-secondary: #a1a1a1;
  --text-muted: #666666;
  
  --border-color: #222222;
  --border-color-hover: #555555;
  
  --shadow-color: rgba(0, 0, 0, 0.3);
  --shadow-glow: rgba(0, 112, 243, 0.2);
  
  --status-up-bg: rgba(0, 112, 243, 0.1);
  --status-down-bg: rgba(238, 0, 0, 0.1);
  --status-slow-bg: rgba(245, 166, 35, 0.1);
}

/* Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  overflow-x: hidden;
  max-width: 100%;
}

body {
  position: relative;
  font-family: var(--font-family);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  transition: background-color var(--transition-normal), color var(--transition-normal);
  -webkit-font-smoothing: antialiased;
}

/* Atmospheric Gradients */
.bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  z-index: -1;
  pointer-events: none;
  opacity: 0.8;
  transition: opacity var(--transition-normal);
}

.bg-glow-1 {
  background: radial-gradient(circle, rgba(0, 112, 243, 0.08) 0%, rgba(80, 227, 194, 0.04) 50%, rgba(255, 255, 255, 0) 100%);
  width: 900px;
  height: 600px;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
}

.bg-glow-2 {
  background: radial-gradient(circle, rgba(121, 40, 322, 0.05) 0%, rgba(255, 0, 128, 0.03) 60%, rgba(255, 255, 255, 0) 100%);
  width: 700px;
  height: 500px;
  top: -50px;
  left: 45%;
  transform: translateX(-50%);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--border-color-hover);
}

/* Container */
.main-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem 6rem 1.5rem;
}

/* Vercel Stark Cards (Replacing glassmorphism) */
.glass-panel {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  box-shadow: 0px 1px 2px var(--shadow-color), 0px 4px 8px var(--shadow-color);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-normal);
}

/* Header */
header {
  border-bottom: 1px solid var(--border-color);
  background-color: var(--bg-card);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background-color var(--transition-normal), border-color var(--transition-normal);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  height: 64px;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Logo Vercel Styled */
.logo-area {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
}

.logo-triangle {
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 18px solid var(--text-primary);
  display: inline-block;
  position: relative;
  transition: border-bottom-color var(--transition-normal);
}

.logo-pulse-dot {
  position: absolute;
  width: 6px;
  height: 6px;
  background-color: #10b981;
  border-radius: 50%;
  bottom: -4px;
  left: -3px;
  box-shadow: 0 0 0 2px var(--bg-card), 0 0 8px #10b981;
  animation: pulse-glow 2s infinite;
}

.logo-area h1 {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.5px;
  color: var(--text-primary);
}

nav ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

nav a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 500;
  transition: color var(--transition-fast);
}

nav a:hover {
  color: var(--text-primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Theme Toggle — Professional Pill */
.theme-pill-toggle {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.pill-track {
  display: flex;
  align-items: center;
  width: 52px;
  min-width: 52px;
  height: 28px;
  border-radius: 100px;
  background-color: #334155;
  border: 1px solid rgba(255,255,255,0.08);
  position: relative;
  transition: background-color var(--transition-normal), border-color var(--transition-normal);
  padding: 3px;
  box-sizing: border-box;
}

.light-theme .pill-track {
  background-color: #e2e8f0;
  border-color: rgba(0,0,0,0.08);
}

.pill-thumb {
  width: 20px;
  min-width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.25);
  transition: transform var(--transition-normal), background-color var(--transition-normal);
  transform: translateX(0);
  position: relative;
  flex-shrink: 0;
}

/* In dark mode: thumb is on the LEFT (moon visible) */
.dark-theme .pill-thumb {
  transform: translateX(0);
  background-color: #1e293b;
}

/* In light mode: thumb slides to the RIGHT (sun visible) */
.light-theme .pill-thumb {
  transform: translateX(24px);
  background-color: #ffffff;
}

.pill-sun-icon,
.pill-moon-icon {
  width: 13px;
  height: 13px;
  position: absolute;
}

/* Dark mode: show moon, hide sun */
.dark-theme .pill-sun-icon  { display: none; }
.dark-theme .pill-moon-icon { display: block; color: #94a3b8; }

/* Light mode: show sun, hide moon */
.light-theme .pill-sun-icon  { display: block; color: #f59e0b; }
.light-theme .pill-moon-icon { display: none; }

/* Remove old icon-only toggle styles (kept for reference, overridden) */
.theme-toggle-btn { display: none; }

/* Hero Section */
.hero {
  text-align: center;
  max-width: 720px;
  margin: 2.5rem auto 3.5rem auto;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 1.05;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.hero-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
}

/* Form Controls (Vercel Primitives) */
.checker-card {
  padding: 1rem;
  margin-bottom: 2rem;
  border-radius: var(--border-radius-sm);
}

.checker-form {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.input-wrapper {
  position: relative;
  flex: 1;
}

.search-input-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  pointer-events: none;
}

.checker-form input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  padding: 0.75rem 1rem 0.75rem 2.75rem;
  border-radius: var(--border-radius-sm);
  font-family: var(--font-family);
  font-size: 0.95rem;
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.checker-form input:focus {
  outline: none;
  border-color: var(--border-color-hover);
  box-shadow: 0 0 0 1px var(--text-primary);
}

.checker-form input:focus + .search-input-icon {
  color: var(--text-primary);
}

/* Buttons (Vercel Style) */
.primary-btn {
  background-color: var(--text-primary);
  color: var(--bg-card);
  border: 1px solid var(--text-primary);
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0 1.25rem;
  height: 42px;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.primary-btn:hover {
  background-color: transparent;
  color: var(--text-primary);
}

.primary-btn:active {
  opacity: 0.8;
}

.secondary-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0 1rem;
  height: 38px;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all var(--transition-fast);
}

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

.btn-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(136, 136, 136, 0.3);
  border-radius: 50%;
  border-top-color: var(--text-primary);
  animation: spin 0.8s linear infinite;
  display: none;
}

/* Check Result Panel */
.check-result-container {
  animation: slideDown var(--transition-normal) forwards;
}

.result-card {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  text-align: left;
}

.result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Badge on its own line above the title row */
.result-badge-row {
  display: flex;
  align-items: center;
  margin-bottom: 0.6rem;
}

.result-badge-row .status-indicator-badge {
  width: fit-content;
}

.result-identity {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.status-indicator-badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--border-radius-sm);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  font-family: var(--font-mono);
}

.status-indicator-badge.up {
  color: var(--status-up-color);
  background: var(--status-up-bg);
  border: 1px solid rgba(0, 112, 243, 0.15);
}

.status-indicator-badge.down {
  color: var(--status-down-color);
  background: var(--status-down-bg);
  border: 1px solid rgba(238, 0, 0, 0.15);
}

.status-indicator-badge.slow {
  color: var(--status-slow-color);
  background: var(--status-slow-bg);
  border: 1px solid rgba(245, 166, 35, 0.15);
}

.status-ping-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: currentColor;
}

.status-ping-dot.pulse {
  animation: pulse-glow 1.5s infinite;
}

.result-domain-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.03em;
}

.result-message-banner {
  font-size: 1rem;
  color: var(--text-primary);
  padding: 0.6rem 0.9rem;
  border-radius: var(--border-radius-sm);
  margin-bottom: 0.25rem;
}

/* Status-matched color banners */
.result-message-banner--up {
  background-color: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: #059669;
}
.dark-theme .result-message-banner--up {
  background-color: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.25);
  color: #34d399;
}
.result-message-banner--up strong {
  color: inherit;
}

.result-message-banner--down {
  background-color: rgba(238, 0, 0, 0.06);
  border: 1px solid rgba(238, 0, 0, 0.18);
  color: var(--status-down-color);
}
.result-message-banner--down strong {
  color: inherit;
}

.result-message-banner--slow {
  background-color: rgba(245, 166, 35, 0.08);
  border: 1px solid rgba(245, 166, 35, 0.2);
  color: var(--status-slow-color);
}
.result-message-banner--slow strong {
  color: inherit;
}

.result-stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.75rem;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 0;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.stat-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  font-weight: 500;
  font-family: var(--font-mono);
}

.stat-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.result-diagnostics {
  font-size: 0.85rem;
  color: var(--text-secondary);
  background: var(--bg-secondary);
  padding: 0.75rem 1rem;
  border-radius: var(--border-radius-sm);
  border-left: 2px solid var(--text-primary);
}

/* Layout Grid */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
  align-items: start;
}

/* Services Dashboard */
.services-dashboard {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  min-width: 0;
}

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

.dashboard-header h3 {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.search-filter-wrapper {
  position: relative;
  width: 220px;
}

.mini-search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  color: var(--text-muted);
}

.search-filter-wrapper input {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  padding: 0.4rem 0.5rem 0.4rem 1.75rem;
  font-family: var(--font-family);
  font-size: 0.82rem;
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.search-filter-wrapper input:focus {
  outline: none;
  border-color: var(--text-primary);
}

/* Category Tabs */
.category-tabs {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border-color);
}

.category-tab {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 0.82rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.category-tab:hover {
  color: var(--text-primary);
  background-color: var(--bg-secondary);
}

.category-tab.active {
  background: var(--bg-card);
  color: var(--text-primary);
  border-color: var(--border-color);
  box-shadow: 0px 1px 2px var(--shadow-color);
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

/* Service Card (Vercel Inspired) */
.service-card {
  padding: 1rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  box-shadow: 0px 1px 2px var(--shadow-color);
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.service-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-color-hover);
  box-shadow: 0px 4px 12px var(--shadow-color);
}

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

.service-name {
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}

.service-category-tag {
  font-size: 0.65rem;
  color: var(--text-muted);
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 0.15rem 0.4rem;
  border-radius: var(--border-radius-xs);
  text-transform: uppercase;
  font-weight: 600;
  font-family: var(--font-mono);
}

.service-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.service-uptime {
  font-family: var(--font-mono);
}

/* 24h Timeline Sparkline */
.service-timeline-container {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.timeline-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.68rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.timeline-bars {
  display: flex;
  gap: 1.5px;
  height: 16px;
  align-items: flex-end;
}

.timeline-bar-segment {
  flex: 1;
  height: 100%;
  border-radius: 0.5px;
  background-color: var(--border-color);
  opacity: 0.65;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.timeline-bar-segment:hover {
  transform: scaleY(1.2);
  opacity: 1;
}

.timeline-bar-segment.up {
  background-color: var(--accent); /* blue success */
}

.timeline-bar-segment.slow {
  background-color: var(--status-slow-color);
}

.timeline-bar-segment.down {
  background-color: var(--status-down-color);
}

/* Tooltip */
.timeline-bar-segment::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--text-primary);
  color: var(--bg-card);
  padding: 4px 6px;
  border-radius: var(--border-radius-xs);
  font-size: 0.7rem;
  font-family: var(--font-mono);
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: opacity 0.1s, transform 0.1s;
  z-index: 10;
  display: none;
}

.timeline-bar-segment:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  display: block;
}

/* Sidebar */
.dashboard-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.sidebar-card {
  padding: 1.25rem;
  border-radius: var(--border-radius-sm);
}

.sidebar-card h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  letter-spacing: -0.03em;
}

.sidebar-card-desc {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.sidebar-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.form-group label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  font-family: var(--font-mono);
}

.form-group input, .form-group select {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-xs);
  padding: 0.5rem;
  font-family: var(--font-family);
  font-size: 0.85rem;
  color: var(--text-primary);
  transition: border-color var(--transition-fast);
}

.form-group input:focus, .form-group select:focus {
  outline: none;
  border-color: var(--text-primary);
}

.sidebar-form button {
  margin-top: 0.25rem;
  width: 100%;
}

.feedback-msg {
  margin-top: 0.5rem;
  padding: 0.5rem;
  border-radius: var(--border-radius-xs);
  font-size: 0.78rem;
  text-align: center;
  font-weight: 500;
}

.feedback-msg.success {
  background: var(--status-up-bg);
  color: var(--status-up-color);
  border: 1px solid rgba(0, 112, 243, 0.1);
}

.feedback-msg.error {
  background: var(--status-down-bg);
  color: var(--status-down-color);
  border: 1px solid rgba(238, 0, 0, 0.1);
}

/* Recent Checks List */
.recent-checks-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.recent-check-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-xs);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.recent-check-item:hover {
  border-color: var(--text-primary);
  transform: translateX(2px);
}

.recent-check-domain {
  font-size: 0.8rem;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 150px;
}

.recent-check-ping {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* Spinner */
.double-bounce-spinner {
  width: 32px;
  height: 32px;
  position: relative;
  margin: 0 auto 0.75rem auto;
}

.double-bounce1, .double-bounce2 {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: var(--text-primary);
  opacity: 0.3;
  position: absolute;
  top: 0;
  left: 0;
  animation: bounce 2s infinite ease-in-out;
}

.double-bounce2 {
  animation-delay: -1.0s;
}

.loading-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 0;
  color: var(--text-secondary);
}

.empty-state {
  text-align: center;
  padding: 1.25rem 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Breadcrumbs (SEO Nav) */
.breadcrumbs {
  padding: 0.25rem 0;
  margin-bottom: 0.5rem;
}

.breadcrumbs ol {
  list-style: none;
  display: flex;
  gap: 0.4rem;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.breadcrumbs li a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.breadcrumbs li a:hover {
  color: var(--text-primary);
}

.breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 0.4rem;
  color: var(--text-muted);
  font-size: 0.7rem;
}

.breadcrumbs li.active {
  color: var(--text-primary);
  font-weight: 500;
}

/* Standalone Status Page Elements */
.modal-url {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.modal-url:hover {
  color: var(--accent);
}

.chart-section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.chart-subtitle {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* Flex Response Sparkline Charts */
.response-bar-graph {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 80px;
  background: var(--bg-secondary);
  padding: 1rem 0.5rem 0.35rem 0.5rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  position: relative;
}

.graph-bar-col {
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  position: relative;
}

.graph-bar-fill {
  width: 100%;
  border-radius: 1px 1px 0 0;
  background-color: var(--accent);
  opacity: 0.75;
  transition: height var(--transition-normal), opacity var(--transition-fast);
  cursor: pointer;
}

.graph-bar-fill:hover {
  opacity: 1;
}

.graph-bar-fill.down {
  background-color: var(--status-down-color);
}

.graph-bar-fill::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--text-primary);
  color: var(--bg-card);
  padding: 4px 6px;
  border-radius: var(--border-radius-xs);
  font-size: 0.7rem;
  font-family: var(--font-mono);
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: opacity 0.1s, transform 0.1s;
  z-index: 10;
  display: none;
}

.graph-bar-col:hover .graph-bar-fill::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  display: block;
}

/* Outage Report Timeline (Global Feedback Feed) */
.report-timeline {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
  padding-left: 1rem;
  border-left: 2px solid var(--border-color);
  margin-top: 0.5rem;
  max-height: 280px;
  overflow-y: auto;
}

.timeline-item {
  position: relative;
  animation: slideDown var(--transition-normal) forwards;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -1.3rem;
  top: 0.35rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--status-slow-color);
  border: 1px solid var(--bg-primary);
}

.timeline-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
}

.timeline-item-user {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.timeline-flag {
  font-size: 0.85rem;
}

.timeline-item-time {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.reporting-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  padding: 1rem;
}

/* Footer */
footer {
  border-top: 1px solid var(--border-color);
  background-color: var(--bg-card);
  padding: 4rem 1.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: background-color var(--transition-normal), border-color var(--transition-normal);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.footer-brand .logo-area {
  cursor: default;
}

.footer-links {
  display: flex;
  gap: 4rem;
  grid-column: 2 / -1;
  justify-content: flex-end;
}

.link-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.link-group h5 {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  font-family: var(--font-mono);
  letter-spacing: 0.5px;
}

.link-group ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.link-group a {
  text-decoration: none;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.link-group a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  max-width: 1200px;
  margin: 2.5rem auto 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--text-muted);
}

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

@keyframes bounce {
  0%, 100% { transform: scale(0.0); }
  50% { transform: scale(1.0); }
}

@keyframes pulse-glow {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.7; }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.hidden {
  display: none !important;
}

/* Grid Override for Status Page layout */
@media (min-width: 901px) {
  .status-page-grid {
    grid-template-columns: 1fr 310px;
  }
}

/* Responsive Breakpoints */
@media (max-width: 900px) {
  .content-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-links {
    grid-column: 1;
    justify-content: flex-start;
    gap: 3rem;
  }
}

@media (max-width: 600px) {
  .hero-title {
    font-size: 2.25rem;
  }
  
  .checker-form {
    flex-direction: column;
    align-items: stretch;
  }
  
  .primary-btn {
    height: 40px;
  }
  
  .header-container {
    padding: 1rem;
  }

  /* Fix overflow on status page cards */
  .result-card {
    padding: 1rem;
    overflow: hidden;
  }

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

  .stat-value {
    font-size: 0.85rem;
    word-break: break-all;
  }

  .result-diagnostics {
    font-size: 0.8rem;
    word-break: break-word;
  }

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

  .result-domain-title {
    font-size: 1rem;
  }

  .main-container {
    padding: 1.5rem 1rem 4rem 1rem;
  }
}

@media (max-width: 480px) {
  .header-container {
    padding: 0 0.75rem;
    gap: 0.5rem;
  }
  
  .logo-area h1 {
    font-size: 1rem;
  }
  
  nav ul {
    gap: 0.75rem;
  }
  
  nav a {
    font-size: 0.8rem;
  }

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

  .footer-links {
    flex-direction: column;
    gap: 1.5rem;
  }
}

/* Dynamic Problem Outage Options */
.problem-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.5rem;
  margin-bottom: 0.2rem;
}

.problem-option-btn {
  background-color: var(--bg-secondary);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 0.65rem 0.5rem;
  font-size: 0.8rem;
  font-weight: 500;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.problem-option-btn:hover:not(:disabled) {
  border-color: var(--text-secondary);
  color: var(--text-primary);
  background-color: var(--bg-card);
  transform: translateY(-1px);
}

.problem-option-btn:active:not(:disabled) {
  transform: translateY(0);
}

.problem-option-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.problem-option-btn.submitted {
  background-color: var(--accent) !important;
  border-color: var(--accent) !important;
  color: #ffffff !important;
  box-shadow: 0 1px 3px rgba(0, 112, 243, 0.2);
}

.reported-status-box {
  grid-column: 1 / -1;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 0.75rem 1rem;
  font-size: 0.78rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.25rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.reported-status-box .status-ping-dot {
  background-color: var(--accent);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.timeline-item-issue-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  padding: 1.5px 5px;
  border-radius: 4px;
  background-color: rgba(186, 60, 42, 0.12);
  color: #ea5a47;
  border: 1px solid rgba(186, 60, 42, 0.15);
  margin-left: 0.35rem;
  vertical-align: middle;
}

/* Responsiveness Optimization for IPv6 & Values */
.stat-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  word-break: break-all;
  overflow-wrap: break-word;
}

/* Support Resources & FAQ Accordions styling */
.support-section-header {
  margin-bottom: 1.25rem;
}

.support-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.support-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.support-links-list li {
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.bullet-dot {
  width: 5px;
  height: 5px;
  background-color: var(--border-color);
  border-radius: 50%;
  flex-shrink: 0;
}

.support-links-list a {
  color: var(--accent);
  text-decoration: none;
  word-break: break-all;
  transition: opacity 0.15s ease;
}

.support-links-list a:hover {
  text-decoration: underline;
  opacity: 0.85;
}

/* FAQ Accordion Component */
.accordion-container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.accordion-item {
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background-color: var(--bg-card);
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.accordion-item:hover {
  border-color: var(--text-muted);
}

.accordion-item.active {
  border-color: var(--border-color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.accordion-trigger {
  width: 100%;
  background: none;
  border: none;
  padding: 0.85rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  font-size: 0.85rem;
  font-weight: 550;
  color: var(--text-main);
  cursor: pointer;
  font-family: inherit;
  transition: background-color 0.15s ease;
}

.accordion-trigger:hover {
  background-color: rgba(0, 0, 0, 0.015);
}

.dark-theme .accordion-trigger:hover {
  background-color: rgba(255, 255, 255, 0.015);
}

.chevron-icon {
  color: var(--text-muted);
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-item.active .chevron-icon {
  transform: rotate(180deg);
  color: var(--text-main);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.support-steps-list {
  list-style: none;
  padding: 0 1rem 1rem 1rem;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.support-steps-list li {
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.step-bullet {
  width: 4px;
  height: 4px;
  background-color: var(--text-muted);
  border-radius: 50%;
  margin-top: 0.45rem;
  flex-shrink: 0;
}

/* Service Card Favicon display constraints */
.service-card-favicon {
  flex-shrink: 0;
  object-fit: contain;
  background-color: transparent;
}

