/*  >>>>> BACKGROUND PARA VÍDEO DENTRO DA PASTA ASSETS/IMAGES <<<<< */

body.login_admin {
  position: relative;      /* Define posicionamento relativo para elementos filhos */
  min-height: 100vh;      /* Altura mínima de 100% da viewport (tela) */
  min-width: 100vw;       /* Largura mínima de 100% da viewport (tela) */
  overflow: hidden;       /* Esconde qualquer conteúdo que ultrapasse os limites */
  margin: 0;              /* Remove margens que podem causar espaços */
  padding: 0;             /* Remove padding que pode causar espaços */
  background: #000;       /* Cor de fundo preta caso o vídeo não carregue */
}

body.login_admin #login-bg-video {
  position: fixed;        /* Posicionamento fixo em relação à janela do navegador */
  top: 0;                /* Alinha o topo do vídeo com o topo da tela */
  left: 0;               /* Alinha a esquerda do vídeo com a esquerda da tela */
  width: 100vw;          /* Força largura de 100% da viewport */
  height: 100vh;         /* Força altura de 100% da viewport */
  min-width: 100vw;      /* Largura mínima de 100% da viewport */
  min-height: 100vh;     /* Altura mínima de 100% da viewport */
  z-index: -1;           /* Coloca o vídeo atrás de todos os outros elementos */
  object-fit: cover;     /* Faz o vídeo cobrir toda a área, cortando se necessário */
  object-position: center; /* Centraliza o vídeo, cortando laterais se preciso */
}

/*  >>>>> BACKGROUND PARA VÍDEO DO YOUTUBE NA TELA DE LOGIN <<<<< */
/* Use junto com um <iframe class="youtube-bg-iframe"> no PHP da tela de login (login_admin.php)*/
/*
body.login_admin .youtube-bg-iframe {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none; /* Impede interação com o vídeo *
  border: none;
  object-fit: cover;
  background: #000;
} */

/* REMOVE A PELÍCULA QUE SOBREPÕEM O PLANO DE FUNDO */
/*
body.login_admin:before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(31, 31, 31, 0.7);
    z-index: 0;
    pointer-events: none;
} */
/* ----------------------------------------- */

/*  >>>>> BACKGROUND PARA IMAGENS ONLINE <<<<< */
/* Remova isso se não quiser sobreposição de fundo na imagem ou ajuste conforme suas necessidades *
body.login_admin:before {
    content: " ";
    background: rgba(31, 31, 31, 0.7);
    min-height: 100%;
    min-width: 100%;
    position: absolute;
}
body.login_admin {
  background: url('https://franquiademarketingdigital.com.br/images/blog/marketing-digital-para-empresas.jpg') no-repeat center center fixed; /* A url da imagem completa *
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
} */
/* ----------------------------------------- */

/**
 * Estilos personalizados para o dashboard modernizado
 */

/* Reset e estilo base */
.custom-dashboard {
  background-color: #f8fafc;
  font-family: 'Inter', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  color: #1f2937;
}

.dashboard-content {
  padding: 30px 20px;
}

/* Seção de boas-vindas do dashboard */
.dashboard-welcome-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  background: linear-gradient(to right, #3b82f6, #10b981);
  padding: 20px;
  border-radius: 12px;
  color: white;
}

.dashboard-welcome-title {
  font-size: 24px;
  font-weight: 700;
  margin: 0;
  margin-bottom: 5px;
}

.dashboard-welcome-subtitle {
  font-size: 14px;
  opacity: 0.9;
  margin: 0;
}

.dashboard-date-info {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.15);
  padding: 8px 15px;
  border-radius: 8px;
}

.date-icon-container {
  margin-right: 10px;
}

.date-icon {
  color: white;
}

.current-date {
  font-size: 14px;
  font-weight: 500;
}

/* Cards de estatísticas rápidas */
.dashboard-quick-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.quick-stat-card {
  background-color: #ffffff;
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

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

.card-icon-container {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.card-icon-container svg {
  width: 24px;
  height: 24px;
  color: #ffffff;
}

/* Cores específicas para cada ícone */
.template-icon {
  background-color: #facc15;
}

.lead-icon {
  background-color: #3b82f6;
}

.contact-icon {
  background-color: #10b981;
}

.bot-icon {
  background-color: #4b5563;
}

.card-content {
  flex: 1;
}

.card-title {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #6b7280;
  margin: 0 0 8px 0;
}

.card-value {
  font-size: 32px;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 4px 0;
  line-height: 1.2;
}

.card-description {
  font-size: 14px;
  color: #6b7280;
  margin: 0;
}

/* Conteúdo principal do dashboard */
.dashboard-main-content {
  margin-top: 32px;
}

/* Container de widgets */
.dashboard-widgets-container {
  margin-top: 24px;
}

.dashboard-widgets-section {
  margin-bottom: 30px;
}

.dashboard-widgets-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Estilizando os widgets panels do Perfex */
.panel_s {
  background-color: #ffffff;
  border-radius: 16px;
  border: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  overflow: hidden;
  height: 100%;
}

.panel_s:hover {
  box-shadow: 0 20px 25px rgba(0, 0, 0, 0.1);
  transform: translateY(-3px);
}

.panel_s .panel-heading {
  background-color: #ffffff;
  padding: 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
}

.panel_s .panel-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
}

.panel_s .panel-body {
  padding: 20px;
}

/* Estilizando tabelas dentro dos painéis */
.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.table thead th {
  background-color: #f9fafb;
  color: #1f2937;
  font-weight: 600;
  padding: 12px 16px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  text-align: left;
}

.table tbody tr:hover {
  background-color: rgba(0, 0, 0, 0.02);
}

.table tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  color: #1f2937;
  font-size: 14px;
}

