:root {
  --bs-body-bg: #f4f7f6;
  --bs-body-color: #212529;
  --bs-primary: #0d6efd;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Otimização de largura do container XXL para telas largas */
@media (min-width: 1400px) {
  .container-xxl, .container-xl {
    max-width: 1420px !important;
  }
}

.table-container {
  background: #fff;
  padding: 1rem;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  margin-bottom: 30px;
  border: 1px solid #e9ecef;
}

.navbar-custom {
  background-color: #ffffff;
  border-bottom: 1px solid #dee2e6;
}

.offcanvas {
  background-color: #ffffff;
  color: #212529;
}

.offcanvas .list-group-item-action {
  color: #495057;
}

.offcanvas .list-group-item-action:hover {
  background-color: #f8f9fa;
  color: #0d6efd;
}

.offcanvas .list-group .list-group {
  background-color: #f8f9fa !important;
}

.offcanvas-header {
  background-color: #f8f9fa;
}

.card-widget {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  color: #212529;
}

.card-widget .card-subtitle {
  color: #6c757d !important;
}

.card-widget .card-title {
  color: #212529;
}

.text-secondary-custom {
  color: #64748b;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

.text-pastel-green {
  color: #77dd77 !important;
}
.text-pastel-orange {
  color: #ffad60 !important;
}
.text-pastel-red {
  color: #ff6961 !important;
}

.bg-teal-dark {
  background-color: #006d5b !important;
}
.text-success {
  color: #00897b !important;
}
.border-success {
  border-color: #00897b !important;
}

.rounded-4 {
  border-radius: 10px !important;
}
.cursor-pointer {
  cursor: pointer;
}

/* Premium Tweaks */
.shadow-sm {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
}

.bg-light {
  background-color: #f8fafc !important;
}

.card.shadow-sm.rounded-4 {
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.card.shadow-sm.rounded-4:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08) !important;
}

#containerFaturasPendentes .text-danger {
  color: #ef4444 !important;
}
#containerFaturasPendentes .text-muted {
  color: #94a3b8 !important;
}

h4,
h5 {
  color: #1e293b;
  letter-spacing: -0.01em;
}

.btn-primary {
  background-color: #3b82f6;
  border-color: #3b82f6;
  box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
}

.btn-primary:hover {
  background-color: #2563eb;
  border-color: #2563eb;
}

.pointer {
  cursor: pointer;
}

/* Foco global para o input-group (incluir ícones) */
.input-group-focus-ring:focus-within {
  box-shadow: 0 0 0 0.25rem rgba(59, 130, 246, 0.25);
  border-radius: 0.375rem;
}

.input-group-focus-ring:focus-within .input-group-text,
.input-group-focus-ring:focus-within .form-control {
  border-color: #93c5fd !important;
}

.input-group-focus-ring .form-control:focus {
  box-shadow: none !important;
}

/* Segmented Control - Dashboard View Toggle */
.segmented-control {
  background-color: #f1f5f9;
  padding: 4px;
  border-radius: 10px;
  display: inline-flex;
  gap: 2px;
}

.segmented-control .btn {
  border: none;
  border-radius: 8px;
  padding: 6px 16px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #64748b;
  transition: all 0.2s ease;
}

.segmented-control .btn:hover {
  color: #334155;
  background-color: rgba(255, 255, 255, 0.5);
}

.segmented-control .btn.active {
  background-color: #fff;
  color: #0d6efd;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Avatar Selection */
.avatar-option, .avatar-option-modal {
  display: inline-block;
  transition: transform 0.2s;
}

.avatar-option:hover, .avatar-option-modal:hover {
  transform: scale(1.08);
}

.avatar-select-img, .avatar-select-img-modal {
  border-color: #dee2e6 !important;
}

.avatar-select-img.selected, .avatar-select-img-modal.selected {
  border-color: #DBAC34 !important; /* Ouro Metálico */
  box-shadow: 0 0 8px rgba(219, 172, 52, 0.4);
}

/* Avatar Profile Wrapper */
.avatar-profile-wrapper {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 20px auto;
  cursor: pointer;
}

.avatar-profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 3px solid #DBAC34 !important; /* Borda ouro metálico */
  transition: filter 0.2s ease;
}

.avatar-profile-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.avatar-profile-wrapper:hover .avatar-profile-overlay {
  opacity: 1;
}

.avatar-edit-icon {
  position: absolute;
  bottom: 0;
  left: 0; /* Canto inferior esquerdo */
  background-color: #DBAC34;
  color: #212529;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease;
}

.avatar-profile-wrapper:hover .avatar-edit-icon {
  transform: scale(1.1);
}
