:root {
  --bg: #1a1a1a;
  --surface: #252525;
  --text: #e8e8e8;
  --muted: #a0a0a0;
  --accent: #4caf50;
  --accent-hover: #45a049;
  --danger: #d32f2f;
  --border: #3a3a3a;
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

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

.top-nav {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 1.5rem;
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.top-nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
}

.top-nav a:hover {
  color: var(--accent);
}

.top-nav a.logout {
  margin-left: auto;
  color: var(--muted);
}

main {
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 1.5rem;
}

h1, h2, h3 {
  color: var(--text);
  line-height: 1.3;
}

h1 {
  margin-top: 0;
}

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

a:hover {
  text-decoration: underline;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
}

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

th {
  background: var(--surface);
}

label {
  display: block;
  margin: 1rem 0 0.3rem;
  color: var(--muted);
}

input[type="number"],
input[type="password"],
input[type="text"] {
  width: 100%;
  padding: 0.65rem 0.8rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 1rem;
}

input:focus {
  outline: none;
  border-color: var(--accent);
}

button, .submit-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 0.65rem 1.2rem;
  border-radius: var(--radius);
  font-size: 1rem;
  cursor: pointer;
}

button:hover, .submit-btn:hover {
  background: var(--accent-hover);
}

.toggle-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  white-space: nowrap;
}

.toggle-btn:hover {
  background: var(--border);
}

.password-row {
  display: flex;
  gap: 0.5rem;
}

.password-row input {
  flex: 1;
}

.login-box {
  max-width: 360px;
  margin: 10vh auto;
  background: var(--surface);
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.login-box h1 {
  margin-bottom: 0.25rem;
}

.login-box .subtitle {
  color: var(--muted);
  margin-top: 0;
  margin-bottom: 1.5rem;
}

.error {
  color: var(--danger);
  background: rgba(211, 47, 47, 0.1);
  padding: 0.75rem;
  border-radius: var(--radius);
  border: 1px solid rgba(211, 47, 47, 0.3);
}

.note {
  background: var(--surface);
  border-left: 4px solid var(--accent);
  padding: 1rem;
  margin: 1.5rem 0;
  border-radius: var(--radius);
}

.note.warning {
  border-left-color: #ff9800;
}

ul li {
  margin: 0.4rem 0;
}

.recipe-content h1 {
  font-size: 1.9rem;
}

.recipe-content h2 {
  margin-top: 2rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.3rem;
}

.recipe-content code {
  background: var(--surface);
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
}

.recipe-content blockquote {
  border-left: 4px solid var(--accent);
  margin: 1rem 0;
  padding-left: 1rem;
  color: var(--muted);
}
