/* =============================================
   Loubie Lou's Dog Grooming Parlour
   Dusty Rose & White Theme
   ============================================= */

:root {
  --teal-50: #fdf8fb;
  --teal-100: #f8f0f5;
  --teal-200: #eedde8;
  --teal-300: #e1c5d6;
  --teal-400: #cfa4c0;
  --teal-500: #b87fa8;
  --teal-600: #9e5f8e;
  --teal-700: #824c74;
  --teal-800: #673b5c;
  --teal-900: #4f2c47;
  --amber: #f59e0b;
  --amber-dark: #d97706;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --red: #ef4444;
  --green: #22c55e;
  --white: #ffffff;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.05);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--slate-800);
  background: var(--white);
  line-height: 1.6;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5 { font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.3rem; }
p { color: var(--slate-600); }

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}
.section-title h2 { color: var(--slate-800); margin-bottom: 0.75rem; }
.section-title p { font-size: 1.1rem; max-width: 600px; margin: 0 auto; }
.accent { color: var(--teal-600); }

/* ===== LAYOUT ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
section { padding: 5rem 0; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--slate-200);
  transition: var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--teal-700);
}
.nav-logo .paw { font-size: 1.4rem; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}
.nav-links a {
  text-decoration: none;
  color: var(--slate-700);
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  font-size: 0.95rem;
}
.nav-links a:hover { color: var(--teal-600); background: var(--teal-50); }
.nav-links a.active { color: var(--teal-700); }

.nav-actions { display: flex; align-items: center; gap: 0.75rem; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--slate-700);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  border: 2px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
}
.btn:disabled { opacity: 0.6; cursor: not-allowed; }

.btn-primary {
  background: var(--teal-600);
  color: white;
  border-color: var(--teal-600);
}
.btn-primary:hover:not(:disabled) { background: var(--teal-700); border-color: var(--teal-700); transform: translateY(-1px); box-shadow: var(--shadow); }

.btn-secondary {
  background: white;
  color: var(--teal-700);
  border-color: var(--teal-300);
}
.btn-secondary:hover:not(:disabled) { background: var(--teal-50); border-color: var(--teal-500); }

.btn-amber {
  background: var(--amber);
  color: white;
  border-color: var(--amber);
}
.btn-amber:hover:not(:disabled) { background: var(--amber-dark); border-color: var(--amber-dark); transform: translateY(-1px); box-shadow: var(--shadow); }

.btn-danger { background: var(--red); color: white; border-color: var(--red); }
.btn-danger:hover:not(:disabled) { opacity: 0.9; }

.btn-outline {
  background: transparent;
  color: var(--slate-700);
  border-color: var(--slate-200);
}
.btn-outline:hover:not(:disabled) { background: var(--slate-100); }

.btn-sm { padding: 0.5rem 1rem; font-size: 0.85rem; }
.btn-lg { padding: 1rem 2rem; font-size: 1.05rem; }
.btn-full { width: 100%; }

.btn-loading { pointer-events: none; opacity: 0.7; }

/* ===== CARDS ===== */
.card {
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--slate-200);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.card:hover { box-shadow: var(--shadow); }