/* Responsividade */
@media (max-width: 1199px) {
  .dashboard-quick-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .dashboard-welcome-section {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .dashboard-date-info {
    margin-top: 16px;
    align-self: flex-start;
  }
  
  .dashboard-quick-stats {
    grid-template-columns: 1fr;
  }
  
  .dashboard-welcome-title {
    font-size: 24px;
  }
  
  .dashboard-welcome-subtitle {
    font-size: 14px;
  }
}

/* Componente para tabelas responsivas */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Utilitários */
.widget-icon {
  display: flex;
  align-items: center;
  margin-right: 12px;
}

.heading-icon {
  width: 20px;
  height: 20px;
  color: #3b82f6;
}

/* Status badges e indicadores */
.status-indicator {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 8px;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 500;
  border-radius: 8px;
  line-height: 1;
}

.badge-primary {
  background-color: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
}

.badge-success {
  background-color: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.badge-warning {
  background-color: rgba(250, 204, 21, 0.1);
  color: #facc15;
}

.badge-danger {
  background-color: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.badge-dark {
  background-color: rgba(75, 85, 99, 0.1);
  color: #4b5563;
}

/* Screen options button styling */
.dashboard-options-btn {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  padding: 8px 12px;
  transition: all 0.3s ease;
  color: #1f2937;
  display: flex;
  align-items: center;
}

.dashboard-options-btn:hover {
  background-color: #f9fafb;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Estilos para os widgets modernos de visão geral */
.modern-overview-widgets {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 25px;
}

.overview-widget {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

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

.widget-header {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.widget-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 16px;
}

.widget-icon svg {
  width: 24px;
  height: 24px;
  color: #ffffff;
}

.invoice-icon {
  background-color: #3b82f6;
}

.estimate-icon {
  background-color: #10b981;
}

.proposal-icon {
  background-color: #8b5cf6;
}

.purchase-icon {
  background-color: #ef4444;
}

.widget-title {
  font-size: 18px;
  font-weight: 600;
  color: #1f2937;
  margin: 0;
}

.widget-content {
  margin-bottom: 20px;
}

.status-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.status-item {
  margin-bottom: 16px;
  transition: all 0.3s ease;
  padding: 8px;
  border-radius: 8px;
}

.status-item:hover {
  background-color: #f9fafb;
  transform: translateX(5px);
}

.status-item:last-child {
  margin-bottom: 0;
}

.status-label {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}

.status-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 8px;
}

.status-text {
  font-size: 14px;
  color: #4b5563;
}

.status-value {
  font-size: 20px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 8px;
}

.progress-container {
  height: 8px;
  background-color: #f3f4f6;
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  border-radius: 4px;
  transition: width 0.5s ease;
}

/* Cores para os diferentes status */
.draft .status-dot, .draft-bar {
  background-color: #9ca3af;
}

.unpaid .status-dot, .unpaid-bar {
  background-color: #f59e0b;
}

.paid .status-dot, .paid-bar {
  background-color: #10b981;
}

.overdue .status-dot, .overdue-bar {
  background-color: #ef4444;
}

.sent .status-dot, .sent-bar {
  background-color: #3b82f6;
}

.open .status-dot, .open-bar {
  background-color: #6366f1;
}

.approved .status-dot, .approved-bar {
  background-color: #10b981;
}

.accepted .status-dot, .accepted-bar {
  background-color: #10b981;
}

.declined .status-dot, .declined-bar {
  background-color: #ef4444;
}

.expired .status-dot, .expired-bar {
  background-color: #9ca3af;
}

.pending .status-dot, .pending-bar {
  background-color: #f59e0b;
}

.processing .status-dot, .processing-bar {
  background-color: #3b82f6;
}

.completed .status-dot, .completed-bar {
  background-color: #10b981;
}

.canceled .status-dot, .canceled-bar {
  background-color: #ef4444;
}

.widget-footer {
  text-align: center;
}

.view-details {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  background-color: #f9fafb;
  color: #4b5563;
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.view-details:hover {
  background-color: #f3f4f6;
  color: #1f2937;
  text-decoration: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.view-details:after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(79, 70, 229, 0.3);
  opacity: 0;
  border-radius: 100%;
  transform: scale(1, 1) translate(-50%);
  transform-origin: 50% 50%;
}

.view-details:hover:after {
  animation: ripple 1.5s ease-out infinite;
}

@keyframes ripple {
  0% {
    transform: scale(0, 0);
    opacity: 0.5;
  }
  100% {
    transform: scale(20, 20);
    opacity: 0;
  }
}

@media (max-width: 991px) {
  .modern-overview-widgets {
    grid-template-columns: 1fr;
  }
}

/* Estilos para os cards de estatísticas modernos */
.modern-stats-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 30px;
}

.modern-stat-card {
  background-color: #ffffff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
}

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

.modern-stat-card .card-icon-container {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 16px;
  flex-shrink: 0;
}

.modern-stat-card .card-icon-container svg {
  width: 22px;
  height: 22px;
  color: #ffffff;
}

.modern-stat-card .card-content {
  flex: 1;
}

.modern-stat-card .card-title {
  font-size: 13px;
  font-weight: 600;
  color: #6b7280;
  margin: 0 0 8px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.modern-stat-card .stat-value {
  font-size: 20px;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 8px 0;
}

.modern-stat-card .progress-bar-container {
  height: 6px;
  background-color: #f3f4f6;
  border-radius: 4px;
  overflow: hidden;
}

.modern-stat-card .progress-bar {
  height: 100%;
  border-radius: 4px;
  transition: width 0.5s ease;
}

/* Cores específicas para cada tipo de card */
.invoice-card .card-icon-container {
  background-color: #3b82f6;
}

.invoice-card .progress-bar {
  background-color: #3b82f6;
}

.leads-card .card-icon-container {
  background-color: #10b981;
}

.leads-card .progress-bar {
  background-color: #10b981;
}

.projects-card .card-icon-container {
  background-color: #8b5cf6;
}

.projects-card .progress-bar {
  background-color: #8b5cf6;
}

.tasks-card .card-icon-container {
  background-color: #f59e0b;
}

.tasks-card .progress-bar {
  background-color: #f59e0b;
}

/* Responsividade para os cards de estatísticas modernos */
@media (max-width: 1199px) {
  .modern-stats-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .modern-stats-cards {
    grid-template-columns: 1fr;
  }
}

/* Estilos para o widget de Funil de Conversão de Propostas */
.widget-proposal-funnel {
  padding: 10px 0;
}

.funnel-header {
  text-align: center;
  margin-bottom: 25px;
}

.funnel-title {
  font-size: 18px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 5px;
}

.funnel-subtitle {
  font-size: 14px;
  color: #6b7280;
}

.conversion-rate {
  font-weight: 700;
  color: #3b82f6;
  position: relative;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

.funnel-chart-container {
  margin: 0 auto;
  max-width: 600px;
}

.funnel-step {
  margin-bottom: 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.funnel-bar {
  height: 60px;
  background-color: #e5e7eb;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 15px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: width 1s ease-in-out;
  position: relative;
  overflow: hidden;
  min-width: 120px;
  max-width: 100%;
}

.funnel-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0) 100%);
  transform: translateX(-100%);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  100% {
    transform: translateX(100%);
  }
}

.funnel-label {
  font-weight: 600;
  color: #ffffff;
  z-index: 1;
}

.funnel-value {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  z-index: 1;
}

.funnel-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 10px 0;
}

.arrow-down {
  width: 0;
  height: 0;
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-top: 15px solid #9ca3af;
  margin-bottom: 5px;
  transition: all 0.3s ease;
}

.funnel-arrow:hover .arrow-down {
  transform: translateY(5px);
  border-top-width: 20px;
}

.funnel-arrow:hover .conversion-percentage {
  font-weight: 700;
  color: #3b82f6;
}

.conversion-percentage {
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
}

.funnel-outcome {
  display: flex;
  justify-content: space-between;
  width: 100%;
  gap: 20px;
}

.funnel-outcome .funnel-bar {
  flex: 1;
}

.last-step {
  width: 100%;
}

/* Cores específicas para cada barra do funil */
.draft-bar {
  background-color: #8b5cf6;
  width: 100%;
}

.open-bar {
  background-color: #3b82f6;
  width: 75%;
}

.accepted-bar {
  background-color: #10b981;
  width: 50%;
}

.declined-bar {
  background-color: #ef4444;
  width: 50%;
}

.funnel-footer {
  text-align: center;
  margin-top: 20px;
}

.view-all-link {
  display: inline-block;
  padding: 8px 16px;
  background-color: #f3f4f6;
  color: #4b5563;
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.view-all-link:hover {
  background-color: #e5e7eb;
  color: #1f2937;
  text-decoration: none;
}

/* Responsividade para o widget de funil */
@media (max-width: 768px) {
  .funnel-outcome {
    flex-direction: column;
    gap: 15px;
  }
}

/* Efeito de brilho para as barras do funil */
.shine-effect {
  position: relative;
  overflow: hidden;
}

.shine-effect::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(30deg);
  opacity: 0;
}

.animate-shine::before {
  animation: shine 3s ease-in-out infinite;
}

@keyframes shine {
  0% {
    transform: rotate(30deg) translateX(-300%);
    opacity: 0;
  }
  20% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: rotate(30deg) translateX(300%);
    opacity: 0;
  }
}

/* Estilos para o gráfico donut de propostas */
.proposal-donut-chart-widget {
  padding: 10px 0;
}

.donut-chart-container {
  position: relative;
  margin: 0 auto;
  max-width: 500px;
}

.chart-wrapper {
  position: relative;
  margin: 0 auto;
  width: 100%;
  max-width: 300px;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chart-center-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 100px;
  height: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
  pointer-events: none;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
}

.total-value {
  font-size: 28px;
  font-weight: 700;
  color: #1f2937;
  line-height: 1;
  margin-bottom: 5px;
}

.total-label {
  font-size: 14px;
  color: #6b7280;
  font-weight: 500;
}

.status-icons {
  position: absolute;
  height: 40px;
  width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
}

.status-icon {
  display: none;
  width: 100%;
  height: 100%;
  transition: all 0.3s ease;
}

.status-icon svg {
  width: 100%;
  height: 100%;
}

.draft-icon svg {
  color: #8b5cf6;
}

.open-icon svg {
  color: #3b82f6;
}

.accepted-icon svg {
  color: #10b981;
}

.declined-icon svg {
  color: #ef4444;
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  padding: 0 15px;
}

.legend-item {
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 8px;
  transition: all 0.3s ease;
  background-color: rgba(255, 255, 255, 0.8);
}

.legend-item:hover, .legend-item.active {
  background-color: rgba(243, 244, 246, 0.7);
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.legend-color {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  margin-right: 8px;
  flex-shrink: 0;
}

.draft-legend .legend-color {
  background-color: #8b5cf6;
}

.open-legend .legend-color {
  background-color: #3b82f6;
}

.accepted-legend .legend-color {
  background-color: #10b981;
}

.declined-legend .legend-color {
  background-color: #ef4444;
}

.legend-text {
  font-size: 14px;
  color: #4b5563;
  margin-right: 8px;
  white-space: nowrap;
}

.legend-value {
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
  min-width: 24px;
  text-align: center;
  background-color: #f3f4f6;
  border-radius: 12px;
  padding: 2px 8px;
  flex-shrink: 0;
}

.chart-footer {
  text-align: center;
  margin-top: 20px;
}

.chart-error-message {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(255, 255, 255, 0.95);
  border: 1px solid #ef4444;
  color: #ef4444;
  padding: 15px;
  border-radius: 8px;
  text-align: center;
  max-width: 80%;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 20;
}

/* Animações para o gráfico donut */
@keyframes pulse-icon {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

.status-icon.active svg {
  animation: pulse-icon 1.5s infinite;
}

/* Responsividade para o gráfico */
@media (max-width: 576px) {
  .chart-legend {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .legend-item {
    width: 100%;
    justify-content: space-between;
  }
  
  .chart-wrapper {
    width: 160px;
    height: 160px;
  }
}

/* Fallback para quando o Chart.js não carrega ou tem erro */
.proposal-fallback {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background-color: #f3f4f6;
  border-radius: 16px;
  padding: 20px;
  margin-top: 15px;
}

.fallback-total {
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 10px;
}

.fallback-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 15px;
  background-color: white;
  border-radius: 8px;
}

.fallback-label {
  display: flex;
  align-items: center;
}

.fallback-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 10px;
}

/* Estilos específicos para o gráfico SVG */
.donut-chart-svg {
  overflow: visible;
}

.donut-segment {
  cursor: pointer;
  transition: transform 0.3s ease, opacity 0.5s ease;
}

.donut-segment:hover {
  filter: brightness(1.1);
}

.donut-hole {
  pointer-events: none;
}

/* Estilo para tooltip nativo do SVG (funciona em navegadores modernos) */
svg title {
  font-family: 'Inter', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  font-size: 12px;
}

/* Animação para gráficos SVG */
@keyframes fillSegment {
  from {
    stroke-dasharray: 0 100;
  }
  to {
    stroke-dasharray: 100 0;
  }
}

/* Adaptações para melhorar a aparência em dispositivos móveis */
@media (max-width: 576px) {
  .donut-chart-svg {
    max-width: 200px;
    max-height: 200px;
  }
}

/* Estilos para o Widget de Análise de Clientes */
.client-analytics-widget {
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
}

.client-analytics-widget:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.1);
}

.client-analytics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 5px 0;
}

