/* ==========================================================================
   NEOTEK CRM INTELIGENTE - DESIGN SYSTEM HARMONIZADO COM DEGRADÊ DOS BOTÕES
   Fundo levemente mais escuro no tom do degradê (Teal & Blue Slate)
   Contraste refinado, clean e de alta conversão B2B
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;

  /* Fundo da Página: Levemente escuro no tom do degradê dos botões (#00d2d3 a #2563eb) */
  --bg-page: #d8e8f2;
  --bg-card: #ffffff;
  --bg-card-muted: #f1f5f9;
  --border-subtle: #cbdce8;
  --border-focus: #00d2d3;

  /* Cores Oficiais Extraídas do CRM Neotek */
  --brand-cyan: #00d2d3;
  --brand-cyan-dark: #00a8a9;
  --brand-blue: #2563eb;
  --brand-blue-dark: #1d4ed8;
  --brand-navy: #0b1329;
  --brand-dark: #0f172a;
  --brand-emerald: #10b981;
  --brand-purple: #8b5cf6;
  --brand-amber: #f59e0b;

  /* Sombras Multicamadas Suaves com Realce */
  --shadow-subtle: 0 4px 16px -2px rgba(15, 23, 42, 0.06);
  --shadow-card: 0 10px 25px -3px rgba(11, 28, 54, 0.08), 0 4px 10px -2px rgba(11, 28, 54, 0.04);
  --shadow-card-hover: 0 20px 40px -6px rgba(11, 28, 54, 0.14), 0 6px 16px -2px rgba(0, 210, 211, 0.2);
  --shadow-floating: 0 25px 60px -12px rgba(11, 19, 41, 0.25);
}

/* Reset Global */
html {
  scroll-behavior: smooth;
  font-family: var(--font-body);
  background-color: var(--bg-page);
  color: #1e293b;
  overflow-x: hidden;
}

body {
  background-color: var(--bg-page);
  background-image: 
    radial-gradient(at 8% 5%, rgba(0, 210, 211, 0.22) 0px, transparent 45%),
    radial-gradient(at 92% 12%, rgba(37, 99, 235, 0.18) 0px, transparent 50%),
    radial-gradient(at 50% 38%, rgba(2, 132, 199, 0.14) 0px, transparent 55%),
    radial-gradient(at 10% 70%, rgba(0, 210, 211, 0.20) 0px, transparent 50%),
    radial-gradient(at 88% 92%, rgba(37, 99, 235, 0.18) 0px, transparent 50%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: #0f172a;
}

/* Garantia de contraste absoluto para textos em fundos escuros */
.text-white,
.text-white h1, .text-white h2, .text-white h3, .text-white h4, .text-white h5, .text-white h6,
h1.text-white, h2.text-white, h3.text-white, h4.text-white,
h1.\!text-white, h2.\!text-white, h3.\!text-white, h4.\!text-white {
  color: #ffffff !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: #cbdce8;
}
::-webkit-scrollbar-thumb {
  background: #94a3b8;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #00d2d3;
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Grid Pattern Suave */
.clean-grid-bg {
  background-size: 36px 36px;
  background-image: 
    linear-gradient(to right, rgba(15, 23, 42, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.04) 1px, transparent 1px);
}

/* Glow Blobs Sutis */
.subtle-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.65;
}

.subtle-glow-cyan {
  background: radial-gradient(circle, rgba(0, 210, 211, 0.3) 0%, transparent 70%);
}

.subtle-glow-blue {
  background: radial-gradient(circle, rgba(37, 99, 235, 0.25) 0%, transparent 70%);
}

/* ==========================================================================
   CARDS DE ALTO PADRÃO (BRANCOS SOBRE FUNDO TINTADO)
   ========================================================================== */

.clean-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: 1.25rem;
  box-shadow: var(--shadow-card);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.clean-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(0, 210, 211, 0.6);
}

