:root {
  --bg: #0f172a;
  --card: #111827;
  --accent: #22d3ee;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --border: #1f2937;
  --shadow: 0 8px 30px rgba(0,0,0,0.3);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: radial-gradient(circle at 20% 20%, rgba(34,211,238,0.08), transparent 30%), var(--bg);
  color: var(--text);
}
.page {
  max-width: 900px;
  margin: 0 auto;
  padding: 24px;
}
.hidden { display: none !important; }
.center-card {
  max-width: 420px;
  margin: 80px auto;
  text-align: center;
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
h1 {
  margin: 0;
  font-size: 24px;
  letter-spacing: 0.5px;
}
h2 {
  margin-top: 0;
  font-size: 18px;
}
.status {
  padding: 6px 12px;
  border-radius: 999px;
  background: #1e293b;
  color: var(--muted);
  font-size: 14px;
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
form {
  display: grid;
  gap: 10px;
}
label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  color: var(--muted);
}
input {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #0b1224;
  color: var(--text);
}
button {
  padding: 10px 14px;
  border-radius: 8px;
  border: none;
  background: linear-gradient(120deg, #22d3ee, #06b6d4);
  color: #0b1224;
  font-weight: 600;
  cursor: pointer;
}
button:hover { filter: brightness(1.05); }
button.ghost {
  background: #1f2937;
  color: var(--text);
}
.list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.list.empty {
  color: var(--muted);
}
.list-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #0b1224;
}
.title {
  font-weight: 600;
}
.muted {
  color: var(--muted);
  font-size: 13px;
}
.actions {
  display: flex;
  gap: 8px;
}
.inline {
  flex-direction: row;
  align-items: center;
}
.inline-form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.inline-form input, .inline-form button {
  margin: 0;
}
textarea {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #0b1224;
  color: var(--text);
  resize: vertical;
}
a.link {
  color: var(--accent);
  text-decoration: none;
}
a.link:hover {
  text-decoration: underline;
}
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 20;
}
.modal-content {
  background: var(--card);
  padding: 20px;
  border-radius: 12px;
  border: 1px solid var(--border);
  min-width: 260px;
  box-shadow: var(--shadow);
  text-align: center;
}
.modal.hidden {
  display: none;
}
@media (max-width: 640px) {
  .list-item { flex-direction: column; align-items: flex-start; gap: 8px; }
  header { flex-direction: column; align-items: flex-start; gap: 8px; }
  .actions { width: 100%; flex-wrap: wrap; }
}
select {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #0b1224;
  color: var(--text);
}
select option {
  background: #0b1224;
  color: var(--text);
}
.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 24px;
}
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #374151;
  transition: .2s;
  border-radius: 34px;
}
.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .2s;
  border-radius: 50%;
}
.switch input:checked + .slider {
  background: linear-gradient(120deg, #22d3ee, #06b6d4);
}
.switch input:checked + .slider:before {
  transform: translateX(24px);
}