.analytics-card {
    background-color: #f9fafb;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.2s ease;
}

.analytics-card:hover {
    background-color: #f3f4f6;
    transform: translateY(-2px);
}

.analytics-card .card-value {
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 5px 0;
    line-height: 1.2;
}

.analytics-card .card-label {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    font-weight: 500;
}

.trend-indicator {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin-top: 8px;
}

.trend-indicator.positive {
    background-color: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.trend-indicator.negative {
    background-color: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.trend-icon {
    margin-right: 4px;
}

/* Estilo para o gráfico donut */
.donut-chart-wrapper {
    position: relative;
    width: 70px;
    height: 70px;
    margin: 0 auto;
}

.donut-center-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.active-percentage {
    font-size: 14px;
    font-weight: 700;
    color: #1f2937;
}

.chart-legend {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
}

.legend-item {
    display: flex;
    align-items: center;
    font-size: 12px;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 2px;
    margin-right: 8px;
}

.active-legend .legend-color {
    background-color: #10b981;
}

.inactive-legend .legend-color {
    background-color: #d1d5db;
}

.legend-text {
    flex: 1;
    color: #6b7280;
}

.legend-value {
    font-weight: 600;
    color: #1f2937;
}

/* Estilo para o sparkline */
.sparkline-container {
    margin-top: 16px;
    height: 30px;
}

/* Estilo para barra de progresso do país */
.top-country .progress-container {
    height: 6px;
    background-color: #e5e7eb;
    border-radius: 3px;
    margin-top: 16px;
    overflow: hidden;
}

.top-country .progress-bar {
    height: 100%;
    background-color: #3b82f6;
    border-radius: 3px;
    transition: width 1s ease-out;
}

.percentage-label {
    font-size: 12px;
    color: #6b7280;
    margin-top: 4px;
    text-align: right;
}

/* Responsividade para o widget de clientes */
@media (max-width: 1199px) {
    .client-analytics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .client-analytics-grid {
        grid-template-columns: 1fr;
    }
}

/* Estilos para o Widget de Distribuição Geográfica *
.client-geo-widget {
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
}

.client-geo-widget:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.1);
}

.geo-distribution-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.top-countries {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.country-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    border-radius: 8px;
    background-color: #f9fafb;
    transition: all 0.2s ease;
    position: relative;
}

.country-item:hover {
    background-color: #f3f4f6;
    transform: translateY(-2px);
}

.highlight-country {
    background-color: #f0f9ff;
    border-left: 3px solid #3b82f6;
}

.country-name-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.country-rank {
    background-color: #e5e7eb;
    color: #4b5563;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
}

.highlight-country .country-rank {
    background-color: #3b82f6;
    color: white;
}

.country-name {
    font-weight: 600;
    color: #1f2937;
    font-size: 14px;
}

.country-data {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.country-count {
    font-weight: 600;
    color: #1f2937;
    font-size: 16px;
}

.country-percentage {
    font-size: 12px;
    color: #6b7280;
}

.country-progress-container {
    width: 100%;
    height: 4px;
    background-color: #e5e7eb;
    border-radius: 2px;
    overflow: hidden;
}

.country-progress-bar {
    height: 100%;
    background-color: #3b82f6;
    border-radius: 2px;
    transition: width 1s ease-out;
}

.highlight-country:nth-child(1) .country-progress-bar {
    background-color: #3b82f6; /* Azul *
}

.highlight-country:nth-child(2) .country-progress-bar {
    background-color: #10b981; /* Verde *
}

.highlight-country:nth-child(3) .country-progress-bar {
    background-color: #facc15; /* Amarelo *
}

.geo-chart-container {
    position: relative;
    height: 180px;
    margin-top: 10px;
}

.geo-stat {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 8px 12px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.geo-stat-value {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
}

.geo-stat-label {
    font-size: 12px;
    color: #6b7280;
}

@media (max-width: 991px) {
    .geo-distribution-container {
        flex-direction: column;
    }
    
    .geo-chart-container {
        height: 200px;
    }
}

/* Seção de análise de leads *
.leads-analysis-section {
    margin-bottom: 25px;
}

.section-title {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: #1e293b;
}

.section-title i {
    font-size: 18px;
    color: #3b82f6;
    margin-right: 10px;
}

.section-title h2 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.leads-dashboard-row {
    display: flex;
    gap: 20px;
    align-items: stretch;
}

.leads-stats-wrapper {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
}

.leads-source-wrapper {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.leads-funnel-wrapper {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.leads-source-container-compact, 
.funnel-container {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Garante que os widgets tenham a mesma altura *
.leads-stats-section {
    height: 100%;
    margin-bottom: 0;
}

.leads-cards-container {
    height: 100%;
    display: flex;
    gap: 20px;
}

.leads-stats-cards {
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex: 1;
    width: 100%;
    height: 100%;
    justify-content: space-between;
}

.lead-stat-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    padding: 18px;
    min-height: 106px;
    display: flex;
    flex-direction: column;
}

.lead-stat-content {
    display: flex;
    align-items: flex-start;
    position: relative;
    flex: 1;
}

.icon-container {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    right: 0;
    flex-shrink: 0;
    z-index: 2;
}

.icon-container i {
    font-size: 16px;
}

.lead-stat-card.converted .icon-container {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.lead-stat-card.conversion .icon-container {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.lead-stat-card.lost .icon-container {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.lead-stat-card.negotiation .icon-container {
    background: rgba(249, 115, 22, 0.1);
    color: #f97316;
}

.stat-info {
    flex: 1;
    padding-right: 45px;
}

.stat-label {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-total {
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 2px;
    color: #0f172a;
}

.stat-value {
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 5px;
}

.lead-stat-card.converted .stat-value {
    color: #10b981;
}

.lead-stat-card.lost .stat-value {
    color: #ef4444;
}

.stat-percentage {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
}

.percentage-badge {
    background: #f8fafc;
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 16px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    min-width: 48px;
    text-align: center;
}

.stat-percentage.success { color: #10b981; }
.stat-percentage.warning { color: #f59e0b; }
.stat-percentage.danger { color: #ef4444; }

.stat-footer {
    margin-top: auto;
    padding-left: 55px;
}

.stat-description {
    font-size: 10px;
    color: #64748b;
}

.progress-bar-container {
    height: 8px;
    background: #f1f5f9;
    border-radius: 4px;
    overflow: hidden;
    width: 100%;
    margin-top: 8px;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #10b981);
    border-radius: 4px;
}

.lead-stat-card.lost .progress-bar {
    background: linear-gradient(90deg, #f97316, #ef4444);
}

/* Correções para o layout responsivo *
@media (max-width: 992px) {
    .leads-dashboard-row {
        flex-direction: column;
    }
    
    .leads-widgets-secondary-row {
        flex-direction: column;
    }
    
    .widget-column {
        margin-bottom: 20px;
    }
    
    .donut-chart-container {
        height: 200px;
    }
    
    .sources-ranking {
        max-height: 200px;
    }
} */
/*
 Ajuste para garantir que o gráfico de rosca seja visível *
canvas#leadsSourceDonutChart {
    max-width: 100%;
    height: auto !important;
    max-height: 250px;
    display: block;
}

/* Estilos para o fallback do gráfico *
.chart-fallback {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
}

/* Estilos para o Widget de Origem de Leads *
.leads-source-container-compact {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.widget-header-compact {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid #f1f5f9;
    background-color: #ffffff;
}

.widget-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
}

.lead-source-icon {
    background: rgba(59, 130, 246, 0.1);
}

.lead-source-icon i {
    color: #3b82f6;
    font-size: 14px;
}

.widget-title {
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.widget-content {
    padding: 15px;
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Novo estilo para o resumo total de leads *
.total-leads-summary {
    text-align: center;
    padding: 10px;
    background-color: #f8fafc;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.total-leads-label {
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
}

.total-leads-value {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
}

/* Estilo para a distribuição de leads resumida *
.leads-distribution-summary {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.distribution-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background-color: #f9fafb;
    border-radius: 8px;
    border-left: 4px solid #e2e8f0;
    transition: all 0.2s ease;
}

.distribution-item:hover {
    transform: translateX(3px);
    background-color: #f1f5f9;
}

.source-name {
    font-size: 13px;
    font-weight: 500;
    color: #334155;
}

.source-stats {
    display: flex;
    align-items: center;
    gap: 4px;
}

.source-count {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
}

.source-percentage {
    font-size: 12px;
    color: #64748b;
}

/* Wrapper para o gráfico de rosca *
.chart-wrapper {
    flex: 1;
    min-height: 180px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    position: relative;
    width: 220px;
}

canvas#leadsSourceDonutChart {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    max-height: 100%;
}

.donut-chart-container {
    height: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
    position: relative;
}

.ranking-title {
    display: flex;
    align-items: center;
    padding-bottom: 8px;
    border-bottom: 1px solid #ffffff;
    margin-bottom: 10px;
}

.ranking-title i {
    color: #f59e0b;
    font-size: 14px;
    margin-right: 8px;
}

.ranking-title span {
    font-size: 14px;
    font-weight: 600;
    color: #334155;
}

.sources-ranking {
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
    max-height: 150px;
}

.ranking-item {
    display: flex;
    align-items: center;
    padding: 8px;
    border-radius: 6px;
    background-color: #f8fafc;
    transition: all 0.2s ease;
}

.ranking-item:hover {
    background-color: #f1f5f9;
    transform: translateX(3px);
}

.rank-position {
    width: 24px;
    height: 24px;
    background-color: #e2e8f0;
    color: #475569;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    margin-right: 10px;
}

.ranking-item.top-rank-1 .rank-position {
    background-color: #fcd34d;
    color: #92400e;
}

.ranking-item.top-rank-2 .rank-position {
    background-color: #d1d5db;
    color: #374151;
}

.ranking-item.top-rank-3 .rank-position {
    background-color: #d97706;
    color: #fff;
}

.rank-info {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.rank-name-container {
    display: flex;
    align-items: center;
}

.rank-color-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
}

.rank-name {
    font-size: 13px;
    color: #1e293b;
    font-weight: 500;
}

.rank-stats {
    text-align: right;
}

.rank-count {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
}

.rank-percentage {
    font-size: 12px;
    color: #64748b;
    margin-left: 4px;
}

.empty-sources-message {
    padding: 12px;
    text-align: center;
    color: #64748b;
    font-style: italic;
    font-size: 11px;
} */

/* Correções para o layout responsivo *
@media (max-width: 992px) {
    .leads-dashboard-row {
        flex-direction: column;
    }
    
    .leads-widgets-secondary-row {
        flex-direction: column;
    }
    
    .widget-column {
        margin-bottom: 20px;
    }
    
    .donut-chart-container {
        height: 200px;
    }
    
    .sources-ranking {
        max-height: 200px;
    }
} */

/* Correções adicionais para dispositivos móveis *
@media (max-width: 576px) {
    .chart-wrapper {
        width: 160px;
        height: 160px;
    }
    
    .distribution-item {
        padding: 8px 10px;
    }
    
    .total-leads-value {
        font-size: 16px;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .chart-wrapper {
        width: 150px;
        height: 150px;
    }
    
    .sources-ranking {
        max-height: 110px;
    }
}

/* Estilo específico para aumentar altura do card de negociação *
.lead-stat-card.negotiation {
    min-height: 130px; /* Aumentado da altura padrão de 106px *
    padding: 20px; /* Aumentar o padding interno *
}

/* Ajuste da barra de progresso no card de negociação *
.lead-stat-card.negotiation .progress-bar-container {
    margin-top: 12px; /* Aumentar o espaço antes da barra de progresso *
}

/* Melhorar estilo da descrição de projeção *
.lead-stat-card.negotiation .stat-description {
    font-size: 11px;
    margin-top: 4px;
    margin-bottom: 4px;
    color: #475569;
}

/* Ajuste adicional para o ícone nos cards */
/* .icon-container {
    z-index: 2; 
} *

.lead-stat-card.conversion .stat-info,
.lead-stat-card.negotiation .stat-info {
    padding-right: 45px; /* Ajuste específico para cards com descrição *
}

/* Ajuste adicional para tamanhos de tela pequenos *
@media (max-width: 576px) {
    .icon-container {
        width: 36px;
        height: 36px;
    }
    
    .icon-container i {
        font-size: 14px;
    }
    
    .stat-info {
        padding-right: 40px;
    }
    
    .chart-wrapper {
        width: 160px;
        height: 160px;
    }
    
    .distribution-item {
        padding: 8px 10px;
    }
    
    .total-leads-value {
        font-size: 16px;
    }
}

/* Responsividade *
@media (max-width: 1400px) {
    .modern-overview-widgets {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    .leads-dashboard-row {
        flex-direction: column;
    }
    
    .leads-stats-wrapper,
    .leads-source-wrapper,
    .leads-funnel-wrapper {
        width: 100%;
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .modern-overview-widgets {
        grid-template-columns: 1fr;
    }
    
    .dashboard-welcome-section {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .dashboard-date-info {
        margin-top: 15px;
    }
}

/* ================= ESTILOS PARA ÍCONES PERSONALIZADOS DO SIDEBAR ================= */

/* Estilos para ícones de imagem personalizados no menu lateral */
.sidebar ul.nav li a .menu-icon.custom-menu-icon {
    /* Esconde o ícone FontAwesome quando uma imagem personalizada está sendo usada */
    display: none !important;
}

/* Estilos para imagens de ícones personalizados SIDEBAR */
.sidebar ul.nav li a .menu-icon-img {
    /* Configurações básicas da imagem */
    width: 26px !important; /* Largura da imagem SIDEBAR - TESTADO POR ADEYCSON */
    height: 26px !important; /* Altura da imagem SIDEBAR - TESTADO POR ADEYCSON */
    display: inline-block !important;
    vertical-align: middle !important;
    margin-right: 10px !important; /* Espaçamento entre a imagem e o texto */
    background-size: contain !important; /* Garante que a imagem se ajuste ao container */
    background-repeat: no-repeat !important;
    background-position: center !important;
    object-fit: contain !important; /* Mantém a proporção da imagem */
}



/* Estilos para ícones personalizados em submenus */
.sidebar ul.nav li .nav-second-level li a .menu-icon-img {
    /* Tamanho menor para submenus */
    width: 32px !important; /* Largura para submenus - AUMENTADO */
    height: 32px !important; /* Altura para submenus - AUMENTADO */
    margin-right: 8px !important; /* Espaçamento menor para submenus */
}

/* Estilos para ícones personalizados no menu de definições */
#setup-menu li a .menu-icon-img {
    /* Tamanho para ícones no menu de definições */
    width: 35px !important; /* Largura para menu de definições - AUMENTADO */
    height: 35px !important; /* Altura para menu de definições - AUMENTADO */
    margin-right: 10px !important; /* Espaçamento para menu de definições */
}

/* Efeitos hover para ícones personalizados */
.sidebar ul.nav li a:hover .menu-icon-img,
.sidebar ul.nav li.active a .menu-icon-img {
    /* Efeito de transição suave no hover */
    transform: scale(1.2) !important; /* Aumenta ligeiramente o tamanho no hover */
    transition: transform 0.2s ease !important;
}

/* Estilos para ícones personalizados em telas menores */
@media (max-width: 768px) {
    .sidebar ul.nav li a .menu-icon-img {
        /* Tamanho menor em dispositivos móveis */
        width: 30px !important; /* AUMENTADO de 18px para 30px */
        height: 30px !important; /* AUMENTADO de 18px para 30px */
        margin-right: 8px !important;
    }
    
    .sidebar ul.nav li.menu-item-customizacoes a .menu-icon-img {
        /* Tamanho específico para Customizações em mobile */
        width: 32px !important; /* AUMENTADO de 20px para 32px */
        height: 32px !important; /* AUMENTADO de 20px para 32px */
    }
}

/* Estilos para ícones personalizados em telas muito pequenas */
@media (max-width: 480px) {
    .sidebar ul.nav li a .menu-icon-img {
        /* Tamanho ainda menor em telas muito pequenas */
        width: 28px !important; /* AUMENTADO de 16px para 28px */
        height: 28px !important; /* AUMENTADO de 16px para 28px */
        margin-right: 6px !important;
    }
    
    .sidebar ul.nav li.menu-item-customizacoes a .menu-icon-img {
        /* Tamanho específico para Customizações em telas muito pequenas */
        width: 30px !important; /* AUMENTADO de 18px para 30px */
        height: 30px !important; /* AUMENTADO de 18px para 30px */
    }
}

/* ================= FIM DOS ESTILOS PARA ÍCONES PERSONALIZADOS ================= */

/* ================= ESTILOS PARA FONTE DO MENU MAIS EM NEGRITO ================= */

/* Menu principal do sidebar - fonte mais em negrito */
.sidebar ul.nav li a {
    font-weight: 600 !important; /* Aumentado de 400/500 para 600 (semi-bold) */
    letter-spacing: -0.01em;
}

/* Submenus do menu lateral - fonte um pouco mais em negrito */
.sidebar ul.nav li .nav-second-level li a {
    font-weight: 500 !important; /* Aumentado de 400 para 500 (medium) */
}

/* Menu de definições - fonte mais em negrito */
#setup-menu li a {
    font-weight: 600 !important; /* Aumentado de 400/500 para 600 (semi-bold) */
    letter-spacing: -0.01em;
}

