:root {
  --orange-50: #fff7ed;
  --orange-100: #ffedd5;
  --orange-200: #fed7aa;
  --orange-300: #fdba74;
  --orange-400: #fb923c;
  --orange-500: #f97316;
  --orange-600: #ea580c;
  --orange-700: #c2410c;
  --gray-900: #111827;
  --gray-700: #374151;
  --gray-100: #f3f4f6;
  --bs-primary: var(--orange-600);
  --bs-primary-rgb: 234, 88, 12;
  --bs-primary-text-emphasis: #5c1f07;
  --bs-link-color: var(--orange-600);
  --bs-link-hover-color: var(--orange-700);
}

body,
body.app-body {
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--orange-50);
  color: var(--gray-900);
  line-height: 1.6;
}

.hero-card {
  background: linear-gradient(135deg, var(--orange-100) 0%, #ffffff 100%);
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.shadow-soft {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.btn-primary-custom {
  background: linear-gradient(135deg, var(--orange-500), var(--orange-600));
  border: none;
  color: #fff;
  padding: 0.65rem 1.25rem;
  border-radius: 0.5rem;
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(249, 115, 22, 0.28);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease;
}

.btn-primary-custom:hover,
.btn-primary-custom:focus {
  background: linear-gradient(135deg, var(--orange-600), var(--orange-700));
  box-shadow: 0 10px 26px rgba(234, 88, 12, 0.32);
  transform: translateY(-1px);
  color: #fff;
}

.btn-outline-custom {
  border: 2px solid var(--orange-500);
  color: var(--orange-600);
  border-radius: 0.5rem;
  font-weight: 600;
}

.btn-outline-custom:hover,
.btn-outline-custom:focus {
  background-color: var(--orange-500);
  color: #fff;
}

.auth-nav-btn {
  min-width: 7.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.2;
}

.badge-soft {
  background-color: var(--orange-100);
  color: var(--orange-700);
  border: 1px solid var(--orange-200);
}

.status-badge {
  font-weight: 600;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
}

.status-active {
  background-color: #dcfce7;
  color: #166534;
}

.status-inactive {
  background-color: #fee2e2;
  color: #b91c1c;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background-color: var(--orange-100);
  color: var(--orange-700);
  font-weight: 600;
  font-size: 0.875rem;
}

.toolbar-shell {
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border-right: 1px solid rgba(0, 0, 0, 0.06);
}

.toolbar-link {
  color: var(--gray-900);
  border-radius: 12px;
  padding: 0.65rem 0.9rem;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.12s ease;
}

.toolbar-link i {
  color: var(--orange-600);
}

.toolbar-link:hover {
  background: var(--orange-100);
  color: var(--orange-700);
  transform: translateX(1px);
}

.toolbar-link.active,
.toolbar-link:focus,
.toolbar-link:active,
.toolbar-link:focus-visible {
  background: var(--orange-100);
  color: var(--orange-700);
  box-shadow: 0 0 0 0.2rem rgba(234, 88, 12, 0.25);
  font-weight: 700;
  outline: none;
}

.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
  background-color: var(--orange-100) !important;
  color: var(--orange-700) !important;
}

.toolbar-logout {
  border-width: 2px;
  font-weight: 700;
  color: var(--orange-600) !important;
  border-color: var(--orange-600) !important;
  background: transparent !important;
  border-radius: 0.6rem;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
}

.toolbar-logout i {
  color: var(--orange-600);
}

.toolbar-logout:hover {
  background: var(--orange-100) !important;
  color: var(--orange-700) !important;
  border-color: var(--orange-700) !important;
  box-shadow: 0 0 0 0.12rem rgba(234, 88, 12, 0.18);
  transform: translateY(-1px);
}

.toolbar-logout:focus,
.toolbar-logout:active,
.toolbar-logout:focus-visible {
  background: var(--orange-100) !important;
  color: var(--orange-700) !important;
  border-color: var(--orange-700) !important;
  box-shadow: 0 0 0 0.2rem rgba(234, 88, 12, 0.25) !important;
  outline: none !important;
}

.toolbar-brand:focus-visible {
  outline: none;
  color: var(--orange-700) !important;
  box-shadow: 0 0 0 0.2rem rgba(234, 88, 12, 0.25);
  border-radius: 0.4rem;
}

.brand-icon {
  width: 1.5rem;
  min-width: 1.5rem;
  font-size: 1.15rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

aside[aria-label='Admin toolbar'] + main .card.shadow-soft > .card-header {
  background-color: #ffffff;
  border-bottom: 1px solid rgba(17, 24, 39, 0.08);
  padding: 0.95rem 1.2rem;
}

aside[aria-label='Admin toolbar'] + main .card.shadow-soft > .card-header h2,
aside[aria-label='Admin toolbar'] + main .card.shadow-soft > .card-header .h5 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

aside[aria-label='Admin toolbar'] + main .card.shadow-soft .card-body > .row.g-3.mb-3 {
  align-items: end;
  margin-bottom: 1rem !important;
  padding: 0.95rem;
  border-radius: 0.8rem;
  border: 1px solid rgba(251, 146, 60, 0.22);
  background: linear-gradient(135deg, rgba(255, 237, 213, 0.52), rgba(255, 255, 255, 0.96));
}

aside[aria-label='Admin toolbar'] + main .card.shadow-soft .card-body > .row.g-3.mb-3 .form-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

aside[aria-label='Admin toolbar'] + main .card.shadow-soft .card-body > .row.g-3.mb-3 .form-control,
aside[aria-label='Admin toolbar'] + main .card.shadow-soft .card-body > .row.g-3.mb-3 .form-select {
  border-color: rgba(251, 146, 60, 0.35);
}

aside[aria-label='Admin toolbar'] + main .card.shadow-soft .table-responsive {
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 0.8rem;
  background-color: #ffffff;
  overflow: hidden;
}

aside[aria-label='Admin toolbar'] + main .card.shadow-soft .table {
  margin-bottom: 0;
}

aside[aria-label='Admin toolbar'] + main .card.shadow-soft .table thead th {
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  font-weight: 700;
  color: var(--gray-700);
  background-color: rgba(249, 115, 22, 0.08);
  border-bottom-color: rgba(17, 24, 39, 0.1);
  white-space: nowrap;
}

aside[aria-label='Admin toolbar'] + main .card.shadow-soft .table tbody td {
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

aside[aria-label='Admin toolbar'] + main .card.shadow-soft .table tbody tr:hover > * {
  background-color: rgba(249, 115, 22, 0.07);
}

@media (max-width: 991.98px) {
  aside[aria-label='Admin toolbar'] + main .card.shadow-soft .card-body > .row.g-3.mb-3 {
    padding: 0.8rem;
  }
}

.profile-edit-modal {
  border: 0;
  border-radius: 1rem;
  box-shadow: 0 18px 44px rgba(17, 24, 39, 0.16);
}

.profile-edit-modal .modal-header,
.profile-edit-modal .modal-footer {
  border: 0;
}

.profile-edit-subtitle {
  color: var(--gray-700);
  font-size: 0.9rem;
}

.profile-edit-section {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
}

.profile-edit-section-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange-700);
  margin-bottom: 0.75rem;
}

.profile-edit-modal .form-label {
  font-weight: 600;
  color: var(--gray-900);
}

.profile-edit-modal .modal-title,
.profile-edit-modal .h5,
.profile-edit-modal .modal-body dt,
.profile-edit-modal .modal-body .form-text,
.profile-edit-modal .modal-body .text-secondary {
  color: var(--gray-700) !important;
}

.profile-edit-modal .modal-body dl dt {
  margin-bottom: 0.35rem;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 700;
}

.profile-edit-modal .modal-body dl dd {
  margin-bottom: 0.85rem;
  min-height: calc(1.5em + 0.75rem + 2px);
  padding: 0.375rem 0.75rem;
  border-radius: 0.6rem;
  border: 1px solid rgba(17, 24, 39, 0.15);
  background: #fff;
  color: var(--gray-900);
  display: flex;
  align-items: center;
}

.profile-edit-modal .modal-body dl dd:last-child {
  margin-bottom: 0;
}

.profile-edit-modal .modal-body > dl,
.profile-edit-modal .modal-body > .row,
.profile-edit-modal .modal-body > .table-responsive,
.profile-edit-modal .modal-body > form,
.profile-edit-modal .modal-body.vstack > .row,
.profile-edit-modal .modal-body.vstack > .stack-section {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
}

.profile-edit-modal .modal-body > dl,
.profile-edit-modal .modal-body > .row,
.profile-edit-modal .modal-body > .table-responsive,
.profile-edit-modal .modal-body > form,
.profile-edit-modal .modal-body.vstack > .row,
.profile-edit-modal .modal-body.vstack > .stack-section {
  margin-bottom: 0.75rem;
}

.profile-edit-modal .modal-body > dl:last-child,
.profile-edit-modal .modal-body > .row:last-child,
.profile-edit-modal .modal-body > .table-responsive:last-child,
.profile-edit-modal .modal-body > form:last-child,
.profile-edit-modal .modal-body.vstack > .row:last-child,
.profile-edit-modal .modal-body.vstack > .stack-section:last-child {
  margin-bottom: 0;
}

.profile-edit-modal .profile-edit-label {
  font-weight: 600;
  color: var(--gray-900);
}

.profile-edit-modal .form-control,
.profile-edit-modal .form-select {
  border-radius: 0.6rem;
}

.profile-edit-modal .profile-edit-input {
  border-radius: 0.6rem;
}

.profile-edit-modal .form-control:not(textarea),
.profile-edit-modal .form-select,
.profile-edit-modal .profile-edit-input:not(textarea) {
  min-height: calc(1.5em + 0.75rem + 2px);
  padding: 0.375rem 0.75rem;
}

.profile-edit-modal .form-control[readonly] {
  background-color: var(--gray-100);
}

.profile-edit-modal .modal-footer .btn {
  min-width: 132px;
}

.audience-label {
  font-weight: 600;
}

.audience-direct {
  color: #b91c1c;
}

.audience-public {
  color: #166534;
}

.audience-dentists {
  color: #92400e;
}

.audience-staff {
  color: #1d4ed8;
}

.status-direct {
  background-color: #fee2e2;
  color: #b91c1c;
}

.status-public {
  background-color: #dcfce7;
  color: #166534;
}

.status-dentists {
  background-color: #fef3c7;
  color: #92400e;
}

.status-staff {
  background-color: #dbeafe;
  color: #1d4ed8;
}

.public-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.public-navbar {
  background-color: #ffffff !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.public-navbar .navbar-brand {
  font-weight: 700;
  color: var(--orange-600) !important;
  font-size: 1.5rem;
}

.btn-gradient {
  background: linear-gradient(120deg, var(--orange-400), var(--orange-500));
  color: #fff;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  box-shadow: 0 0.75rem 1.75rem rgba(249, 115, 22, 0.3);
  transition: all 0.3s ease;
}

.btn-gradient:hover {
  color: #fff;
  background: linear-gradient(120deg, var(--orange-500), var(--orange-600));
  transform: translateY(-2px);
  box-shadow: 0 0.75rem 2rem rgba(249, 115, 22, 0.4);
}

.public-footer {
  background-color: var(--gray-900);
  color: white;
  padding: 2rem 0;
  text-align: center;
  margin-top: auto;
}

.form-control:focus {
  border-color: var(--orange-400);
  box-shadow: 0 0 0 0.2rem rgba(249, 115, 22, 0.25);
}
