:root {
  --bg: #0A0910;
  --bg-glow: #1A0E2E;
  --surface: #150F1F;
  --surface-strong: #1B1327;
  --purple: #8A2BE2;
  --purple-bright: #B366FF;
  --text-main: #F4EEFB;
  --text-muted: #A99BC2;
  --border-soft: rgba(179, 102, 255, 0.28);
  --border-strong: rgba(179, 102, 255, 0.55);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text-main);
  background: var(--bg);
  min-height: 100vh;
}

.login-body {
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-form {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  padding: 32px;
  width: 280px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.login-form h1 { font-size: 20px; margin: 0 0 8px; }

input {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border-soft);
  background: var(--surface-strong);
  color: var(--text-main);
  font-size: 15px;
}

button {
  padding: 10px 18px;
  border-radius: 999px;
  border: none;
  font-weight: 700;
  cursor: pointer;
  background: linear-gradient(135deg, var(--purple-bright), var(--purple));
  color: #fff;
}

button.logout {
  background: var(--surface-strong);
  border: 1px solid var(--border-soft);
}

.error { color: #FF8080; font-size: 13px; margin: 0; }

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  border-bottom: 1px solid var(--border-soft);
}

header h1 { font-size: 20px; margin: 0; }

nav {
  display: flex;
  gap: 8px;
  padding: 16px 28px 0;
}

nav button {
  background: var(--surface-strong);
  color: var(--text-muted);
  font-weight: 600;
  text-transform: capitalize;
}

nav button.active {
  background: linear-gradient(135deg, var(--purple-bright), var(--purple));
  color: #fff;
}

main { padding: 20px 28px 40px; max-width: 640px; }

#actionList { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-direction: column; gap: 8px; }

#actionList li {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 10px 14px;
}

#actionList li span {
  flex: 1;
  outline: none;
}

#actionList li button {
  background: var(--surface-strong);
  font-weight: 600;
  padding: 6px 10px;
  font-size: 13px;
}

#addForm { display: flex; gap: 10px; }
#addForm input { flex: 1; }
