/**
 * REGRAS GLOBAIS DE DESENVOLVIMENTO VISUAL:
 * SEMPRE priorizar Bootstrap como base, utilizando classes nativas antes de criar CSS customizado. 
 * Quando necessário criar estilos personalizados, organizar de forma escalável no style.css com comentários claros. 
 * Padronizar bordas com border-radius: 4px em todos os elementos. 
 * Consultar sempre a pasta vendor para bibliotecas disponíveis, nunca utilizar links externos ou CDNs - baixar todas as bibliotecas para uso offline. 
 * Priorizar a paleta de cores da empresa (#00345a, #10b981, #919191, #ffffff) em todos os elementos. 
 * Manter estrutura de arquivos organizada com assets/css/, assets/js/, assets/img/, assets/vendor/. 
 * Desenvolver com abordagem Mobile First, testando responsividade em todos os breakpoints Bootstrap (xs, sm, md, lg, xl, xxl). 
 * Implementar sistema de tema claro/escuro com botão flutuante e variáveis CSS para consistência.
 * 
 * Style Customizado - DeskNect
 * ============================
 * Customizações mínimas apenas onde Bootstrap não atende
 * Mantém padrão visual Bootstrap
 */

/* ========================================
   FONTES PADRÃO
   ======================================== */

body {
  font-family: 'Roboto', sans-serif !important;
}

h1, h2, h3, h4, h5, h6,
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
  font-family: 'Raleway', sans-serif !important;
}

/* ========================================
   CORES CUSTOMIZADAS (apenas onde necessário)
   ======================================== */

/* CORES DOS TÍTULOS - REGRA PRINCIPAL */
/* Cor padrão dos títulos em fundo branco - Bootstrap não tem essa cor específica */
h1, h2, h3, h4, h5, h6,
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
  color: #00345a !important;
}

/* TÍTULOS EM FUNDOS ESCUROS - COR BRANCA */
.bg-primary h1, .bg-primary h2, .bg-primary h3, .bg-primary h4, .bg-primary h5, .bg-primary h6,
.bg-primary .display-1, .bg-primary .display-2, .bg-primary .display-3, .bg-primary .display-4, .bg-primary .display-5, .bg-primary .display-6,
.bg-dark h1, .bg-dark h2, .bg-dark h3, .bg-dark h4, .bg-dark h5, .bg-dark h6,
.bg-dark .display-1, .bg-dark .display-2, .bg-dark .display-3, .bg-dark .display-4, .bg-dark .display-5, .bg-dark .display-6,
.text-white h1, .text-white h2, .text-white h3, .text-white h4, .text-white h5, .text-white h6,
.text-white .display-1, .text-white .display-2, .text-white .display-3, .text-white .display-4, .text-white .display-5, .text-white .display-6 {
  color: white !important;
}

/* TÍTULOS NO FOOTER - COR BRANCA */
footer h1, footer h2, footer h3, footer h4, footer h5, footer h6,
footer .display-1, footer .display-2, footer .display-3, footer .display-4, footer .display-5, footer .display-6 {
  color: white !important;
}

/* TÍTULOS DOS CARDS - COR DA PALETA DA EMPRESA */
.card .card-title,
.card-body .card-title,
h5.card-title,
.card .card-title a,
.card-body .card-title a,
h5.card-title a {
  color: #00345a !important;
}

/* ========================================
   BOTÕES - EFEITOS HOVER MELHORADOS
   ======================================== */

/* Botões primários - transição suave */
.btn-primary {
  background-color: #10b981 !important;
  border-color: #10b981 !important;
  transition: all 0.3s ease !important;
  transform: translateY(0);
}

.btn-primary:hover {
  background-color: #059669 !important;
  border-color: #059669 !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* Botões outline - efeito mais elegante */
.btn-outline-primary {
  color: #10b981 !important;
  border-color: #10b981 !important;
  background-color: transparent !important;
  transition: all 0.3s ease !important;
  transform: translateY(0);
  position: relative;
  overflow: hidden;
}

.btn-outline-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.1), transparent);
  transition: left 0.5s ease;
}

.btn-outline-primary:hover::before {
  left: 100%;
}

.btn-outline-primary:hover {
  background-color: #10b981 !important;
  border-color: #10b981 !important;
  color: white !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* Botões success - transição suave */
.btn-success {
  transition: all 0.3s ease !important;
  transform: translateY(0);
}

.btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(25, 135, 84, 0.3);
}

/* Botões light - transição suave */
.btn-light {
  transition: all 0.3s ease !important;
  transform: translateY(0);
}

