:root {
  --bg: #0e0e10;
  --surface: #1a1a1f;
  --border: #2a2a30;
  --text: #e0e0e0;
  --text-muted: #888;
  --accent: #6e9eff;
  --accent-hover: #8bb4ff;
  --danger: #ff6b6b;
  --danger-hover: #ff8a8a;
  --radius: 6px;
}

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

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

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

header { margin-bottom: 3rem; }
header h1 { font-size: 1.8rem; font-weight: 600; }
header .tagline { color: var(--text-muted); margin-top: 0.25rem; }

nav h2 { font-size: 1.1rem; font-weight: 500; margin-bottom: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }

.tool-list { list-style: none; }
.tool-list li { padding: 0.5rem 0; }
.tool-list a { color: var(--accent); text-decoration: none; font-weight: 500; }
.tool-list a:hover { color: var(--accent-hover); text-decoration: underline; }

footer { margin-top: 4rem; color: var(--text-muted); font-size: 0.85rem; }

/* shared tool page styles */
.tool-header { margin-bottom: 2rem; }
.tool-header a { color: var(--text-muted); text-decoration: none; font-size: 0.85rem; }
.tool-header a:hover { color: var(--accent); }
.tool-header h1 { font-size: 1.5rem; margin-top: 0.5rem; }
.tool-header p { color: var(--text-muted); margin-top: 0.25rem; }

.input-row {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.input-row input {
  flex: 1;
  padding: 0.6rem 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.95rem;
  outline: none;
}
.input-row input:focus { border-color: var(--accent); }
.input-row input::placeholder { color: var(--text-muted); }

button {
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: var(--radius);
  font-size: 0.95rem;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.15s;
}

.btn-primary { background: var(--accent); color: #000; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-danger { background: transparent; color: var(--danger); border: 1px solid var(--danger); padding: 0.3rem 0.6rem; font-size: 0.8rem; }
.btn-danger:hover { background: var(--danger); color: #000; }

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  text-align: left;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--border);
}

th {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

td a { color: var(--accent); text-decoration: none; }
td a:hover { text-decoration: underline; }

.carrier-badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--border);
  color: var(--text);
}

.empty-state {
  text-align: center;
  color: var(--text-muted);
  padding: 3rem 1rem;
}

.note {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-top: 0.5rem;
}

.status-loading { color: var(--text-muted); font-size: 0.8rem; font-style: italic; }
.status-na { color: var(--text-muted); font-size: 0.85rem; }
.status-badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  font-size: 0.8rem;
  font-weight: 600;
}
.status-default { background: var(--border); color: var(--text); }
.status-delivered { background: #1a3a1a; color: #6fcf6f; }
.status-transit { background: #1a2a3a; color: #6eb5ff; }
.status-exception { background: #3a1a1a; color: #ff6b6b; }
.status-error { background: #3a1a1a; color: #ff6b6b; }
.status-eta { display: block; font-size: 0.75rem; color: var(--text-muted); margin-top: 0.2rem; }
.status-detail { display: block; font-size: 0.75rem; color: var(--text-muted); margin-top: 0.2rem; }

@media (max-width: 500px) {
  .input-row { flex-direction: column; }
  .container { padding: 2rem 1rem; }
}