/* ===== FORMS ===== */
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  color: var(--slate-700);
}
.form-group label .required { color: var(--red); margin-left: 2px; }

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  color: var(--slate-800);
  background: white;
  transition: var(--transition);
  -webkit-appearance: none;
  appearance: none;
}
.form-control:focus {
  outline: none;
  border-color: var(--teal-400);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.12);
}
.form-control.error { border-color: var(--red); }
.form-hint { font-size: 0.8rem; color: var(--slate-600); margin-top: 0.25rem; }
.form-error { font-size: 0.82rem; color: var(--red); margin-top: 0.25rem; display: none; }
.form-error.show { display: block; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

/* ===== ALERTS ===== */
.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.alert-success { background: #dcfce7; color: #166534; border: 1px solid #86efac; }
.alert-error { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }
.alert-info { background: var(--teal-50); color: var(--teal-800); border: 1px solid var(--teal-200); }
.alert-warning { background: #fef9c3; color: #713f12; border: 1px solid #fde047; }

/* ===== BADGES ===== */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 99px;
  font-size: 0.78rem;
  font-weight: 600;
}
.badge-pending { background: #fef9c3; color: #713f12; }
.badge-confirmed { background: #dcfce7; color: #166534; }
.badge-completed { background: var(--teal-100); color: var(--teal-800); }
.badge-cancelled { background: #fee2e2; color: #991b1b; }
.badge-no_show { background: var(--slate-100); color: var(--slate-600); }
.badge-unpaid { background: #fee2e2; color: #991b1b; }
.badge-deposit_paid { background: #fef9c3; color: #713f12; }
.badge-paid { background: #dcfce7; color: #166534; }

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }

.modal {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2rem;
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.95) translateY(10px);
  transition: transform 0.2s;
  box-shadow: var(--shadow-xl);
}
.modal-overlay.open .modal { transform: scale(1) translateY(0); }
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.modal-header h3 { font-size: 1.2rem; }
.modal-close { background: none; border: none; cursor: pointer; font-size: 1.4rem; color: var(--slate-600); line-height: 1; padding: 0.25rem; }
.modal-close:hover { color: var(--slate-800); }

/* ===== LOADING SPINNER ===== */
.spinner {
  display: inline-block;
  width: 20px; height: 20px;
  border: 2.5px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.spinner-teal {
  border: 2.5px solid var(--teal-200);
  border-top-color: var(--teal-600);
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== STARS ===== */
.stars { color: #f59e0b; letter-spacing: 2px; }
.star-input { display: flex; gap: 0.25rem; }
.star-input button { background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--slate-200); transition: var(--transition); }
.star-input button.active, .star-input button:hover { color: var(--amber); }

/* ===== TABS ===== */
.tabs { display: flex; border-bottom: 2px solid var(--slate-200); margin-bottom: 2rem; gap: 0.25rem; overflow-x: auto; }
.tab {
  padding: 0.75rem 1.25rem;
  border: none;
  background: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--slate-600);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: var(--transition);
  white-space: nowrap;
}
.tab.active { color: var(--teal-600); border-bottom-color: var(--teal-600); }
.tab:hover:not(.active) { color: var(--slate-800); background: var(--slate-50); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ===== PAGE HEADER ===== */
.page-header {
  background: linear-gradient(135deg, var(--teal-700) 0%, var(--teal-600) 100%);
  padding: 7rem 0 3rem;
  color: white;
}
.page-header h1 { color: white; margin-bottom: 0.5rem; }
.page-header p { color: rgba(255,255,255,0.8); }

/* ===== EMPTY STATE ===== */
.empty-state {
  text-align: center;
  padding: 3rem;
  color: var(--slate-600);
}
.empty-state .empty-icon { font-size: 3rem; margin-bottom: 1rem; }
.empty-state h3 { color: var(--slate-800); margin-bottom: 0.5rem; }

/* ===== FOOTER ===== */
.footer {
  background: var(--slate-800);
  color: rgba(255,255,255,0.7);
  padding: 3rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
}
.footer-logo { font-weight: 800; font-size: 1.2rem; color: white; display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.75rem; }
.footer h4 { color: white; font-size: 0.9rem; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 0.08em; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 0.5rem; }
.footer ul li a { color: rgba(255,255,255,0.65); text-decoration: none; font-size: 0.9rem; transition: var(--transition); }
.footer ul li a:hover { color: white; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1.5rem; text-align: center; font-size: 0.85rem; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-links {
    display: none;
    position: fixed;
    top: 65px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid var(--slate-200);
    box-shadow: var(--shadow);
    align-items: stretch;
    gap: 0.25rem;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.75rem 1rem; }
  .nav-actions .btn { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  section { padding: 3rem 0; }
}

@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .modal { padding: 1.5rem; }
}

/* ===== UTILITIES ===== */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.hidden { display: none !important; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 1rem; }
.text-sm { font-size: 0.875rem; }
.text-muted { color: var(--slate-600); }
.font-bold { font-weight: 700; }
.text-teal { color: var(--teal-600); }
.text-red { color: var(--red); }
.text-green { color: var(--green); }
.w-full { width: 100%; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}
@media (max-width: 1024px) and (min-width: 769px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

/* ===== PAGE TRANSITION ===== */
.fade-in { animation: fadeIn 0.4s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
