:root {
  --ink: #1d1b16;
  --paper: #f7f1e7;
  --accent: #e06b2d;
  --accent-2: #2a7f62;
  --muted: #6b6358;
  --card: #fffaf2;
  --stroke: rgba(29, 27, 22, 0.12);
  --shadow: 0 24px 60px rgba(29, 27, 22, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Space Grotesk', sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at 10% 20%, #f0e7d6 0%, transparent 45%),
              radial-gradient(circle at 90% 10%, #fbe6d4 0%, transparent 50%),
              linear-gradient(120deg, #f7f1e7 0%, #f6efe2 100%);
  min-height: 100vh;
}

h1, h2, h3 {
  font-family: 'Newsreader', serif;
  margin: 0 0 12px 0;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1100px, 92vw);
  margin: 32px auto 64px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 5vw;
  border-bottom: 1px solid var(--stroke);
  background: rgba(247, 241, 231, 0.88);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: transparent;
  color: #111;
  font-weight: 600;
  box-shadow: 0 10px 22px rgba(29, 27, 22, 0.12);
  overflow: hidden;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent;
}

.brand-title {
  font-weight: 600;
}

.brand-sub {
  color: var(--muted);
  font-size: 12px;
}

.nav-actions {
  display: flex;
  gap: 14px;
  align-items: center;
}

.nav-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-time {
  font-size: 12px;
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.6);
  text-align: center;
  white-space: pre-line;
  line-height: 1.35;
}

.nav-link {
  font-size: 14px;
  color: var(--muted);
}

.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.card {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  animation: rise 0.5s ease;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.form {
  display: grid;
  gap: 16px;
}

.form label {
  display: grid;
  gap: 8px;
  font-size: 14px;
}

input, select, button {
  font-family: inherit;
}

input, select {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: #fffdf8;
}

.btn {
  padding: 10px 16px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  font-weight: 600;
}

.btn.primary {
  background: var(--accent);
  color: #fff;
}

.btn.ghost {
  background: transparent;
  border: 1px solid var(--stroke);
}

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

.alert.error {
  background: #ffe3dc;
  color: #7b2010;
}

.alert.success {
  background: #e4f5eb;
  color: #1d5b3a;
}

.grid-two {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.list {
  display: grid;
  gap: 12px;
}

.list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fffdf8;
  border: 1px solid var(--stroke);
}

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

.status-table th, .status-table td {
  border: 1px solid var(--stroke);
  padding: 10px;
  text-align: center;
}

.room-name {
  text-align: left;
  font-weight: 600;
}

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  background: #f5d8c7;
  color: #7b2010;
}

.badge.outline {
  background: #e9f1ec;
  color: #205a41;
}

.free {
  background: #f7fbf8;
}

.booked {
  background: #fff2ea;
}

.table-scroll {
  overflow-x: auto;
}

.inline-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tab {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  font-size: 13px;
  color: var(--muted);
}

.tab.active {
  background: var(--accent-2);
  color: #fff;
  border-color: transparent;
}

.note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.stat {
  padding: 16px;
  border-radius: 16px;
  background: #fffdf8;
  border: 1px solid var(--stroke);
}

.stat-title {
  font-size: 14px;
  color: var(--muted);
}

.stat-value {
  font-size: 20px;
  font-weight: 600;
}

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

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

.divider {
  grid-column: 1 / -1;
  border-top: 1px dashed var(--stroke);
  margin: 10px 0;
}

.auth {
  display: grid;
  place-items: center;
}

.auth-card {
  width: min(420px, 92vw);
}

.footer {
  text-align: center;
  padding: 24px 0 40px;
  color: var(--muted);
  font-size: 12px;
}

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

@media (max-width: 720px) {
  .page-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .topbar {
    flex-direction: column;
    gap: 12px;
  }
  .nav-center {
    position: static;
    transform: none;
  }
}
