* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: #FFF8E7;
  color: #3a2e1f;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
header {
  background: #5c4033;
  color: #FFF8E7;
  padding: 0.8rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.header-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-size: 1.5rem;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.5px;
}
.paw { font-size: 1.3rem; }

/* Buttons */
.btn {
  border: none;
  border-radius: 6px;
  padding: 0.55rem 1.2rem;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 500;
}
.btn-outline {
  background: transparent;
  border: 1.5px solid #FFF8E7;
  color: #FFF8E7;
}
.btn-outline:hover { background: rgba(255,248,231,0.15); }
.btn-primary {
  background: #5c4033;
  color: #FFF8E7;
}
.btn-primary:hover { background: #7a5a48; }
.btn-sm {
  padding: 0.35rem 0.8rem;
  font-size: 0.82rem;
  background: #e8dcc8;
  color: #3a2e1f;
}
.btn-sm:hover { background: #d4c4a8; }
.btn-accept {
  background: #4a7c59;
  color: white;
  padding: 0.3rem 0.8rem;
  font-size: 0.8rem;
}
.btn-accept:hover { background: #3d6a4a; }
.btn-reject {
  background: #a04040;
  color: white;
  padding: 0.3rem 0.8rem;
  font-size: 0.8rem;
}
.btn-reject:hover { background: #8a3030; }

/* Hero */
.hero {
  position: relative;
  max-height: 320px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  filter: brightness(0.7);
}
.hero-text {
  position: absolute;
  text-align: center;
  color: #FFF8E7;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}
.hero-text h1 { font-size: 2.2rem; margin-bottom: 0.3rem; }
.hero-text p { font-size: 1.1rem; opacity: 0.95; }

/* Main */
main {
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  flex: 1;
}
h2 { font-size: 1.6rem; margin-bottom: 0.3rem; color: #5c4033; }
h3 { font-size: 1.15rem; margin-bottom: 0.5rem; color: #5c4033; }
.subtitle { color: #7a6a58; margin-bottom: 1.2rem; }

/* Calendar */
.calendar-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.week-label { font-weight: 600; font-size: 1rem; }
.week-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.day-card {
  background: white;
  border: 2px solid #e8dcc8;
  border-radius: 10px;
  padding: 0.8rem 0.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}
.day-card:hover { border-color: #5c4033; transform: translateY(-2px); }
.day-card.selected { border-color: #5c4033; background: #f5ead6; }
.day-card.today { border-color: #b8860b; }
.day-card .day-name { font-size: 0.75rem; color: #7a6a58; text-transform: uppercase; }
.day-card .day-num { font-size: 1.4rem; font-weight: 700; margin: 0.2rem 0; }
.day-card .day-month { font-size: 0.72rem; color: #999; }

/* Slots */
.slot-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.slot-btn {
  padding: 0.5rem 1rem;
  border: 2px solid #5c4033;
  background: white;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s;
  color: #5c4033;
}
.slot-btn:hover { background: #5c4033; color: white; }
.slot-btn.taken {
  border-color: #ccc;
  color: #aaa;
  cursor: not-allowed;
  text-decoration: line-through;
}
.slot-btn.taken:hover { background: white; color: #aaa; }

/* Modal */
.modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
}
.modal-content {
  background: #FFF8E7;
  border-radius: 12px;
  padding: 2rem;
  max-width: 420px;
  width: 90%;
  position: relative;
}
.close {
  position: absolute;
  top: 0.8rem;
  right: 1rem;
  font-size: 1.5rem;
  cursor: pointer;
  color: #999;
}
.close:hover { color: #333; }

/* Forms */
form label {
  display: block;
  margin-bottom: 0.8rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: #5c4033;
}
form input, form textarea, form select {
  display: block;
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.5rem 0.7rem;
  border: 1.5px solid #d4c4a8;
  border-radius: 6px;
  font-size: 0.9rem;
  background: white;
  font-family: inherit;
}
form input:focus, form textarea:focus, form select:focus {
  outline: none;
  border-color: #5c4033;
}
.error { color: #a04040; font-size: 0.85rem; margin: 0.5rem 0; }
.success { color: #4a7c59; font-size: 0.85rem; margin: 0.5rem 0; }

/* Login */
.login-box {
  max-width: 340px;
  margin: 2rem auto;
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

/* Tabs */
.tabs {
  display: flex;
  gap: 0;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid #e8dcc8;
}
.tab {
  padding: 0.6rem 1.2rem;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  color: #7a6a58;
  transition: all 0.2s;
}
.tab:hover { color: #5c4033; }
.tab.active { color: #5c4033; border-bottom-color: #5c4033; }

/* Availability Editor */
.avail-day {
  background: white;
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 0.8rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.avail-day-header {
  font-weight: 600;
  font-size: 1rem;
  color: #5c4033;
  margin-bottom: 0.5rem;
  text-transform: capitalize;
}
.avail-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.avail-slot {
  padding: 0.3rem 0.7rem;
  border: 1.5px solid #d4c4a8;
  border-radius: 6px;
  background: white;
  cursor: pointer;
  font-size: 0.82rem;
  transition: all 0.15s;
}
.avail-slot:hover { border-color: #5c4033; }
.avail-slot.active {
  background: #5c4033;
  color: #FFF8E7;
  border-color: #5c4033;
}

/* Bookings List */
.filter-row {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.filter-active { background: #5c4033 !important; color: #FFF8E7 !important; }
.booking-card {
  background: white;
  border-radius: 10px;
  padding: 1rem 1.2rem;
  margin-bottom: 0.6rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.booking-info { flex: 1; min-width: 200px; }
.booking-info strong { color: #5c4033; }
.booking-info .detail { font-size: 0.85rem; color: #7a6a58; margin-top: 0.2rem; }
.booking-actions { display: flex; gap: 0.4rem; flex-shrink: 0; }
.badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}
.badge-pending { background: #f0d080; color: #6a5020; }
.badge-accepted { background: #a8d5a0; color: #2a5a2a; }
.badge-rejected { background: #e0a0a0; color: #6a2020; }

/* Footer */
footer {
  text-align: center;
  padding: 1.5rem;
  color: #999;
  font-size: 0.82rem;
}

/* Responsive */
@media (max-width: 700px) {
  .week-grid { grid-template-columns: repeat(7, 1fr); gap: 0.25rem; }
  .day-card { padding: 0.5rem 0.2rem; }
  .day-card .day-num { font-size: 1.1rem; }
  .hero-text h1 { font-size: 1.5rem; }
  main { padding: 1.5rem 1rem; }
}

/* Empty state */
.empty {
  text-align: center;
  padding: 2rem;
  color: #999;
  font-style: italic;
}
