:root {
  color-scheme: dark;
  --bg: #0e0e12;
  --card: #1c1c22;
  --row-a: #202028;
  --row-b: #18181d;
  --header: #28283c;
  --text: #e8e8ec;
  --muted: #9a9aa5;
  --al: #2e7d32;
  --sat: #c62828;
  --asiri: #e07b00;
  --neutral: #5a5a63;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  padding-bottom: env(safe-area-inset-bottom);
}

header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--header);
  padding: calc(env(safe-area-inset-top) + 14px) 16px 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

h1 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 600;
}

#status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
}

#notif-btn {
  background: #33334a;
  color: var(--text);
  border: none;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 12px;
  cursor: pointer;
}
#notif-btn:active { opacity: 0.8; }

main { padding: 10px; }

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border-radius: 10px;
  overflow: hidden;
}

thead th {
  background: var(--header);
  text-align: left;
  padding: 10px 12px;
  font-size: 12px;
  letter-spacing: 0.03em;
  color: var(--text);
}

tbody tr:nth-child(odd)  { background: var(--row-a); }
tbody tr:nth-child(even) { background: var(--row-b); }

tbody td {
  padding: 9px 12px;
  font-size: 13px;
  white-space: nowrap;
}

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 6px;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}

#empty-msg {
  color: var(--muted);
  font-size: 13px;
  padding: 20px 8px;
  text-align: center;
}