.btn-light:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(248, 249, 250, 0.3);
}

/* ========================================
   SISTEMA DE TEMA (funcionalidade não disponível no Bootstrap)
   ======================================== */

:root {
  --primary-color: #10b981;
  --title-color: #00345a;
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --text-primary: #212529;
  --text-secondary: #6c757d;
  --border-color: #dee2e6;
  
  /* Sobrescreve a cor primária do Bootstrap para usar o azul da paleta da empresa */
  --bs-primary: #00345a;
}

[data-theme="dark"] {
  --bg-primary: #1a1a1a;
  --bg-secondary: #2d2d2d;
  --text-primary: #ffffff;
  --text-secondary: #b0b0b0;
  --border-color: #404040;
}

/* Transições suaves para tema */
* {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* ========================================
   HERO BACKGROUND (funcionalidade específica solicitada)
   ======================================== */

.hero-bg {
  position: relative;
}

.hero-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('../img/hero-background.jpg') center/cover;
  opacity: 0.2; /* 70% de transparência */
  z-index: -1;
}

/* ========================================
   LOGO BRANCO NO FOOTER (funcionalidade específica)
   ======================================== */

.footer-logo-white {
  filter: brightness(0) invert(1);
}

/* ========================================
   BOTÕES FLUTUANTES - CANTO DIREITO INFERIOR
   ======================================== */

/* Botão scroll top */
.scroll-top {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #6c757d;
  color: white;
  text-decoration: none;
  z-index: 1000;
  font-size: 1.2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
}

/* Botão de tema */
.theme-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: white;
  border: none;
  cursor: pointer;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.theme-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.scroll-top.show {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  background-color: #5a6268;
  color: white;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* ========================================
   TEMA ESCURO (customização do Bootstrap para tema escuro)
   ======================================== */

[data-theme="dark"] body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
}

[data-theme="dark"] .navbar {
  background-color: var(--bg-secondary) !important;
}

[data-theme="dark"] .navbar .nav-link {
  color: white !important;
}

[data-theme="dark"] .navbar-brand img {
  filter: brightness(0) invert(1);
}

[data-theme="dark"] .bg-light {
  background-color: var(--bg-secondary) !important;
}

[data-theme="dark"] .bg-applications {
  background-color: #3a3a3a !important;
}

[data-theme="dark"] .card {
  background-color: #6a6a6a;
  border-color: var(--border-color);
}

[data-theme="dark"] .form-control {
  background-color: var(--bg-secondary);
  border-color: var(--border-color);
  color: var(--text-primary);
}

[data-theme="dark"] .form-control:focus {
  background-color: var(--bg-secondary);
  border-color: var(--primary-color);
  color: var(--text-primary);
}

