/* ===================================================================
   ENTERPRISE STATUS PAGE - DARK THEME
   High-tech, clean, sharp design for Atlassian Statuspage
   =================================================================== */
/* === ROOT VARIABLES === */
:root {
  /* Dark Theme Colors */
  --bg-primary: #0a0e14;
  --bg-secondary: #131920;
  --bg-tertiary: #1a2029;
  --bg-elevated: #1f2937;

  /* Text Colors */
  --text-primary: #e5e7eb;
  --text-secondary: #d9dbe0;
  --text-muted: #6b7280;

  /* Accent Colors */
  --accent-blue: #3b82f6;
  --accent-cyan: #06b6d4;

  /* Status Colors */
  --status-operational: #10b981;
  --status-degraded: #f59e0b;
  --status-partial: #f97316;
  --status-major: #ef4444;
  --status-maintenance: #3b82f6;

  /* Border Colors */
  --border-primary: #2d3748;
  --border-secondary: #374151;
  --border-accent: #4b5563;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.5);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.5), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.3);

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* === GLOBAL RESET === */
* {
  box-sizing: border-box;
}

body {
  background: linear-gradient(135deg, var(--bg-primary) 0%, #0d1117 100%);
  color: var(--text-primary);
  font-family:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans',
    'Helvetica Neue', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.history-container {
  color: var(--text-primary);
}

.history-backpage {
  color: var(--text-primary);
}

.button {
  color: var(--text-primary);
}


a {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent-blue);
  text-decoration: underline;
}

.color-secondary {
  color: var(--text-secondary) !important;
}

.accessible-link {
  color: var(--accent-cyan);
  text-decoration: underline;
}

.logo-container img {
  max-height: 60px;
  width: auto;
  filter: brightness(1.1);
  transition: transform var(--transition-fast);
}

.logo-container img:hover {
  transform: scale(1.02);
}

/* === UPDATES DROPDOWN === */

/* === PAGE STATUS === */
.page-status {
  background: var(--bg-secondary);
  border: 2px solid var(--status-operational);
  border-radius: 12px;
  padding: 40px;
  margin-bottom: 48px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.component-container {
  color: var(--text-primary);
}

.page-status::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--status-operational) 0%, #059669 100%);
}

.page-status.status-none h2 {
  color: var(--status-operational);
  font-size: 32px;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.5px;
}

.last-updated-stamp {
  color: var(--text-muted);
  font-size: 13px;
  margin-top: 8px;
  display: block;
}

/* Status color variants */
.status-green .component-status,
.status-green .icon-indicator {
  color: var(--status-operational);
  border-color: var(--status-operational);
}

.status-yellow .component-status,
.status-yellow .icon-indicator {
  color: var(--status-degraded);
  border-color: var(--status-degraded);
}

.status-orange .component-status,
.status-orange .icon-indicator {
  color: var(--status-partial);
  border-color: var(--status-partial);
}

.status-red .component-status,
.status-red .icon-indicator {
  color: var(--status-major);
  border-color: var(--status-major);
}

.status-blue .component-status,
.status-blue .icon-indicator {
  color: var(--status-maintenance);
  border-color: var(--status-maintenance);
}

/* === UPTIME GRAPHS === */
.uptime-90-days-wrapper {
  grid-column: 1 / -1;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-primary);
}

.availability-time-line-graphic {
  width: 100%;
  height: 34px;
  display: block;
  margin-bottom: 12px;
}

.uptime-day {
  cursor: pointer;
  transition: opacity var(--transition-fast);
}

.uptime-day:hover {
  opacity: 0.8;
}

/* Uptime day colors */
.uptime-day[fill='#1e8542'] {
  fill: var(--status-operational);
}

.uptime-day[fill='#b3bac5'] {
  fill: var(--bg-elevated);
}

.uptime-day[fill='#f1c40f'] {
  fill: var(--status-degraded);
}

.uptime-day[fill='#e67e22'] {
  fill: var(--status-partial);
}

.uptime-day[fill='#e74c3c'] {
  fill: var(--status-major);
}

/* === LEGEND === */
.legend {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
  padding: 0 4px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.legend-item-uptime-value {
  color: var(--text-primary);
  font-weight: 600;
}

.spacer {
  flex: 1;
}

/* === INCIDENTS LIST === */
.incidents-list {
  margin-top: 48px;
}

.incidents-list h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--border-primary);
  letter-spacing: -0.5px;
}

.status-day {
  background: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  border-radius: 10px;
  padding: 24px 28px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-fast);
}

.status-day:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-lg);
}

.status-day .date {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-primary);
}

.status-day.no-incidents p {
  color: var(--text-muted);
  font-style: italic;
  margin: 0;
}