/* CUSTOM PREMIUM DESIGN SYSTEM - ANTIGRAVITY ANALYTICS */

/* Scrollbar Customizado */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #0b0f19;
}
::-webkit-scrollbar-thumb {
  background: #24304f;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #8b5cf6;
}

/* Base resets & fonts */
body {
  font-family: 'Outfit', sans-serif;
  background-color: #0b0f19;
  overflow-x: hidden;
}

/* Glassmorphism Classes */
.glass-panel {
  background: rgba(22, 29, 48, 0.4);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(36, 48, 79, 0.6);
}

.glass-card {
  background: rgba(22, 29, 48, 0.55);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(36, 48, 79, 0.5);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: 0 10px 25px -5px rgba(99, 102, 241, 0.1), 0 8px 10px -6px rgba(99, 102, 241, 0.1);
  transform: translateY(-2px);
}

/* Animações e Transições */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
  animation: fadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Estilo para Tabela de Atribuição Granular */
.tr-campaign {
  background-color: rgba(22, 29, 48, 0.4);
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.tr-campaign:hover {
  background-color: rgba(36, 48, 79, 0.45);
}

.tr-adset {
  background-color: rgba(15, 23, 42, 0.6);
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.tr-adset:hover {
  background-color: rgba(30, 41, 59, 0.7);
}

.tr-ad {
  background-color: rgba(10, 15, 30, 0.75);
  transition: background-color 0.2s ease;
}
.tr-ad:hover {
  background-color: rgba(15, 23, 42, 0.9);
}

/* Estilização dos inputs no dark mode */
input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1);
  cursor: pointer;
}

/* Indicador de expansão rotacionável */
.chevron-icon {
  transition: transform 0.2s ease;
}
.expanded .chevron-icon {
  transform: rotate(90deg);
}

/* Estilos ApexCharts para manter o tema Dark Premium */
.apexcharts-canvas {
  background: transparent !important;
}
.apexcharts-tooltip {
  background: #161d30 !important;
  border: 1px solid #24304f !important;
  color: #e2e8f0 !important;
  font-family: 'Outfit', sans-serif !important;
  border-radius: 8px !important;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5) !important;
}
.apexcharts-tooltip-title {
  background: #0f172a !important;
  border-bottom: 1px solid #24304f !important;
  font-weight: 600 !important;
}
.apexcharts-legend-text {
  color: #94a3b8 !important;
  font-family: 'Outfit', sans-serif !important;
}
.apexcharts-xcrosshair, .apexcharts-ycrosshair {
  stroke: #24304f !important;
}
.apexcharts-gridline {
  stroke: #1e293b !important;
}

/* Estado de sucesso do botão "Copiar" nas Configurações */
.copy-btn.copiado {
  background-color: rgba(16, 185, 129, 0.2);
  border-color: rgba(16, 185, 129, 0.4);
  color: #34d399;
}
