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

:root {
  --bg: #0a0a0a;
  --surface: #1a1a1a;
  --surface-dim: #151515;
  --text: #ffffff;
  --text-muted: #888888;
  --text-dim: #666666;
  --accent: #3b82f6;
  --warning: #f59e0b;
  --success: #22c55e;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
}

.container {
  max-width: 600px;
  margin: 0 auto;
  padding: 24px 16px;
  padding-top: calc(24px + env(safe-area-inset-top, 20px));
  padding-bottom: calc(24px + env(safe-area-inset-bottom, 20px));
}

.page-header {
  margin-bottom: 32px;
}

.page-header h1 {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 4px;
}

.page-header .subtitle {
  color: var(--text-muted);
  font-size: 16px;
}

.section {
  margin-bottom: 32px;
}

.section-title {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.train-card {
  background: var(--surface);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s;
}

.train-card.past {
  background: var(--surface-dim);
  opacity: 0.6;
}

.train-info {
  flex: 1;
}

.train-route {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.train-times {
  font-size: 18px;
  font-weight: 500;
}

.train-times .separator {
  color: var(--text-muted);
  margin: 0 8px;
}

.train-mitcham {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 4px;
}

.train-mitcham.arriving-soon {
  color: var(--warning);
  font-weight: 500;
}

.train-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.btn-sms {
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s;
  white-space: nowrap;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.btn-sms:hover {
  background: #2563eb;
  transform: translateY(-1px);
}

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

.status {
  text-align: center;
  padding: 32px;
  color: var(--text-muted);
}

.status.loading {
  color: var(--accent);
}

.status.error {
  color: var(--warning);
}

.last-updated {
  text-align: center;
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 32px;
}

.empty-state {
  text-align: center;
  padding: 32px 16px;
  color: var(--text-muted);
}

.empty-state-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.3;
}

@media (max-width: 480px) {
  .train-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .train-actions {
    width: 100%;
  }

  .btn-sms {
    flex: 1;
    text-align: center;
  }
}
