/* Hero da clínica */
.clinic-hero {
  background: linear-gradient(
    135deg,
    var(--clinic-primary, #6f6df4),
    var(--clinic-secondary, #46c4d3)
  );
  border-radius: 2rem;
  padding: clamp(1.5rem, 4vw, 3rem);
  position: relative;
  overflow: hidden;
  color: var(--clinic-text-color, #fff);
}

.clinic-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.25), transparent 55%);
  opacity: 0.7;
  pointer-events: none;
}

.clinic-hero__inner {
  position: relative;
  z-index: 1;
}

.clinic-hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
  color: var(--clinic-eyebrow-color, rgba(255, 255, 255, 0.75));
}

.clinic-hero__title {
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  color: var(--clinic-text-color, #fff);
}

.clinic-hero__subtitle {
  max-width: 32rem;
  font-size: 1rem;
  color: var(--clinic-subtitle-color, rgba(255, 255, 255, 0.85));
}

.clinic-hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.clinic-hero__chip {
  background: var(--clinic-chip-bg, rgba(255, 255, 255, 0.15));
  border: 1px solid var(--clinic-chip-border, rgba(255, 255, 255, 0.2));
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.85rem;
  color: var(--clinic-chip-text, #fff);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.clinic-hero__brand {
  position: relative;
  display: flex;
  justify-content: center;
}

.clinic-hero__logo-frame {
  width: min(260px, 70vw);
  aspect-ratio: 1 / 1;
  border-radius: 999px;
  background: var(--clinic-logo-frame-bg, #fff);
  border: 4px solid var(--clinic-logo-frame-border, rgba(255, 255, 255, 0.4));
  box-shadow: 0 25px 60px var(--clinic-logo-frame-shadow, rgba(15, 23, 42, 0.15));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-inline: auto;
}

.clinic-hero__logo-frame img {
  max-width: 70%;
  max-height: 70%;
  object-fit: contain;
}

.clinic-hero__avatar {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  font-weight: 700;
  border-radius: 50%;
  color: var(--clinic-avatar-text, #fff);
  background: var(--clinic-avatar-bg, rgba(255, 255, 255, 0.2));
  text-transform: uppercase;
}

.clinic-hero__actions .btn {
  min-width: 190px;
}

.text-white-75 {
  color: rgba(255, 255, 255, 0.75) !important;
}

/* Timeline de horários */
.clinic-hours-chip {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(78, 115, 223, 0.15);
  color: #4e73df;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.clinic-hours-timeline {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.clinic-hour-card {
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 1.25rem;
  padding: 1rem 1.25rem;
  box-shadow: 0 10px 30px rgba(15, 47, 91, 0.05);
}

.clinic-hour-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: #fff;
  flex-shrink: 0;
}

.clinic-hour-icon--day {
  background: linear-gradient(135deg, #ffd166, #f4a261);
}

.clinic-hour-icon--night {
  background: linear-gradient(135deg, #5e60ce, #3a0ca3);
}


.clinic-hour-status {
  font-size: 0.95rem;
}

.clinic-hour-badge {
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-weight: 600;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.clinic-hour-badge--open {
  background: rgba(25, 135, 84, 0.15);
  color: #0f5132;
}

.clinic-hour-badge--closed {
  background: rgba(220, 53, 69, 0.15);
  color: #842029;
}

.clinic-hour-actions button {
  text-decoration: none;
}

.clinic-hours-empty {
  background: rgba(78, 115, 223, 0.04);
  border: 1px dashed rgba(78, 115, 223, 0.3);
  border-radius: 1.5rem;
}

.clinic-hours-empty__image {
  width: 120px;
  height: auto;
  object-fit: contain;
  margin: 0 auto;
}

.clinic-team-container .accordion-button {
  font-weight: 600;
}

.team-card {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 1rem;
  box-shadow: 0 8px 20px rgba(15, 47, 91, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.team-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(15, 47, 91, 0.08);
}

.team-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  background-color: #f1f3f5;
  color: #495057;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-avatar-initials {
  letter-spacing: 0.5px;
}

.team-avatar .bi {
  font-size: 1.15rem;
}

@media (min-width: 992px) {
  .team-avatar {
    width: 56px;
    height: 56px;
  }
}

.team-avatar-soft-primary {
  background-color: rgba(78, 115, 223, 0.15);
  color: #4e73df;
  border-color: rgba(78, 115, 223, 0.35);
}

.team-avatar-soft-success {
  background-color: rgba(28, 200, 138, 0.15);
  color: #1cc88a;
  border-color: rgba(28, 200, 138, 0.35);
}

.team-avatar-soft-info {
  background-color: rgba(54, 185, 204, 0.15);
  color: #36b9cc;
  border-color: rgba(54, 185, 204, 0.35);
}

.team-avatar-soft-warning {
  background-color: rgba(246, 194, 62, 0.2);
  color: #c28700;
  border-color: rgba(246, 194, 62, 0.45);
}

.team-avatar-soft-danger {
  background-color: rgba(231, 74, 59, 0.2);
  color: #be2617;
  border-color: rgba(231, 74, 59, 0.45);
}

.team-avatar-soft-secondary {
  background-color: rgba(133, 135, 150, 0.15);
  color: #5a5c69;
  border-color: rgba(133, 135, 150, 0.35);
}

.action-dropdown .btn-icon {
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #495057;
  background-color: #fff;
}

.action-dropdown .btn-icon:hover {
  background-color: #f8f9fa;
}

.schedule-summary {
  background-color: #f8f9fb;
  border: 1px dashed rgba(0, 0, 0, 0.08);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
}

.invite-card .card-header {
  background-color: #f8f9fa;
}

.invite-card .dropdown-menu form {
  margin: 0;
}

.badge-soft-primary {
  background-color: rgba(78, 115, 223, 0.15);
  color: #4e73df;
}

.badge-soft-success {
  background-color: rgba(28, 200, 138, 0.15);
  color: #1cc88a;
}

.badge-soft-info {
  background-color: rgba(54, 185, 204, 0.15);
  color: #36b9cc;
}

.badge-soft-warning {
  background-color: rgba(246, 194, 62, 0.2);
  color: #c28700;
}

.badge-soft-danger {
  background-color: rgba(231, 74, 59, 0.2);
  color: #be2617;
}

.badge-soft-secondary {
  background-color: rgba(133, 135, 150, 0.15);
  color: #5a5c69;
}

.bg-primary-subtle {
  background-color: rgba(78, 115, 223, 0.1) !important;
}

.bg-success-subtle {
  background-color: rgba(28, 200, 138, 0.1) !important;
}

.bg-info-subtle {
  background-color: rgba(54, 185, 204, 0.1) !important;
}

.team-card .badge {
  text-transform: uppercase;
  font-size: 0.7rem;
}

.clinic-team-container .offcanvas .list-group-item {
  border: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.clinic-team-container .offcanvas .list-group-item:last-child {
  border-bottom: none;
}

.clinic-team-container .offcanvas form button.btn-outline-danger {
  min-width: 40px;
}

/* Home utilities */
.toast-stack {
  z-index: 11;
}

.card-surface-muted {
  background: #f8f9fa;
}

.card-surface-white {
  background: #ffffff;
}

.lottie-cta {
  height: 100px;
}

.accounting-btn {
  border-radius: 999px;
  --accounting-btn-bg: color-mix(in srgb, var(--primary-color) 80%, #000);
  --accounting-btn-text: #fff;
  --accounting-btn-focus: color-mix(in srgb, var(--primary-color) 25%, #fff);
  background: var(--accounting-btn-bg);
  color: var(--accounting-btn-text);
  border: 1px solid transparent;
  padding: 0.75rem 1.75rem;
  min-width: 190px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-weight: 600;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, outline-color 0.2s ease;
}

.accounting-btn i {
  font-size: 1rem;
}

.accounting-btn:focus-visible {
  outline: 2px solid var(--accounting-btn-focus);
  outline-offset: 3px;
}

.accounting-btn:hover,
.accounting-btn:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.12);
  color: var(--accounting-btn-text);
}

.accounting-btn--finance {
  --accounting-btn-bg: color-mix(in srgb, var(--primary-color) 80%, #000);
  --accounting-btn-focus: color-mix(in srgb, var(--primary-color) 25%, #fff);
}

.accounting-btn--payments {
  --accounting-btn-bg: color-mix(in srgb, var(--secondary-color) 40%, #000);
  --accounting-btn-focus: color-mix(in srgb, var(--secondary-color) 30%, #fff);
}

.accounting-btn--obligations {
  --accounting-btn-bg: color-mix(in srgb, var(--warning-color) 60%, #000);
  --accounting-btn-focus: color-mix(in srgb, var(--warning-color) 35%, #fff);
}

/* Base layout styles (moved from inline template) */
:root {
  --primary-color: #4e73df;
  --secondary-color: #1cc88a;
  --danger-color: #e74a3b;
  --warning-color: #f6c23e;
  --dark-color: #5a5c69;
  --light-color: #f2f5f9;
  --topbar-height: 70px;
  --transition-speed: 0.3s;
}

html {
  font-size: clamp(14px, 1vw + 0.5rem, 18px);
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(to bottom right, var(--light-color), #ffffff);
  color: #333;
  line-height: 1.6;
  padding-top: calc(var(--topbar-height) + env(safe-area-inset-top));
  padding-bottom: env(safe-area-inset-bottom);
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  line-height: 1.2;
  overflow-wrap: anywhere;
  margin-bottom: 0.75rem;
}

p {
  margin-bottom: 1rem;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.navbar {
  min-height: var(--topbar-height);
  background: var(--light-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 0 30px;
  width: 100%;
}

.navbar-nav {
  flex-wrap: wrap;
}

.navbar-brand {
  font-weight: 600;
  font-size: clamp(1.25rem, 2vw + 1rem, 1.75rem);
  color: var(--dark-color);
  display: flex;
  align-items: center;
}

.navbar-brand img {
  height: clamp(32px, 4vw, 40px);
  width: clamp(32px, 4vw, 40px);
  border-radius: 50%;
  object-fit: cover;
  margin-right: 10px;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.1);
}

.nav-link {
  font-size: clamp(0.9rem, 1vw + 0.6rem, 1rem);
  font-weight: 500;
  color: var(--dark-color);
  padding: 10px 15px !important;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.nav-link:hover {
  color: var(--primary-color);
  background-color: rgba(78, 115, 223, 0.1);
}

.navbar-toggler {
  border: none;
  padding: 8px;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.dropdown-menu {
  border: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  padding: 10px 0;
}

.dropdown-item {
  padding: 8px 20px;
  transition: all 0.2s ease;
}

.dropdown-item:hover {
  background-color: rgba(78, 115, 223, 0.1);
  color: var(--primary-color);
}

button:focus-visible,
.btn:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[role="button"]:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--primary-color) 80%, #000);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(78, 115, 223, 0.2);
  border-radius: 10px;
}

.badge {
  font-weight: 500;
  padding: 5px 10px;
  border-radius: 50px;
  font-size: 0.65rem;
}

main.container {
  flex: 1;
  padding: 30px 15px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.alert-container {
  width: 90%;
  max-width: 600px;
  margin: 1rem auto;
  overflow: hidden;
  transition: max-height 0.6s ease, opacity 0.6s ease, margin 0.6s ease;
  max-height: 200px;
  opacity: 1;
}

.alert-container.shrink {
  max-height: 0;
  opacity: 0;
  margin: 0 auto;
}

.alert {
  position: relative;
  border-radius: 8px;
  padding: 15px 20px;
  padding-right: 2.5rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.alert .btn-close {
  position: absolute;
  top: 10px;
  right: 10px;
}

.btn {
  transition: all 0.2s ease-in-out;
  border-radius: 8px;
  padding: 8px 16px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 100%;
  flex-wrap: wrap;
  white-space: normal;
  word-break: break-word;
}

.btn i {
  margin-right: 0.25rem;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.btn:focus-visible,
a:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--primary-color) 80%, #000);
  outline-offset: 3px;
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-success {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
}

.btn-danger {
  background-color: var(--danger-color);
  border-color: var(--danger-color);
}

.btn-warning {
  background-color: var(--warning-color);
  border-color: var(--warning-color);
}

footer {
  text-align: center;
  padding: 1.5rem;
  background-color: white;
  margin-top: 2rem;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
  color: var(--dark-color);
}

.card {
  border: none;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  margin-bottom: 30px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.card-header {
  background-color: white;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  font-weight: 600;
  padding: 15px 20px;
  border-radius: 10px 10px 0 0 !important;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #3a5ccc;
}

@media (max-width: 992px) {
  .navbar-collapse {
    background-color: var(--light-color);
    padding: 20px;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    margin-top: 10px;
  }

  .nav-link {
    margin-bottom: 5px;
  }
}

@media (max-width: 576px) {
  body {
    font-size: 0.95rem;
  }

  .navbar {
    padding: 0 10px;
  }

  main.container {
    padding: 20px 10px;
  }

  main .btn {
    width: 100%;
    margin-bottom: 10px;
  }
}

@media (min-width: 1200px) {
  .navbar {
    padding: 0 60px;
  }

  main.container {
    padding: 40px 30px;
  }
}

.loja-pet-filled {
  background-color: #fff9db;
  border: 2px solid #ffe58f;
  color: #d97706;
  font-weight: 600;
  transition: all 0.3s ease;
}

.loja-pet-filled:hover {
  background-color: #ffe58f;
  color: #000;
  box-shadow: 0 6px 12px rgba(255, 193, 7, 0.2);
}

.modal-dialog-scrollable .modal-body {
  max-height: 70vh;
  overflow-y: auto;
}