/* Submenus do menu de definições */
#setup-menu li .nav-second-level li a {
    font-weight: 500 !important; /* Aumentado de 400 para 500 (medium) */
}

/* Menu mobile - fonte mais em negrito */
@media (max-width: 768px) {
    .mobile-menu ul.mobile-icon-menu > li > a {
        font-weight: 600 !important;
    }
    
    .mobile-menu .dropdown-menu > li > a {
        font-weight: 500 !important;
    }
}

/* ================= FIM DOS ESTILOS PARA FONTE DO MENU ================= */

/* ===== PERSONALIZAÇÕES DO NAVBAR ===== */
/* 
 * PERSONALIZAÇÃO: Estilos CSS para ícones personalizados do navbar
 * - Substituição de ícones SVG/FontAwesome por imagens PNG
 * - Tamanho consistente: 20px desktop, 18px mobile
 * - Efeitos de hover com escala e brilho
 * - Responsividade para diferentes telas
 */

/* PERSONALIZAÇÃO: Ícones personalizados do navbar - TRECHO APENAS ALINHA OS ÍCONES FUNCIONANDO E TESTADO POR ADEYCSON */
.navbar-nav .icon img {
    vertical-align: middle !important;
    display: inline-block !important;
    object-fit: contain;
    transition: all 0.2s ease;
}