.clean-card-featured {
  background: #ffffff;
  border: 2px solid #00d2d3;
  border-radius: 1.5rem;
  box-shadow: 0 16px 36px -6px rgba(0, 210, 211, 0.3), 0 4px 12px rgba(15, 23, 42, 0.06);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.clean-card-featured:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px -8px rgba(0, 210, 211, 0.4);
}

/* Container Escuro para o Mockup do Dashboard Real */
.dark-mockup-stage {
  background: radial-gradient(circle at 50% 0%, #0d172e 0%, #060a16 100%);
  border-radius: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 35px 80px -15px rgba(11, 19, 41, 0.65), 0 0 40px rgba(0, 210, 211, 0.18);
  color: #f1f5f9;
}

/* ==========================================================================
   BOTÕES MODERNOS COM DEGRADÊ CYAN & AZUL NEOTEK
   ========================================================================== */

.btn-brand-gradient {
  background: linear-gradient(135deg, #00d2d3 0%, #0284c7 60%, #2563eb 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 20px -4px rgba(0, 210, 211, 0.45);
  font-weight: 700;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.btn-brand-gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -4px rgba(0, 210, 211, 0.6), 0 0 16px rgba(2, 132, 199, 0.35);
  filter: brightness(1.05);
}

.btn-brand-gradient:active {
  transform: translateY(1px);
}

.btn-brand-outline {
  background: #ffffff;
  color: #0f172a;
  border: 1px solid #cbd5e1;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
  font-weight: 600;
  transition: all 0.25s ease;
  cursor: pointer;
}

.btn-brand-outline:hover {
  background: #f8fafc;
  border-color: #00d2d3;
  color: #0284c7;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px -2px rgba(0, 210, 211, 0.2);
}

/* Badges e Pílulas */
.badge-clean {
  background: rgba(255, 255, 255, 0.9);
  color: #0f766e;
  border: 1px solid #b2e2dd;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}

.badge-cyan {
  background: rgba(0, 210, 211, 0.15);
  color: #008889;
  border: 1px solid rgba(0, 210, 211, 0.4);
}

/* Status Pulse Indicators */
.pulse-teal {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #00d2d3;
  box-shadow: 0 0 0 rgba(0, 210, 211, 0.6);
  animation: pulseTealAnim 2s infinite;
}

@keyframes pulseTealAnim {
  0% { box-shadow: 0 0 0 0 rgba(0, 210, 211, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(0, 210, 211, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 210, 211, 0); }
}

/* Waveform Bars */
.waveform-container {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 26px;
}

.waveform-bar {
  width: 3px;
  background-color: #94a3b8;
  border-radius: 3px;
  height: 8px;
  transition: height 0.15s ease, background-color 0.2s ease;
}

.waveform-bar.active {
  background-color: #00d2d3;
  animation: waveBarAnim 0.75s ease-in-out infinite alternate;
}

.waveform-bar:nth-child(2n) { animation-delay: 0.08s; }
.waveform-bar:nth-child(3n) { animation-delay: 0.16s; }
.waveform-bar:nth-child(4n) { animation-delay: 0.24s; }
.waveform-bar:nth-child(5n) { animation-delay: 0.32s; }

@keyframes waveBarAnim {
  0% { height: 6px; }
  50% { height: 24px; }
  100% { height: 10px; }
}

/* Abas de Módulos Clean */
.clean-tab-btn {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  color: #64748b;
  transition: all 0.25s ease;
}

.clean-tab-btn:hover {
  background: #f8fafc;
  color: #0f172a;
  border-color: #cbd5e1;
}

.clean-tab-btn.active {
  background: #0f172a;
  color: #00d2d3;
  border-color: #0f172a;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.2);
}

.module-content-pane {
  display: none;
  animation: fadeScale 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.module-content-pane.active {
  display: block;
}

@keyframes fadeScale {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Sliders */
input[type="range"] {
  -webkit-appearance: none;
  height: 8px;
  background: #cbdce8;
  border-radius: 4px;
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #00d2d3;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 210, 211, 0.6);
  border: 2px solid #ffffff;
  transition: transform 0.15s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

/* Modal */
.modal-backdrop {
  background: rgba(11, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
