/* ═══════════════════════════════════════════════════════════════
   PetDB – Global Stylesheet
   Aesthetic: Warm luxury pet salon — crème, rosé, goud, zacht groen
   Fonts: Cormorant Garamond (display) + Nunito (body)
════════════════════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Nunito:wght@300;400;500;600;700&display=swap');

/* ── Design tokens ──────────────────────────────────────────── */
:root {
  --cream:      #fdf8f3;
  --white:      #ffffff;
  --blush:      #f5e6df;
  --blush-dk:   #e8c9bc;
  --rose:       #c9836a;
  --rose-dk:    #a86650;
  --gold:       #c9a96e;
  --gold-lt:    #f0e4cc;
  --sage:       #7a9e7e;
  --sage-lt:    #e8f0e9;
  --text:       #2d1f17;
  --text-mid:   #6b4f3a;
  --text-muted: #9c7e6a;
  --border:     #e5d5c8;
  --border-lt:  #f0e8e0;
  --shadow-sm:  0 2px 8px rgba(45,31,23,.07);
  --shadow:     0 4px 20px rgba(45,31,23,.10);
  --shadow-lg:  0 10px 40px rgba(45,31,23,.14);
  --radius:     12px;
  --radius-sm:  7px;
  --radius-lg:  20px;
  --transition: .22s ease;
}

/* ── Reset ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Nunito', sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
}
img { max-width: 100%; height: auto; display: block; }
a   { color: var(--rose); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--rose-dk); }

/* ── Typography ─────────────────────────────────────────────── */
h1,h2,h3,h4,h5 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  line-height: 1.2;
  color: var(--text);
}
h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 600; }
h3 { font-size: 1.35rem; font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }

/* ── Layout containers ──────────────────────────────────────── */
.container   { max-width: 1120px; margin: 0 auto; padding: 0 1.5rem; }
.container-sm{ max-width:  720px; margin: 0 auto; padding: 0 1.5rem; }
.page-wrap   { padding: 3rem 0 5rem; }

/* ── Cards ───────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--border-lt);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 2rem;
  transition: box-shadow var(--transition);
}
.card:hover { box-shadow: var(--shadow); }
.card-header {
  border-bottom: 1px solid var(--border-lt);
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .6rem 1.4rem;
  font-family: 'Nunito', sans-serif;
  font-size: .9rem; font-weight: 600;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
  line-height: 1.4;
}
.btn-primary {
  background: var(--rose); color: var(--white); border-color: var(--rose);
}
.btn-primary:hover {
  background: var(--rose-dk); border-color: var(--rose-dk); color: var(--white);
}
.btn-outline {
  background: transparent; color: var(--rose); border-color: var(--rose);
}
.btn-outline:hover { background: var(--rose); color: var(--white); }
.btn-gold {
  background: var(--gold); color: var(--white); border-color: var(--gold);
}
.btn-gold:hover { background: #b8934e; border-color: #b8934e; color: var(--white); }
.btn-ghost {
  background: transparent; color: var(--text-mid); border-color: var(--border);
}
.btn-ghost:hover { background: var(--blush); border-color: var(--blush-dk); color: var(--text); }
.btn-danger {
  background: #c0392b; color: var(--white); border-color: #c0392b;
}
.btn-danger:hover { background: #a93226; border-color: #a93226; color: var(--white); }
.btn-sm { padding: .4rem 1rem; font-size: .82rem; }
.btn-lg { padding: .85rem 2rem; font-size: 1rem; }
.btn-icon { padding: .5rem; line-height: 1; }

/* ── Forms ───────────────────────────────────────────────────── */
.form-group { margin-bottom: 1.25rem; }
.form-label {
  display: block; margin-bottom: .4rem;
  font-size: .88rem; font-weight: 600; color: var(--text-mid);
  letter-spacing: .03em; text-transform: uppercase;
}
.form-control {
  display: block; width: 100%;
  padding: .65rem 1rem;
  font-family: 'Nunito', sans-serif; font-size: .95rem;
  color: var(--text);
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  appearance: none;
}
.form-control:focus {
  border-color: var(--rose);
  box-shadow: 0 0 0 3px rgba(201,131,106,.15);
}
.form-control::placeholder { color: var(--text-muted); }
textarea.form-control { resize: vertical; min-height: 100px; }
select.form-control { cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239c7e6a' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .75rem center; padding-right: 2.5rem; }
.form-hint { font-size: .8rem; color: var(--text-muted); margin-top: .3rem; }
.form-row { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit,minmax(200px,1fr)); }

