@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  --bg: #f4f1ec;
  --bg-2: #fdf9f2;
  --card: #ffffff;
  --ink: #1b1a17;
  --muted: #58544b;
  --primary: #0b6e4f;
  --primary-2: #0e8f66;
  --accent: #f2b134;
  --danger: #b13636;
  --border: #e1d9cd;
  --shadow: 0 18px 45px rgba(21, 16, 5, 0.08);
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at 20% 20%, #fffaf0 0%, #f6efe5 35%, #ece3d6 100%);
  min-height: 100vh;
}

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

a:hover {
  color: var(--primary);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: linear-gradient(120deg, #0f3d2e 0%, #0b6e4f 55%, #0f3d2e 100%);
  color: #fff;
  padding: 16px 24px;
  box-shadow: 0 12px 24px rgba(9, 35, 25, 0.2);
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 10px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent);
  color: #1c1402;
  display: grid;
  place-items: center;
  font-weight: 700;
  letter-spacing: 1px;
}

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

.brand-sub {
  font-size: 12px;
  opacity: 0.8;
}

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

.topnav a {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 14px;
  transition: all 0.2s ease;
}

.topnav a.active,
.topnav a:hover {
  background: #fff;
  color: #0b3d2a;
}

.container {
  max-width: 1200px;
  margin: 24px auto 56px;
  padding: 0 20px;
}

.section-title {
  font-size: 22px;
  margin: 20px 0 12px;
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

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

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.table th,
.table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-size: 14px;
}

.table th {
  background: #f3efe8;
  color: var(--muted);
  font-weight: 600;
}

.table tr:hover td {
  background: #faf6ef;
}

.badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  background: #edf7f2;
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
}

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

.form label {
  font-size: 13px;
  color: var(--muted);
}

.form input,
.form select,
.form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  background: #fff;
}

.form textarea {
  min-height: 90px;
  resize: vertical;
}

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

.button {
  border: none;
  background: var(--primary);
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.button.secondary {
  background: #fff;
  color: var(--primary);
  border: 1px solid var(--primary);
}

.button.ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
}

.button.danger {
  background: var(--danger);
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(11, 110, 79, 0.2);
}

.flash {
  padding: 10px 14px;
  border-radius: 12px;
  margin-bottom: 12px;
  font-size: 14px;
}

.flash.success {
  background: #e9f6ef;
  color: #0b6e4f;
}

.flash.error {
  background: #fdeaea;
  color: #b13636;
}

.flash.info {
  background: #f7f1e3;
  color: #6a4b1f;
}

.mono {
  font-family: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
}

.calendar {
  display: grid;
  grid-template-columns: 140px repeat(7, 1fr);
  gap: 1px;
  background: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.calendar .cell {
  background: #fff;
  min-height: 70px;
  padding: 8px;
  font-size: 12px;
}

.calendar .head {
  background: #0b6e4f;
  color: #fff;
  font-weight: 600;
}

.calendar .time {
  background: #f4efe6;
  font-weight: 600;
}

.meeting {
  background: #eff7f2;
  border-left: 3px solid #0b6e4f;
  padding: 6px 8px;
  border-radius: 8px;
  margin-bottom: 6px;
}

.footer {
  text-align: center;
  padding: 20px 10px 40px;
  color: var(--muted);
}

@media (max-width: 980px) {
  .topnav {
    gap: 6px;
  }

  .calendar {
    grid-template-columns: 110px repeat(7, 1fr);
  }
}

@media (max-width: 768px) {
  .topbar {
    position: static;
  }

  .topnav {
    overflow-x: auto;
    padding-bottom: 6px;
  }

  .calendar {
    grid-template-columns: 90px repeat(7, 1fr);
  }
}
