:root {
  --bg: #f3f8fb;
  --surface: #ffffff;
  --line: #dbe8ef;
  --text: #0f172a;
  --muted: #56748a;
  --primary: #0e7490;
  --primary-strong: #0b5f75;
  --danger: #b91c1c;
  --radius: 12px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background:
    radial-gradient(circle at top right, #d0f2ff, transparent 40%),
    radial-gradient(circle at bottom left, #d7e8ff, transparent 35%),
    var(--bg);
  color: var(--text);
}

.app-shell {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
  margin-bottom: 14px;
}

h1,
h3,
p {
  margin: 0 0 10px;
}

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

.hidden {
  display: none !important;
}

.grid-form {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

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

label {
  font-size: 14px;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

input,
select,
textarea,
button {
  font: inherit;
}

input,
select,
textarea {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  background: #fff;
}

button {
  border: none;
  border-radius: 10px;
  background: var(--primary);
  color: white;
  padding: 10px 14px;
  cursor: pointer;
}

button:hover {
  background: var(--primary-strong);
}

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

.danger {
  background: #fff;
  color: var(--danger);
  border: 1px solid #f5cdcd;
}

.button-row {
  display: flex;
  gap: 10px;
  grid-column: 1 / -1;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.tab {
  background: #e8f3f7;
  color: #0c4a5f;
}

.tab.active {
  background: var(--primary);
  color: white;
}

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

.stat {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 12px;
}

.stat p {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
}

.list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.list li {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  display: grid;
  gap: 8px;
}

.list .row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
}

.day-col {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f7fcff;
  padding: 8px;
}

.day-col h4 {
  margin: 4px 0 8px;
  font-size: 14px;
}

.slot {
  margin-bottom: 6px;
  border: 1px solid #d1e9f2;
  background: white;
  border-radius: 8px;
  padding: 6px;
  font-size: 13px;
}

code {
  display: inline;
  background: #e8f3f7;
  border: 1px solid #d0e5ee;
  border-radius: 6px;
  padding: 2px 6px;
}

@media (max-width: 700px) {
  .app-shell {
    padding: 12px;
  }
}
