/* Dashboard Theme - Pathbit Violet (var(--color-primary)) */
.customer-dashboard,
.customer-auth {
  /* #153: padroniza com a área de Parceiros (stack Inter/nativo), não Montserrat. */
  font-family: var(--font-ui, "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
  color: var(--color-text-main, var(--color-neutral-900));
}

.customer-dashboard .sidebar {
  background: var(--color-primary, var(--color-primary));
}

.customer-dashboard .btn-primary {
  background: var(--gradient-brand-main);
  border-color: var(--color-primary);
  color: var(--color-text-on-brand);
}

.customer-dashboard .btn-primary:hover,
.customer-dashboard .btn-primary:focus-visible,
.customer-dashboard .btn-primary:active {
  background: var(--gradient-brand-hover);
  border-color: var(--color-secondary);
  color: var(--color-text-on-brand);
}

.customer-dashboard .btn-outline-primary,
.customer-dashboard .btn-link.text-primary,
.customer-dashboard .text-primary {
  color: var(--color-primary) !important;
  border-color: var(--color-primary);
}

.customer-dashboard .btn-outline-primary:hover,
.customer-dashboard .btn-outline-primary:focus-visible,
.customer-dashboard .btn-outline-primary:active {
  background: var(--gradient-brand-main);
  border-color: var(--color-primary);
  color: var(--color-text-on-brand) !important;
}

.customer-dashboard .sidebar-link:focus-visible,
.customer-dashboard .sidebar-logout:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.9);
  outline-offset: -2px;
}

.customer-dashboard .sidebar-link.active {
  background: rgba(255, 255, 255, 0.2);
  border-left-color: var(--color-text-on-brand);
}

.customer-dashboard .topbar-action-btn:hover,
.customer-dashboard .user-dropdown:hover,
.customer-dashboard .notif-bell-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.customer-dashboard .topbar-action-btn:hover i,
.customer-dashboard .user-dropdown:hover .user-icon {
  color: var(--color-primary);
}

.customer-dashboard #userDropdown + .dropdown-menu .dropdown-item:hover,
.customer-dashboard #userDropdown + .dropdown-menu .dropdown-item:focus,
.customer-dashboard #userDropdown + .dropdown-menu .dropdown-item:active,
.customer-dashboard #userDropdown + .dropdown-menu .dropdown-item.active {
  background-color: rgba(var(--primary-rgb, 109, 40, 217), 0.08) !important;
  color: var(--color-primary) !important;
  border-left-color: var(--color-primary);
}

.customer-dashboard #userDropdown + .dropdown-menu .dropdown-item:hover i {
  color: var(--color-primary) !important;
}

.customer-dashboard .topbar-action-btn:focus-visible,
.customer-dashboard .user-dropdown:focus-visible,
.customer-dashboard .notif-bell-btn:focus-visible {
  box-shadow: 0 0 0 0.2rem rgba(var(--primary-rgb, 109, 40, 217), 0.2) !important;
}

.customer-dashboard .topbar-action-btn:focus-visible,
.customer-dashboard .user-dropdown:focus-visible,
.customer-dashboard .notif-bell-btn:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.customer-area {
  /* #153: padroniza com a área de Parceiros (stack Inter/nativo), não Montserrat. */
  font-family: var(--font-ui, "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
  color: var(--color-text-main, var(--color-neutral-900));
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.customer-area main {
  flex: 1;
}

/* Navigation Customization */
.customer-area .navbar {
  background: var(--gradient-brand-main) !important;
}

.customer-area .navbar-brand {
  font-size: 1.5rem;
  letter-spacing: -0.5px;
}

/* Estilos específicos apenas para links de navbar — não afeta .tabs */
.customer-area .navbar .nav-link {
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  border-radius: 6px;
  margin: 0 4px;
  padding: var(--spacing-xs, 0.5rem) 12px !important;
}

.customer-area .navbar .nav-link:hover {
  background-color: rgba(255, 255, 255, 0.1);

}

/* Cards Enhancement */
.customer-area .card {
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  border-radius: 12px;
}

.customer-area .card:hover {

  box-shadow: var(--shadow-lg) !important;
}

/* Stats Cards */
.customer-area .card-body h3 {
  font-weight: 700;
  color: var(--color-bs-gray-800);
}

.customer-area .card-body h6 {
  font-weight: 500;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Buttons */
.customer-area .btn {
  border-radius: var(--radius-md, 8px);
  font-weight: 500;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.customer-area .btn:hover {
  box-shadow: none;
}

/* Footer */
.customer-area .footer {
  margin-top: auto;
}

/* Icon Enhancements */
.customer-area .bi {
  vertical-align: middle;
}

.settings-cep-search-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 3.25rem;
  min-width: 3.25rem;
  max-width: 3.25rem;
  min-height: calc(1.5em + 0.75rem + 2px);
  height: calc(1.5em + 0.75rem + 2px);
  padding-inline: 0;
  white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.settings-cep-search-button-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.settings-cep-search-column {
  display: flex;
  align-items: end;
  justify-content: flex-start;
}

@media (max-width: 575.98px) {
  .settings-cep-search-button {
    width: 3.25rem;
    min-width: 3.25rem;
    max-width: 3.25rem;
    min-height: calc(1.5em + 0.75rem + 2px);
    height: calc(1.5em + 0.75rem + 2px);
    padding-inline: 0;
  }

  .settings-cep-search-button-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .customer-area .navbar-brand {
    font-size: 1.25rem;
  }
}