/* PERSONALIZAÇÃO: Hover effect para ícones do navbar */
.navbar-nav .icon a:hover img {
    transform: scale(1.5); /* aumenta o tamanho do ícone/imagem ao passar o mouse por cima */
    filter: brightness(1.1); /* aplica um brilho no ícone/imagem ao passar o mouse por cima */
}

/* PERSONALIZAÇÃO: Ícone de quick create (mais) - Tamanho e alinhamento padrão */
.icon-mais-navbar {
    width: 35px !important;      /* Largura do ícone 'mais.png' */
    height: 35px !important;     /* Altura do ícone 'mais.png' */
    object-fit: contain;
    vertical-align: middle !important; /* Alinha verticalmente com os outros ícones */
    display: inline-block !important;
    /* Não usar margin-left, margin-right ou margin negativa */
    transition: all 0.2s ease;
}
@media (max-width: 991px) {
    .icon-mais-navbar {
        width: 28px !important;
        height: 28px !important;
    }
}

/* PERSONALIZAÇÃO: Alinhamento vertical do ícone 'mais.png' (Quick Create) no navbar */
.navbar-nav .icon > a[data-toggle="dropdown"] {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 57px; /* igual ao padrão do navbar */
    padding: 0 !important;
}

/* PERSONALIZAÇÃO: Ajuste para todos os ícones PNG do navbar (exceto o ícone 'mais.png')
 *
 * Para alterar o TAMANHO dos ícones do navbar, ajuste os valores de width e height abaixo:
 * Exemplo: width: 24px; height: 24px;
 */
