@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@300;400;600&display=swap');

:root {
  --bg: #f6f1e9;
  --card: #fffaf2;
  --text: #1f1b16;
  --muted: #6b5f52;
  --accent: #c35a2a;
  --accent-dark: #a8471f;
  --border: #e4d8c8;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'IBM Plex Sans', sans-serif;
  background: radial-gradient(circle at top left, #fbe9d7, #f6f1e9 45%, #efe6dc 100%);
  color: var(--text);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 250, 242, 0.9);
  backdrop-filter: blur(6px);
}

.brand { font-weight: 600; font-size: 18px; }

.nav a {
  margin-right: 12px;
  color: var(--text);
  text-decoration: none;
}

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

.logout-form { display: inline; }

.container {
  max-width: 980px;
  margin: 24px auto;
  padding: 0 16px 48px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 18px;
  box-shadow: 0 10px 24px rgba(43, 33, 19, 0.08);
}

.form label { display: block; margin: 10px 0 6px; color: var(--muted); }

input, textarea, button {
  font-family: inherit;
  font-size: 14px;
}

input, textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
}

textarea { resize: vertical; }

.btn, button {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s ease;
}

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

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.grid .full { grid-column: 1 / -1; }

.muted { color: var(--muted); }

.alert {
  padding: 10px 12px;
  border-radius: 10px;
  margin-bottom: 12px;
}

.alert.error { background: #ffe2df; border: 1px solid #f2b1ac; }
.alert.success { background: #e3f7e7; border: 1px solid #b7e2c1; }

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.table th, .table td {
  border-bottom: 1px solid var(--border);
  padding: 8px;
  text-align: left;
}

.inline-form {
  display: flex;
  gap: 8px;
}

.auth .card { max-width: 420px; margin: 80px auto; }

@media (max-width: 720px) {
  .grid { grid-template-columns: 1fr; }
  .nav { display: flex; flex-wrap: wrap; gap: 8px; }
}
