﻿:root {
  --bg: #ece5d9;
  --card: #ffffff;
  --text: #1b2324;
  --muted: #5d5145;
  --primary: #8a4e2b;
  --primary-dark: #6a3b20;
  --accent: #c77b3f;
  --danger: #dc2626;
  --success: #16a34a;
  --shadow: 0 10px 35px rgba(25, 15, 8, 0.14);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Outfit', sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 16% 20%, #f4d9b5 0%, transparent 34%),
              radial-gradient(circle at 88% 10%, #c98b58 0%, transparent 30%),
              radial-gradient(circle at 44% 90%, #d9c7ad 0%, transparent 33%),
              var(--bg);
  min-height: 100vh;
}

.bg-shape {
  position: fixed;
  z-index: 0;
  border-radius: 999px;
  filter: blur(40px);
  opacity: 0.3;
}

.bg-shape-a {
  width: 220px;
  height: 220px;
  background: #c87a40;
  top: -30px;
  right: 10%;
}

.bg-shape-b {
  width: 240px;
  height: 240px;
  background: #2f4f52;
  bottom: -60px;
  left: 8%;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 18px 56px;
  position: relative;
  z-index: 1;
}

.hero {
  margin-bottom: 20px;
}

.hero h1 {
  margin: 0;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.hero p {
  margin-top: 8px;
  color: var(--muted);
}

.hero-banner {
  width: 100%;
  max-width: 900px;
  border-radius: 20px;
  margin-top: 14px;
  box-shadow: 0 12px 30px rgba(16, 21, 22, 0.28);
  border: 1px solid rgba(237, 226, 207, 0.45);
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  margin-bottom: 16px;
}

.auth-card {
  max-width: 980px;
}

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

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

label {
  display: grid;
  gap: 8px;
  font-size: 0.95rem;
  color: var(--muted);
}

input,
select,
button,
.btn-link {
  font: inherit;
  border-radius: 10px;
}

input,
select {
  border: 1px solid #d0d5dd;
  padding: 10px 12px;
  background: #fff;
}

button,
.btn-link {
  border: none;
  padding: 11px 14px;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: transform 0.15s ease, background 0.15s ease;
}

button:hover,
.btn-link:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

button.secondary {
  background: #334155;
}

button.secondary:hover {
  background: #1e293b;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.toolbar h2 {
  margin: 0;
}

.toolbar p {
  margin: 4px 0 0;
  color: var(--muted);
}

.toolbar-actions {
  display: flex;
  gap: 10px;
}

.hint {
  margin-top: 0;
  color: var(--muted);
}

.service-picker {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 12px;
}

.service-picker label {
  min-width: 280px;
}

.draft-box {
  border: 1px solid #e4e7ec;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 12px;
  background: #f8fafc;
}

.draft-box .booking-meta {
  margin: 0 0 10px;
}

.draft-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.draft-actions button {
  min-width: 130px;
}

button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

button:disabled:hover {
  background: var(--primary);
  transform: none;
}

button.secondary:disabled:hover {
  background: #334155;
}

.message {
  min-height: 22px;
  font-weight: 600;
}

.message.error {
  color: var(--danger);
}

.message.success {
  color: var(--success);
}

.hidden {
  display: none;
}

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

.booking-list li {
  border: 1px solid #e4e7ec;
  border-radius: 12px;
  padding: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.booking-meta {
  font-size: 0.92rem;
  color: var(--muted);
}

.pill {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
}

.pill.pending {
  background: #fff7e6;
  color: #b45309;
}

.pill.accepted {
  background: #ecfdf3;
  color: #166534;
}

.pill.rejected {
  background: #fee2e2;
  color: #991b1b;
}

.actions {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.actions button {
  padding: 8px 11px;
}

.duration-edit {
  font-size: 0.85rem;
}

.duration-edit input {
  width: 98px;
  padding: 7px 8px;
}

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

.actions .danger:hover {
  background: #991b1b;
}

.block-form {
  align-items: end;
}

.block-form label {
  min-width: 260px;
}

.block-remove-btn {
  margin-left: 8px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: none;
  background: #b91c1c;
  color: #fff;
  font-size: 11px;
  line-height: 18px;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.block-remove-btn:hover {
  background: #7f1d1d;
  transform: none;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
}

.check-row input {
  width: 18px;
  height: 18px;
  margin: 0;
}

@media (max-width: 720px) {
  .container {
    padding: 24px 12px 36px;
  }

  .card {
    padding: 14px;
  }

  .toolbar-actions {
    width: 100%;
  }

  .toolbar-actions button,
  .toolbar-actions .btn-link {
    flex: 1;
  }
}