/* Títulos em modo escuro - cor branca */
[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6,
[data-theme="dark"] .display-1,
[data-theme="dark"] .display-2,
[data-theme="dark"] .display-3,
[data-theme="dark"] .display-4,
[data-theme="dark"] .display-5,
[data-theme="dark"] .display-6 {
  color: white !important;
}

/* Títulos dos cards em modo escuro */
[data-theme="dark"] .card .card-title,
[data-theme="dark"] .card-body .card-title,
[data-theme="dark"] h5.card-title,
[data-theme="dark"] .card .card-title a,
[data-theme="dark"] .card-body .card-title a,
[data-theme="dark"] h5.card-title a {
  color: white !important;
}

/* Texto dos cards em modo escuro */
[data-theme="dark"] .card,
[data-theme="dark"] .card-body,
[data-theme="dark"] .card-text,
[data-theme="dark"] .card p,
[data-theme="dark"] .card li,
[data-theme="dark"] .card .text-muted {
  color: white !important;
}

[data-theme="dark"] .card .text-muted {
  color: #e0e0e0 !important;
}

/* ========================================
   CUSTOMIZAÇÕES ESPECÍFICAS
   ======================================== */

/* Hero - texto em negrito */
.hero .lead {
  font-weight: 700 !important;
}

/* Menu - fonte Roboto e gap maior */
.navbar-nav .nav-link {
  font-family: 'Roboto', sans-serif !important;
  font-weight: 500 !important;
  padding-left: 1rem !important;
  padding-right: 1rem !important;
  color: #00345a !important;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: #10b981 !important;
}

/* Botões específicos - negrito e menores */
.btn-cta-custom {
  font-weight: 700 !important;
  font-size: 0.9rem !important;
}

/* Botão Cadastro - margem esquerda específica */
.btn-cadastro-menu {
  margin-left: 12px !important;
}

/* ========================================
   ÍCONES DECORADOS DOS PRODUTOS
   ======================================== */

.product-icon {
  position: relative;
  width: 100px;
  height: 100px;
  margin: 0 auto 1rem;
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-icon .svg-normal,
.product-icon .svg-colored {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-icon .svg-colored {
  opacity: 0;
}

.product-icon .bi {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2.5rem;
  transition: color 0.8s cubic-bezier(0.4, 0, 0.2, 1); /* Transição suave para cor */
}

/* Cores específicas para cada produto */
.product-icon.nectsign .bi {
  color: #17a2b8; /* Cyan */
}

.product-icon.nectpdf .bi {
  color: #fd7e14; /* Orange */
}

.product-icon.nectimage .bi {
  color: #20c997; /* Teal */
}

.product-icon.nectqr .bi {
  color: #dc3545; /* Red */
}

.product-icon.nectclass .bi {
  color: #6f42c1; /* Indigo */
}

.product-icon.nectdocs .bi {
  color: #e83e8c; /* Pink */
}

/* Efeitos hover - fade entre SVGs normal e colorido */
.card:hover .nectsign .svg-normal {
  opacity: 0;
}

.card:hover .nectsign .svg-colored {
  opacity: 1;
}

.card:hover .nectpdf .svg-normal {
  opacity: 0;
}

.card:hover .nectpdf .svg-colored {
  opacity: 1;
}

.card:hover .nectimage .svg-normal {
  opacity: 0;
}

.card:hover .nectimage .svg-colored {
  opacity: 1;
}

.card:hover .nectqr .svg-normal {
  opacity: 0;
}

.card:hover .nectqr .svg-colored {
  opacity: 1;
}

.card:hover .nectclass .svg-normal {
  opacity: 0;
}

.card:hover .nectclass .svg-colored {
  opacity: 1;
}

.card:hover .nectdocs .svg-normal {
  opacity: 0;
}

.card:hover .nectdocs .svg-colored {
  opacity: 1;
}

.card:hover .nectbox .svg-normal {
  opacity: 0;
}

.card:hover .nectbox .svg-colored {
  opacity: 1;
}

.card:hover .nectcall .svg-normal {
  opacity: 0;
}

.card:hover .nectcall .svg-colored {
  opacity: 1;
}

.card:hover .nectpdv .svg-normal {
  opacity: 0;
}

.card:hover .nectpdv .svg-colored {
  opacity: 1;
}

.card:hover .custom-app .svg-normal {
  opacity: 0;
}

.card:hover .custom-app .svg-colored {
  opacity: 1;
}

/* Ícones do hero ficam brancos no hover */
.card:hover .product-icon .bi {
  color: white !important;
}

/* Cores específicas para ícones do hero */
.product-icon.nectsign .bi {
  color: #17a2b8 !important; /* Cyan */
}

.product-icon.nectpdf .bi {
  color: #fd7e14 !important; /* Orange */
}

.product-icon.nectqr .bi {
  color: #dc3545 !important; /* Red */
}

.product-icon.custom-app .bi {
  color: #10b981 !important; /* Verde */
}

/* Transição suave para os cards */
.card {
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Categorias dos produtos */
.product-category {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 0.65rem;
  font-weight: bold;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 10;
}

/* Produtos extras - cores específicas */
.product-icon.nectbox .bi {
  color: #28a745; /* Verde */
}

.product-icon.nectcall .bi {
  color: #17a2b8; /* Cyan */
}

.product-icon.nectpdv .bi {
  color: #6f42c1; /* Indigo */
}

.product-icon.nectatend .bi {
  color: #ffc107; /* Amarelo */
}

/* Efeitos hover para produtos extras - técnica do modelo onepage */
.card:hover .nectbox .icon path {
  fill: #28a745 !important;
}

.card:hover .nectcall .icon path {
  fill: #17a2b8 !important;
}

.card:hover .nectpdv .icon path {
  fill: #6f42c1 !important;
}

.card:hover .nectatend .svg-normal {
  opacity: 0;
}

.card:hover .nectatend .svg-colored {
  opacity: 1;
}

.card:hover .nectatend .icon path {
  fill: #ffc107 !important;
}

.card:hover .product-icon .bi {
  color: white !important;
}

/* ========================================
   SCROLL SUAVE E COMPENSAÇÃO DO MENU FIXO
   ======================================== */

/* Scroll suave controlado via JavaScript */
html {
  scroll-padding-top: 80px; /* Padding adicional para scroll suave */
}

/* Compensação para o menu fixo - todas as seções */
section[id] {
  scroll-margin-top: 80px; /* Altura aproximada do navbar fixo */
}

/* Compensação adicional para mobile */
@media (max-width: 768px) {
  section[id] {
    scroll-margin-top: 70px; /* Menor altura no mobile */
  }
}

/* ========================================
   BLUR UTILITIES
   ======================================== */

/* Blur de fundo (backdrop-filter) com transparência */
.blur-sm { 
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  background-color: rgba(255, 255, 255, 0.6);
}

.blur-md { 
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  background-color: rgba(255, 255, 255, 0.5);
}

.blur-lg { 
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background-color: rgba(255, 255, 255, 0.4);
}

.blur-xl { 
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background-color: rgba(255, 255, 255, 0.3);
}

/* Blur com transparência personalizada */
.blur-glass {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background-color: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.blur-glass-dark {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background-color: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Blur de elemento (filter) */
.blur-element-sm { 
  filter: blur(2px);
  -webkit-filter: blur(2px);
}

.blur-element-md { 
  filter: blur(5px);
  -webkit-filter: blur(5px);
}

.blur-element-lg { 
  filter: blur(10px);
  -webkit-filter: blur(10px);
}

.blur-element-xl { 
  filter: blur(20px);
  -webkit-filter: blur(20px);
}

/* Modo escuro para blur */
[data-theme="dark"] .blur-sm {
  background-color: rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .blur-md {
  background-color: rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .blur-lg {
  background-color: rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .blur-xl {
  background-color: rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .blur-glass {
  background-color: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .blur-glass-dark {
  background-color: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ========================================
   SEÇÃO DE PRODUTOS - FUNDO COM IMAGEM
   ======================================== */

.products-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../img/product-background.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.3;
  z-index: 1;
}

#products {
  position: relative;
  z-index: 2;
}

#products .container {
  position: relative;
  z-index: 3;
}

/* Modo escuro para fundo da seção de produtos */
[data-theme="dark"] .products-background {
  opacity: 0.2;
  filter: brightness(0.7);
}

/* ========================================
   PÁGINAS DE AUTENTICAÇÃO - LAYOUT ENVATO STYLE
   ======================================== */

/* Layout de duas colunas */
.auth-branding {
  position: relative;
  overflow: hidden;
}

.auth-branding::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('../img/hero-background.jpg') center/cover;
  opacity: 0.1;
  z-index: 1;
}

.auth-branding > * {
  position: relative;
  z-index: 2;
}

/* Cores da empresa para elementos de autenticação */
.text-primary {
  color: #00345a !important;
}

.btn-primary {
  background-color: #00345a;
  border-color: #00345a;
}

.btn-primary:hover {
  background-color: #002a4a;
  border-color: #002a4a;
}

.btn-outline-primary {
  color: #00345a;
  border-color: #00345a;
}

.btn-outline-primary:hover {
  background-color: #00345a;
  border-color: #00345a;
}

.nav-tabs .nav-link.active {
  color: #00345a;
  border-color: #00345a #00345a #fff;
}

.nav-tabs .nav-link:hover {
  border-color: #e9ecef #e9ecef #00345a;
}

/* Card principal */
.card {
  border-radius: 12px;
}

/* Input groups */
.input-group-text {
  background-color: #f8f9fa;
  border-color: #dee2e6;
  color: #6c757d;
}

/* Modo escuro para autenticação */
[data-theme="dark"] .text-primary {
  color: #10b981 !important;
}

[data-theme="dark"] .btn-primary {
  background-color: #10b981;
  border-color: #10b981;
}

[data-theme="dark"] .btn-primary:hover {
  background-color: #0ea876;
  border-color: #0ea876;
}

[data-theme="dark"] .btn-outline-primary {
  color: #10b981;
  border-color: #10b981;
}

[data-theme="dark"] .btn-outline-primary:hover {
  background-color: #10b981;
  border-color: #10b981;
}

[data-theme="dark"] .nav-tabs .nav-link.active {
  color: #10b981;
  border-color: #10b981 #10b981 #fff;
}

[data-theme="dark"] .input-group-text {
  background-color: #495057;
  border-color: #6c757d;
  color: #adb5bd;
}

/* Responsividade */
@media (max-width: 991.98px) {
  .auth-branding {
    display: none !important;
  }
  
  .card-body {
    padding: 2rem !important;
  }
}

/* ========================================
   CALL TO ACTION - FUNDO AZUL DA PALETA DA EMPRESA
   ======================================== */

#call-to-action {
  background-color: #00345a !important;
}

/* Applications Section - cinza mais escuro */
.bg-applications {
  background-color: #e9ecef !important;
}

/* ========================================
   PLANOS - CORES CUSTOMIZADAS
   ======================================== */

/* Títulos dos planos - forçar cor branca */
.card-header .card-title,
.card-header h4,
.card-header .display-1,
.card-header .display-2,
.card-header .display-3,
.card-header .display-4,
.card-header .display-5,
.card-header .display-6 {
  color: white !important;
}

/* Plano Corporativo - cor laranja */
.corporate-header {
  background-color: #fd7e14 !important;
}

.btn-corporate {
  background-color: #fd7e14 !important;
  border-color: #fd7e14 !important;
  color: white !important;
  transition: all 0.3s ease !important;
  transform: translateY(0);
}

.btn-corporate:hover {
  background-color: #e55a00 !important;
  border-color: #e55a00 !important;
  color: white !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(253, 126, 20, 0.3);
}

/* ========================================
   SEÇÃO DE CLIENTES - DESIGN ELEGANTE
   ======================================== */

.clients-carousel {
  overflow: hidden;
  position: relative;
  margin: 2rem 0;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}

.clients-track {
  display: flex;
  gap: 1.5rem;
  animation: scroll-clients 30s linear infinite;
  width: calc(200% + 1.5rem);
  min-width: 100vw;
}

.client-item {
  flex: 0 0 auto;
  width: 200px;
}

.client-card {
  background: white;
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid #f0f0f0;
  height: 160px;
  min-height: 160px;
  max-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.client-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  border-color: var(--primary-color);
}

.client-logo {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary-color), #10b981);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.client-card:hover .client-logo {
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.client-logo i {
  font-size: 1.5rem;
  color: white;
}

.client-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.client-category {
  font-size: 0.75rem;
  color: #666;
  background: #f8f9fa;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-weight: 500;
}

@keyframes scroll-clients {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Pausar animação no hover */
.clients-carousel:hover .clients-track {
  animation-play-state: paused;
}

/* Estatísticas */
.stat-item {
  padding: 1.5rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid #f0f0f0;
}

.stat-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  font-family: 'Raleway', sans-serif;
}

.stat-label {
  font-size: 0.9rem;
  color: #666;
  font-weight: 500;
}

/* Modo escuro para clientes */
[data-theme="dark"] .client-card {
  background-color: #6a6a6a;
  border-color: #555;
}

[data-theme="dark"] .client-name {
  color: white;
}

[data-theme="dark"] .client-category {
  background: #555;
  color: #e0e0e0;
}

[data-theme="dark"] .stat-item {
  background-color: #6a6a6a;
  border-color: #555;
}

[data-theme="dark"] .stat-number {
  color: var(--primary-color);
}

[data-theme="dark"] .stat-label {
  color: #e0e0e0;
}

/* Responsividade */
@media (max-width: 768px) {
  .clients-track {
    animation-duration: 20s;
  }
  
  .client-item {
    width: 160px;
  }
  
  .client-card {
    height: 140px;
    min-height: 140px;
    max-height: 140px;
    padding: 0.75rem;
  }
  
  .client-logo {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
  }
  
  .client-logo i {
    font-size: 1.2rem;
  }
  
  .client-name {
    font-size: 0.8rem;
  }
  
  .client-category {
    font-size: 0.7rem;
  }
  
  .stat-number {
    font-size: 2rem;
  }
}

/* ========================================
   RESPONSIVIDADE (ajuste do botão de tema para mobile)
   ======================================== */

@media (max-width: 768px) {
  .scroll-top {
    width: 45px;
    height: 45px;
    font-size: 1rem;
    bottom: 70px;
    right: 15px;
  }
  
  .theme-toggle {
    width: 45px;
    height: 45px;
    font-size: 1rem;
    bottom: 15px;
    right: 15px;
  }
}

/* ===== CORREÇÃO DE ALINHAMENTO DOS ÍCONES ===== */
.input-group-text {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 45px;
  white-space: nowrap;
}

.input-group-sm .input-group-text {
  min-width: 40px;
  padding: 0.25rem 0.5rem;
}

.input-group .form-control {
  flex: 1;
}

/* Garantir que ícones não quebrem linha */
.bi {
  display: inline-block;
  vertical-align: middle;
  line-height: 1;
}

/* Corrigir alinhamento em labels pequenos */
.form-label.small {
  line-height: 1.2;
  margin-bottom: 0.25rem;
}

/* Ajustar espaçamento dos inputs pequenos */
.input-group-sm .form-control {
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
}