.navbar-icon-png {
    width: 26px !important;   /* <-- Ajuste aqui a largura dos ícones do navbar */
    height: 26px !important;  /* <-- Ajuste aqui a altura dos ícones do navbar */
    object-fit: contain;
    vertical-align: middle !important;
    display: inline-block !important;
    transition: all 0.2s ease;
}
@media (max-width: 991px) {
    .navbar-icon-png {
        width: 20px !important;   /* <-- Ajuste aqui a largura dos ícones do navbar em telas menores */
        height: 20px !important;  /* <-- Ajuste aqui a altura dos ícones do navbar em telas menores */
    }
}

/* PERSONALIZAÇÃO: Espaçamento igual entre ícones do navbar
 *
 * Para alterar o ESPAÇAMENTO HORIZONTAL entre os ícones do navbar, ajuste o valor de margin-right abaixo:
 * Exemplo: margin-right: 15px;
 */
.navbar-nav .icon {
    margin-right: 15px !important;  /* <-- Ajuste aqui o espaçamento horizontal entre todos os ícones do navbar */
}
.navbar-nav .icon:last-child {
    margin-right: 0 !important;    /* <-- O último ícone não recebe espaçamento à direita */
}
@media (max-width: 991px) {
    .navbar-nav .icon {
        margin-right: 10px !important;
    }
    .navbar-nav .icon:last-child {
        margin-right: 0 !important;
    }
}
@media (max-width: 480px) {
    .navbar-nav .icon {
        margin-right: 8px !important;
    }
    .navbar-nav .icon:last-child {
        margin-right: 0 !important;
    }
}

