/* PetBoard — tema sobre o Bootstrap 5.3 */
:root {
  --pb-teal: #0f766e;
  --pb-teal-600: #0d9488;
  --pb-teal-50: #f0fdfa;
  --pb-ink: #0f172a;
  --pb-sidebar-w: 248px;
  --bs-primary: #0f766e;
  --bs-primary-rgb: 15, 118, 110;
  --bs-link-color: #0f766e;
  --bs-link-color-rgb: 15, 118, 110;
  --bs-link-hover-color: #115e59;
  --bs-link-hover-color-rgb: 17, 94, 89;
  --bs-body-font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --bs-border-radius: .6rem;
  --bs-border-radius-lg: .9rem;
}

body { background: #f8fafc; color: var(--pb-ink); }

.btn-primary {
  --bs-btn-bg: var(--pb-teal);
  --bs-btn-border-color: var(--pb-teal);
  --bs-btn-hover-bg: #115e59;
  --bs-btn-hover-border-color: #115e59;
  --bs-btn-active-bg: #134e4a;
  --bs-btn-active-border-color: #134e4a;
  --bs-btn-disabled-bg: var(--pb-teal);
  --bs-btn-disabled-border-color: var(--pb-teal);
}
.btn-outline-primary {
  --bs-btn-color: var(--pb-teal);
  --bs-btn-border-color: var(--pb-teal);
  --bs-btn-hover-bg: var(--pb-teal);
  --bs-btn-hover-border-color: var(--pb-teal);
  --bs-btn-active-bg: #115e59;
  --bs-btn-active-border-color: #115e59;
}
.text-primary { color: var(--pb-teal) !important; }
.nav-pills { --bs-nav-pills-link-active-bg: var(--pb-teal); --bs-nav-link-color: var(--pb-teal); --bs-nav-link-hover-color: #115e59; }
.pagination { --bs-pagination-active-bg: var(--pb-teal); --bs-pagination-active-border-color: var(--pb-teal); --bs-pagination-color: var(--pb-teal); }
.bg-primary-subtle { background-color: #ccfbf1 !important; }
.form-control:focus, .form-select:focus, .form-check-input:focus {
  border-color: #5eead4;
  box-shadow: 0 0 0 .2rem rgba(15, 118, 110, .2);
}
.form-check-input:checked { background-color: var(--pb-teal); border-color: var(--pb-teal); }
.form-label { font-weight: 600; font-size: .9rem; }
.req::after { content: " *"; color: #dc2626; }

/* ---------- Páginas públicas (login, área do cliente) ---------- */
.public-bg {
  min-height: 100vh;
  background:
    radial-gradient(circle at 10% 10%, #fef3c7 0 140px, transparent 141px),
    radial-gradient(circle at 95% 90%, #ffe4e6 0 180px, transparent 181px),
    linear-gradient(160deg, #ecfeff 0%, #ccfbf1 100%);
  background-attachment: fixed;
}
.public-brand { text-decoration: none; color: var(--pb-ink); font-weight: 700; }
.public-brand img { width: 44px; height: 44px; }
.auth-card { max-width: 440px; }
.form-wide { max-width: 860px; }
.form-section-title { font-size: 1rem; font-weight: 700; color: var(--pb-teal); margin: 0 0 1rem; display: flex; gap: .5rem; align-items: center; }
.card { border: 0; box-shadow: 0 10px 30px -18px rgba(15, 23, 42, .35); }
.card-soft { border-radius: 1.1rem; }

.pet-photo {
  width: 72px; height: 72px; object-fit: cover; border-radius: 50%;
  background: var(--pb-teal-50); display: inline-flex; align-items: center; justify-content: center;
  font-size: 2rem; flex-shrink: 0; border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
.pet-photo-lg { width: 120px; height: 120px; font-size: 3rem; }

.status-pill { font-size: .8rem; font-weight: 600; padding: .35rem .75rem; border-radius: 999px; }

/* ---------- Painel da equipe ---------- */
.staff-sidebar {
  width: var(--pb-sidebar-w);
  flex: 0 0 var(--pb-sidebar-w);
  background: #0f172a;
  min-height: 100vh;
}
.staff-sidebar .nav-link {
  color: #cbd5e1; border-radius: .5rem; padding: .55rem .8rem; display: flex; gap: .6rem; align-items: center;
}
.staff-sidebar .nav-link:hover { background: rgba(255,255,255,.06); color: #fff; }
.staff-sidebar .nav-link.active { background: var(--pb-teal); color: #fff; }
.staff-sidebar .brand { color: #fff; text-decoration: none; font-weight: 700; }
.staff-main { min-width: 0; }
.stat-card .icon {
  width: 44px; height: 44px; border-radius: .75rem; display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.3rem; background: var(--pb-teal-50); color: var(--pb-teal);
}

@media (max-width: 991.98px) {
  .staff-sidebar.offcanvas-lg { min-height: auto; }
}

/* ---------- Agenda ---------- */
.dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.min-w-0 { min-width: 0; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal-head div { font-size: .75rem; font-weight: 700; text-transform: uppercase; color: #64748b; text-align: center; padding: .5rem 0; background: #f1f5f9; }
.cal-day { min-height: 110px; padding: .35rem; border-right: 1px solid #e2e8f0; border-bottom: 1px solid #e2e8f0; background: #fff; }
.cal-day:nth-child(7n) { border-right: 0; }
.cal-day.is-other { background: #f8fafc; }
.cal-day.is-other .cal-num { color: #94a3b8; }
.cal-num { flex-shrink: 0; display: inline-flex; width: 26px; height: 26px; align-items: center; justify-content: center; border-radius: 50%; font-size: .8rem; font-weight: 600; color: var(--pb-ink); text-decoration: none; }
.cal-num:hover { background: var(--pb-teal-50); }
.cal-day.is-today .cal-num { background: var(--pb-teal); color: #fff; }
.cal-add { color: #94a3b8; text-decoration: none; font-size: 1.1rem; line-height: 1; border-radius: .4rem; padding: 0 .2rem; }
.cal-add:hover { color: var(--pb-teal); background: var(--pb-teal-50); }
.cal-chip { display: flex; align-items: center; gap: .3rem; font-size: .75rem; color: var(--pb-ink); text-decoration: none; padding: .1rem .3rem; border-radius: .35rem; margin-bottom: 2px; background: #f1f5f9; }
.cal-chip:hover { background: #e2e8f0; color: var(--pb-ink); }
.cal-chip.is-cancelled, .appt-row.is-cancelled { opacity: .55; text-decoration: line-through; }
@media (max-width: 767.98px) { .cal-day { min-height: 64px; } }
@media (min-width: 1200px) { .row-cols-xl-7 > * { flex: 0 0 auto; width: 14.2857%; } }
.week-grid .card-body { min-height: 120px; }
.day-hour { width: 64px; flex-shrink: 0; padding: .6rem .5rem; border-right: 1px solid #e2e8f0; text-align: right; }
.appt-row { border-left: 4px solid; background: #f8fafc; border-radius: .5rem; padding: .45rem .6rem; }
.slot-add { color: #94a3b8; text-decoration: none; display: inline-block; padding: .15rem .3rem; border-radius: .35rem; }
.slot-add:hover { color: var(--pb-teal); background: var(--pb-teal-50); }

/* ---------- Kanban ---------- */
.kb-col { background: #eef2f6; border-radius: .9rem; padding: .75rem; border-top: 4px solid; min-height: 120px; transition: box-shadow .15s ease, background .15s ease; }
.kb-col.is-over { background: #e0f2f1; box-shadow: 0 0 0 3px rgba(15, 118, 110, .25); }
.kb-empty { border: 2px dashed #cbd5e1; border-radius: .6rem; padding: 1.5rem .5rem; }
.kb-card { cursor: grab; }
.kb-card.is-dragging { opacity: .4; }
@media (min-width: 768px) { .kb-col { min-height: 320px; } }
.pet-photo-sm { width: 40px; height: 40px; font-size: 1.2rem; border-width: 2px; }

/* ---------- Administração ---------- */
.wa-bubble { background: #dcf8c6; border-radius: .8rem .8rem .8rem .2rem; padding: .75rem 1rem; white-space: pre-wrap; font-size: .92rem; box-shadow: 0 1px 2px rgba(0,0,0,.1); }
.perm-matrix th { white-space: nowrap; }

/* ---------- Impressão (fechamento de caixa etc.) ---------- */
@media print {
  .staff-sidebar, .navbar, .no-print, .alert-dismissible .btn-close { display: none !important; }
  body { background: #fff; }
  .card { box-shadow: none; border: 1px solid #e2e8f0; }
}