/* ── Alerts / Flash ──────────────────────────────────────────── */
.alert {
  padding: .85rem 1.2rem; border-radius: var(--radius-sm);
  font-size: .92rem; font-weight: 500;
  border-left: 4px solid transparent; margin-bottom: 1.25rem;
  display: flex; align-items: flex-start; gap: .6rem;
}
.alert-success { background: #edf7ee; border-color: var(--sage); color: #2d5a30; }
.alert-error   { background: #fdecea; border-color: #c0392b;     color: #7b1a12; }
.alert-info    { background: var(--gold-lt); border-color: var(--gold); color: #7a5a20; }
.alert-warning { background: #fff8e1; border-color: #f9a825; color: #7a5200; }

/* ── Tables ──────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.table {
  width: 100%; border-collapse: collapse;
  background: var(--white); font-size: .9rem;
}
.table thead th {
  background: var(--blush); color: var(--text-mid);
  font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em;
  padding: .85rem 1rem; text-align: left; border-bottom: 2px solid var(--blush-dk);
  white-space: nowrap;
}
.table tbody tr { transition: background var(--transition); }
.table tbody tr:hover { background: #fdf5f1; }
.table tbody td { padding: .75rem 1rem; border-bottom: 1px solid var(--border-lt); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: none; }

/* ── Badges ──────────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center;
  padding: .2rem .65rem; border-radius: 20px;
  font-size: .75rem; font-weight: 700; letter-spacing: .03em;
}
.badge-rose  { background: var(--blush);    color: var(--rose-dk); }
.badge-gold  { background: var(--gold-lt);  color: #7a5a20; }
.badge-sage  { background: var(--sage-lt);  color: #3a6b3e; }
.badge-grey  { background: #f0ece8;         color: var(--text-mid); }

/* ── Photo thumb ─────────────────────────────────────────────── */
.thumb {
  width: 48px; height: 48px;
  border-radius: 50%; object-fit: cover;
  border: 2px solid var(--blush-dk);
}
.thumb-lg {
  width: 120px; height: 120px;
  border-radius: var(--radius); object-fit: cover;
  border: 3px solid var(--blush-dk);
  box-shadow: var(--shadow-sm);
}
.thumb-placeholder {
  display: flex; align-items: center; justify-content: center;
  background: var(--blush); color: var(--rose);
  font-size: 1.4rem; border: 2px solid var(--blush-dk);
}

/* ── Divider ─────────────────────────────────────────────────── */
.divider { height: 1px; background: var(--border-lt); margin: 1.5rem 0; border: none; }

/* ── Pagination ──────────────────────────────────────────────── */
.pagination { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: 1.5rem; }
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: var(--radius-sm);
  font-size: .85rem; font-weight: 600;
  border: 1.5px solid var(--border); background: var(--white); color: var(--text-mid);
  transition: all var(--transition);
}
.pagination a:hover { background: var(--blush); border-color: var(--rose); color: var(--rose); }
.pagination .active { background: var(--rose); border-color: var(--rose); color: var(--white); }

/* ── Decorative paw separator ───────────────────────────────── */
.paw-divider {
  text-align: center; color: var(--blush-dk);
  font-size: 1.1rem; letter-spacing: .4rem;
  margin: 1rem 0;
}

/* ── Responsive helpers ─────────────────────────────────────── */
@media (max-width: 768px) {
  .card { padding: 1.25rem; }
  .hide-mobile { display: none !important; }
  .btn { padding: .55rem 1.1rem; font-size: .85rem; }
}
@media (max-width: 480px) {
  .btn-group { flex-direction: column; }
  .form-row  { grid-template-columns: 1fr; }
}