/* PERSONALIZAÇÃO: Redução do padding interno dos links dos ícones */
.navbar-nav .icon a {
    padding-left: 5px !important;
    padding-right: 5px !important;
}

/* PERSONALIZAÇÃO: Ajuste para ícone de quick create (removido seletor antigo que afetava configurações) */
/* Removido: .navbar-nav .icon a[data-toggle="dropdown"] { ... } */

/* Removido: .navbar-icon-img e .menu-icon-img pois não são mais utilizados para navbar/sidebar */

/* ================= FIM DO ESPAÇAMENTO ENTRE ÍCONES DO NAVBAR ================= */

/* ===== FIM DAS PERSONALIZAÇÕES DO NAVBAR ===== */

/* PERSONALIZAÇÃO: Tamanho do logotipo do navbar */
.navbar-logo {
    height: 38px;         /* Altura do logotipo no menu superior (navbar) */
    width: auto;          /* Largura automática para não distorcer a imagem */
    max-width: 140px;     /* Largura máxima permitida para o logotipo */
    object-fit: contain;  /* Garante que a imagem fique inteira e sem cortes */
}

@media (max-width: 768px) {
    .navbar-logo {
        height: 28px;         /* Altura do logotipo no menu superior em telas pequenas (celular/tablet) */
        max-width: 120px;     /* Largura máxima do logotipo em telas pequenas */
    }
}
/* ================= FIM DO TAMANHO DO LOGOTIPO DO NAVBAR ================= */

