:root {
  --bg-color: #0d1117;
  --bg-accent: #161b22;
  --text-primary: #c9d1d9;
  --text-secondary: #8b949e;
  --border-color: #30363d;
  
  --color-up: #238636;
  --color-up-glow: rgba(35, 134, 54, 0.4);
  --color-down: #da3633;
  --color-down-glow: rgba(218, 54, 51, 0.4);
  --color-pending: #8b949e;
  
  --glass-bg: rgba(22, 27, 34, 0.6);
  --glass-border: rgba(255, 255, 255, 0.08);
}

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

body {
  font-family: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

h1, h2, h3, .brand-name, .service-name {
  font-family: 'DM Sans', -apple-system, sans-serif;
}

.background-effect {
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 50% 50%, rgba(35, 134, 54, 0.05) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(56, 139, 253, 0.05) 0%, transparent 40%);
  z-index: -1;
  animation: pulse 15s ease-in-out infinite alternate;
}

@keyframes pulse {
  0% { transform: scale(1); }
  100% { transform: scale(1.05); }
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 15px;
}

.brand-logo {
  height: 40px;
  border-radius: 8px;
}

.brand-name {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.5px;
}

.status-banner {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 30px;
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 40px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.status-banner:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.status-banner h1 {
  font-size: 24px;
  font-weight: 600;
  margin: 0;
}

.status-up .status-icon {
  background-color: var(--color-up);
  box-shadow: 0 0 15px var(--color-up-glow);
}

.status-down .status-icon {
  background-color: var(--color-down);
  box-shadow: 0 0 15px var(--color-down-glow);
}

.status-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
}

.status-icon::after {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 50%;
  border: 2px solid currentColor;
  opacity: 0.5;
  animation: ripple 2s infinite ease-out;
}

@keyframes ripple {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.5); opacity: 0; }
}

.start-date-notice {
  text-align: right;
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: -20px;
  margin-bottom: 30px;
  margin-right: 10px;
}

.service-card {
  background: var(--bg-accent);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 20px;
  transition: all 0.2s ease;
}

.service-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(22, 27, 34, 0.8);
}

.service-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.service-name {
  font-size: 18px;
  font-weight: 600;
}

.service-status {
  display: flex;
  align-items: center;
  gap: 15px;
}

.status-text {
  font-size: 14px;
  color: var(--text-secondary);
}

.uptime-badge {
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--border-color);
}

.history-section {
  margin-top: 25px;
}

.history-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  margin-bottom: 10px;
  color: var(--text-secondary);
  font-weight: 500;
}

.history-bar {
  display: flex;
  gap: 3px;
  height: 40px;
  margin-bottom: 8px;
}

.history-bar-daily {
  height: 30px;
}

.history-tick {
  flex: 1;
  border-radius: 4px;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.1s;
}

.history-tick:hover {
  opacity: 0.8;
  transform: scaleY(1.1);
}

.tick-up { background-color: var(--color-up); }
.tick-down { background-color: var(--color-down); }
.tick-empty { background-color: var(--color-pending); opacity: 0.2; }

.history-legend {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-secondary);
}

.footer {
  text-align: center;
  margin-top: 60px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
  font-size: 14px;
  color: var(--text-secondary);
}

.footer a {
  color: var(--text-primary);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}