/* PERSONALIZAÇÃO White Label: Tamanho do logotipo da tela de RODAPÉ login (uma tecnologia...) */
.login-logo {
    height: 22px;         /* Altura do logotipo na tela de login (menor) */
    width: auto;          /* Largura automática para não distorcer a imagem */
    max-width: 110px;      /* Largura máxima permitida para o logotipo de login */
    object-fit: contain;  /* Garante que a imagem fique inteira e sem cortes */
}

@media (max-width: 768px) {
    .login-logo {
        height: 16px;         /* Altura do logotipo na tela de login em telas pequenas */
        max-width: 60px;      /* Largura máxima do logotipo em telas pequenas */
    }
}
/* ================= FIM DO TAMANHO DO LOGOTIPO DA TELA DE LOGIN ================= */

/* REMOÇÃO DO MOVIMENTO EM HOVER NOS CONTAINERS */
.client-analytics-widget:hover,
.analytics-card:hover,
.panel_s:hover,
.overview-widget:hover,
.modern-stat-card:hover {
    transform: none !important; /* Remove o movimento ao passar o mouse */
}
/* FIM DA REMOÇÃO DO MOVIMENTO EM HOVER */

/* Garante alinhamento e posicionamento correto do ícone de notificações no navbar */
.navbar-nav .notifications-icon {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 57px !important;
    padding: 0 !important;
}

.navbar-nav .notifications-icon .navbar-icon-png {
    margin: 0 !important;
    vertical-align: middle !important;
    display: inline-block !important;
    /* Ajuste fino, aumente se necessário */
    margin-top: 2px;
}

@media (min-width: 992px) {
    .navbar-nav .notifications-icon .navbar-icon-png {
        margin-top: 10px !important; /* ajuste até alinhar visualmente */
    }
}

/* PERSONALIZAÇÃO: Linha pontilhada para separar grupos de menus no sidebar */
.sidebar-divider {
    border: none;
    border-top: 1px dashed #bdbdbd;
    margin: 8px 0;
    height: 0;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.7;
}

/* PERSONALIZAÇÃO: Separador de seção no sidebar com linha pontilhada e texto pequeno */
.sidebar-section-separator {
    display: flex;
    align-items: center;
    width: 90%;
    margin: 10px auto;
    color: #888;
    font-size: 11px;
    font-weight: 400;
    opacity: 0.8;
}
.sidebar-section-separator::before,
.sidebar-section-separator::after {
    content: '';
    flex: 1;
    border-top: 1px dashed #bdbdbd;
    margin: 0 8px;
    opacity: 0.7;
}
.sidebar-section-separator span {
    white-space: nowrap;
    font-size: 11px;
    letter-spacing: 0.5px;
    color: #888;
}

/* PERSONALIZAÇÃO: Branding no rodapé do sidebar */
.sidebar-branding {
    text-align: center;
    margin: 32px 0 12px 0;
    padding: 0 8px;
    font-size: 13px;
    color: #6b7280;
    opacity: 0.85;
}
.sidebar-branding img {
    display: block;
    margin: 4px auto 0 auto;
    max-width: 110px;
    height: auto;
}
@media (max-width: 991px) {
    .sidebar-branding {
        font-size: 11px;
        margin: 18px 0 8px 0;
    }
    .sidebar-branding img {
        max-width: 80px;
    }
}

.authentication-form-wrapper {
    margin-bottom: 56px;
}
@media (max-width: 600px) {
    .authentication-form-wrapper {
        margin-bottom: 32px;
    }
}

/* AJUSTA O TAMANHO DO LOGOTIPO DA TELA DE LOGIN */
.company-logo img {
  max-width: 180px;        /* Largura máxima do logotipo em telas grandes */
  height: auto;            /* Altura automática para manter proporção da imagem */
}
@media (max-width: 600px) {
  .company-logo img {
      max-width: 120px;    /* Largura máxima do logotipo em telas pequenas (mobile) */
  }
}

.company-logo {
    padding: 10px 10px;    /* Espaçamento interno: 25px topo/baixo, 10px laterais */
    display: block;        /* Exibe como bloco para ocupar toda a largura disponível */
    margin-top: 5px;       /* Distância do logotipo em relação ao topo da página */
}
@media (max-width: 600px) {
    .company-logo {
        margin-top: 2px;   /* Distância reduzida do logotipo ao topo em mobile */
    }
}

.menu-logo-horizontal > a {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  padding: 8px 0 !important;
  background: transparent !important;
}
.menu-logo-horizontal .menu-icon-img {
  max-width: 180px !important;   /* Largura máxima do logo horizontal */
  height: 40px !important;       /* Altura máxima do logo horizontal */
  width: auto !important;
  opacity: 0.85 !important;      /* Controle de transparência */
  margin: 0 auto !important;     /* Centraliza horizontalmente */
  display: block !important;
  object-fit: contain !important;
}
@media (max-width: 600px) {
  .menu-logo-horizontal .menu-icon-img {
    max-width: 120px !important;
    height: 28px !important;
  }
}

.menu-logo-horizontal .menu-text,
.menu-logo-horizontal span.menu-text,
.menu-logo-horizontal > a > span.menu-text {
  display: none !important;
}
.menu-logo-horizontal > a {
  min-height: 48px; /* Garante altura mínima confortável para o botão */
  padding: 0 !important;
}
.menu-logo-horizontal .menu-icon-img {
  max-width: 100% !important; /* O logo pode ocupar toda a largura do botão */
  height: 40px !important;
  width: auto !important;
  margin: 0 auto !important;
  display: block !important;
  opacity: 0.85 !important;
  object-fit: contain !important;
}
@media (max-width: 600px) {
  .menu-logo-horizontal .menu-icon-img {
    height: 28px !important;
  }
}


