/* CSS Variables - Imobify v3.7 */
:root {
  --primary: 220 91% 29%;
  --primary-foreground: 0 0% 100%;
  --primary-hover: 220 91% 25%;
  --secondary: 217 91% 59%;
  --secondary-foreground: 0 0% 100%;
  --accent: 215 100% 96%;
  --accent-foreground: 220 91% 29%;
  --background: 0 0% 100%;
  --foreground: 224 71% 4%;
  --muted: 220 14% 96%;
  --muted-foreground: 220 9% 46%;
  --border: 220 13% 91%;
  --ring: 220 91% 29%;
  --gradient-hero: linear-gradient(135deg, hsl(220, 91%, 29%) 0%, hsl(217, 91%, 59%) 100%);
  --gradient-card: linear-gradient(145deg, hsl(220, 91%, 29%) 0%, hsl(220, 91%, 35%) 100%);
  --shadow-elegant: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --shadow-card: 0 10px 30px -5px hsl(220 91% 29% / 0.15);
  --shadow-button: 0 8px 25px -8px hsl(220 91% 29% / 0.4);
}

/* Top Header Azul */
.top-header {
  background: linear-gradient(135deg, #1e40af 0%, #1e40af 100%);
  background: -webkit-linear-gradient(135deg, #1e40af 0%, #1e40af 100%);
  border-bottom: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  height: 26px;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
}

.top-header span {
  font-size: 0.875rem;
  font-weight: 500;
  color: #FFFFFF;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.top-header img {
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
  border-radius: 2px;
}

/* Added logo styling to camouflage white background */
.navigation img {
  background: transparent;
  border-radius: 12px;
  padding: 2px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/* Hero Section */
.hero-gradient {
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #1e40af 100%);
  background: -webkit-linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #1e40af 100%);
  background-size: 400% 400%;
  -webkit-animation: gradientShift 8s ease infinite;
  animation: gradientShift 8s ease infinite;
  position: relative;
  overflow: hidden;
}

.hero-gradient::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
}

/* Mobile Hero Layout Adjustments */
@media (max-width: 1023px) {
  .hero-gradient .grid {
    gap: 0 !important;
    align-items: start !important;
  }
  
  .hero-title {
    margin-bottom: 0 !important;
  }
  
  .hero-content p {
    margin-bottom: 0.25rem !important;
  }
  
  .dashboard-preview {
    margin-top: 0 !important;
  }
}

/* Buttons */
.btn-primary {
  background: hsl(var(--primary)) !important;
  color: hsl(var(--primary-foreground)) !important;
  border: none !important;
  padding: 12px 16px !important;
  border-radius: 12px !important;
  -webkit-border-radius: 12px !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  -webkit-transition: all 0.3s ease !important;
  transition: all 0.3s ease !important;
  text-decoration: none !important;
  display: -webkit-inline-box !important;
  display: -webkit-inline-flex !important;
  display: inline-flex !important;
  -webkit-box-align: center !important;
  -webkit-align-items: center !important;
  align-items: center !important;
  gap: 10px !important;
  -webkit-gap: 10px !important;
  box-shadow: var(--shadow-button) !important;
  -webkit-box-shadow: var(--shadow-button) !important;
  line-height: 1 !important;
}

.btn-primary:hover {
  background: hsl(var(--primary-hover));
  transform: translateY(-3px);
  box-shadow: 0 12px 35px -8px hsl(220 91% 29% / 0.5);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  padding: 14px 32px;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

/* Added btn-accent styles from pasted-text-2 */
.btn-accent {
  background: #3b82f6;
  color: white;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 600;
}

/* Botões específicos para recibos */
.rounded-lg {
  border-radius: 12px !important;
}

.btn-accent:hover {
  background: #2563eb;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

/* Navigation */
.navigation.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 20px -4px hsl(220 91% 29% / 0.1);
}

/* Imobify Brand Color */
.text-imobify {
  color: #0059CB !important;
}

/* Hamburger Button Container */
.navigation button.md\\:hidden {
  background: #f3f4f6;
  border-radius: 50%;
  padding: 0.75rem;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  min-width: 48px;
  min-height: 48px;
}

.navigation button.md\\:hidden:hover {
  background: #e5e7eb;
  transform: scale(1.05);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.navigation button.md\\:hidden:active {
  transform: scale(0.95);
}

.nav-link {
  position: relative;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 50%;
  background: #3b82f6;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover::after {
  width: 100%;
}

/* Dashboard Preview */
.dashboard-preview {
  transform: perspective(1000px) rotateY(-15deg) rotateX(10deg);
  transition: all 0.5s ease;
  animation: dashboardFloat 4s ease-in-out infinite;
}

.dashboard-preview:hover {
  transform: perspective(1000px) rotateY(-8deg) rotateX(4deg) scale(1.03);
}

@keyframes dashboardFloat {
  0%,
  100% {
    transform: perspective(1000px) rotateY(-15deg) rotateX(10deg) translateY(0px);
  }
  50% {
    transform: perspective(1000px) rotateY(-15deg) rotateX(10deg) translateY(-10px);
  }
}

@keyframes dashboardFloatMobile {
  0%,
  100% {
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg) translateY(0px);
  }
  50% {
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg) translateY(-5px);
  }
}

/* Dashboard Carousel */
.dashboard-carousel {
  position: relative;
  background: #f9fafb;
  border-radius: 0 0 16px 16px;
  overflow: hidden;
}

.carousel-container {
  display: flex;
  width: 500%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform: translateX(0%);
}

.carousel-slide {
  width: 20%; /* Each slide takes 20% of container (100% / 5 slides) */
  flex-shrink: 0;
  height: 100%;
  padding: 8px;
  box-sizing: border-box;
}

/* Notificações Page - Prevent double scroll */
.notificacoes-container {
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}

.notificacoes-container::-webkit-scrollbar {
  width: 6px;
}

.notificacoes-container::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 6px;
}

.notificacoes-container::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 6px;
}

.notificacoes-container::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* Ajustar tamanhos de elementos dentro dos slides para caber sem scroll */
.carousel-slide .grid {
  gap: 0.25rem; /* Reduzir gap ainda mais */
}

.carousel-slide .bg-white {
  padding: 0.5rem; /* Reduzir padding dos cards internos */
}

.carousel-slide .text-lg {
  font-size: 0.75rem; /* Reduzir ainda mais o tamanho da fonte */
}

.carousel-slide .text-xl {
  font-size: 0.875rem; /* Reduzir ainda mais o tamanho da fonte */
}

.carousel-slide button {
  padding: 0.375rem 0.5rem; /* Reduzir padding dos botões */
  font-size: 0.625rem; /* Reduzir ainda mais o tamanho da fonte dos botões */
}

.carousel-slide .space-y-2 > * + * {
  margin-top: 0.25rem; /* Reduzir espaçamento vertical */
}

.carousel-slide h4 {
  font-size: 0.75rem; /* Reduzir tamanho dos títulos */
  margin-bottom: 0.5rem;
}

.carousel-slide .text-xs {
  font-size: 0.625rem; /* Ainda menor */
}

.carousel-slide .mb-6 {
  margin-bottom: 0.75rem; /* Balanced margins */
}

.carousel-slide .mb-4 {
  margin-bottom: 0.5rem; /* Balanced margins */
}

.carousel-slide .mb-3 {
  margin-bottom: 0.375rem; /* Balanced margins */
}

.carousel-slide::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Edge */
}

/* Added Feature Cards styles from pasted-text-2 */
.feature-card {
  background: white;
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: var(--shadow-card);
  border: 1px solid hsl(var(--border));
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-hero);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px -12px hsl(220 91% 29% / 0.25);
  border-color: rgba(99, 102, 241, 0.2);
}

.icon-container {
  width: 56px;
  height: 56px;
  background: var(--gradient-card);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 25px -8px hsl(220 91% 29% / 0.3);
}

/* Added Stats Cards styles from pasted-text-2 */
.stat-card {
  background: white;
  padding: 2rem 1.5rem;
  border-radius: 16px;
  border: 1px solid hsl(var(--border));
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px -3px hsl(220 91% 29% / 0.1);
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card);
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Automation Cards styles */
 .automation-card {
   background: white;
   border-radius: 20px;
   padding: 2rem;
   border: 1px solid hsl(var(--border));
   transition: all 0.3s ease;
   position: relative;
   overflow: hidden;
   color: white;
   text-align: center;
   min-height: 350px;
   display: flex;
   flex-direction: column;
   justify-content: space-between;
 }

 .automation-card-1 {
   background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
   box-shadow: 
     0 20px 40px -12px rgba(30, 64, 175, 0.3),
     0 0 0 1px rgba(255, 255, 255, 0.1),
     inset 0 1px 0 rgba(255, 255, 255, 0.2);
   filter: brightness(1.05) saturate(1.2) contrast(1.05);
   position: relative;
 }

.automation-card-1::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
  border-radius: 20px;
  pointer-events: none;
}

 .automation-card-2 {
   background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
   box-shadow: 
     0 20px 40px -12px rgba(59, 130, 246, 0.3),
     0 0 0 1px rgba(255, 255, 255, 0.1),
     inset 0 1px 0 rgba(255, 255, 255, 0.2);
   filter: brightness(1.05) saturate(1.2) contrast(1.05);
   position: relative;
 }

.automation-card-2::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
  border-radius: 20px;
  pointer-events: none;
}

 .automation-card-3 {
   background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
   box-shadow: 
     0 20px 40px -12px rgba(30, 64, 175, 0.3),
     0 0 0 1px rgba(255, 255, 255, 0.1),
     inset 0 1px 0 rgba(255, 255, 255, 0.2);
   filter: brightness(1.05) saturate(1.2) contrast(1.05);
   position: relative;
 }

.automation-card-3::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
  border-radius: 20px;
  pointer-events: none;
}

.automation-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.automation-title {
  margin-bottom: 2rem;
}

.automation-title h3 {
  color: white;
  font-size: 1.25rem;
  font-weight: bold;
  margin-top: 1rem;
}

.automation-steps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 3rem;
  gap: 1rem;
}

.automation-steps .text-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.automation-steps .w-8.h-8 {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
}

.automation-steps span {
  color: white;
  font-size: 0.875rem;
  line-height: 1.2;
  text-align: center;
}

.step-arrow {
  color: white;
  opacity: 0.7;
  flex-shrink: 0;
}

/* Efeito de brilho da moeda para powered by Aivra */
.coin-shine-effect {
  position: relative;
  overflow: hidden;
  animation: continuousShine 6s ease-in-out infinite;
}

.shine-overlay {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 1),
    transparent
  );
  transform: skewX(-25deg);
  transition: left 0.6s ease;
  pointer-events: none;
  z-index: 5;
}

            .coin-shine-effect:hover .shine-overlay,
            .coin-shine-effect.animate-in .shine-overlay {
              left: 100%;
              animation: coinShine 2.5s ease-in-out;
            }

@keyframes coinShine {
  0% {
    left: -100%;
    opacity: 0;
  }
  30% {
    opacity: 1;
  }
  70% {
    opacity: 1;
  }
  100% {
    left: 100%;
    opacity: 0;
  }
}

@keyframes continuousShine {
  0% {
    box-shadow: 0 0 0 rgba(255, 255, 255, 0);
  }
  50% {
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3), 0 0 40px rgba(255, 255, 255, 0.1);
  }
  100% {
    box-shadow: 0 0 0 rgba(255, 255, 255, 0);
  }
}

/* Mobile styles for automation cards - arrows pointing right */
@media (max-width: 768px) {
  .automation-card .step-arrow {
    transform: rotate(0deg);
  }
  
                               /* Cards de automação inicialmente sem animação */
               .automation-card {
                 background-size: 400% 400% !important;
                 animation: none !important;
                 opacity: 0; /* Initial opacity - completamente invisível */
                 transform: translateY(30px);
                 transition: all 0.8s ease; /* Mais rápido */
               }
               
               /* Quando o card entra na viewport */
               .automation-card.animate-in {
                 opacity: 1;
                 transform: translateY(0);
                 animation: gradientShift 8s ease infinite !important;
               }
               
               /* Badge "powered by Aivra" inicialmente sem animação no mobile */
               #automation .animate-badge {
                 animation: none !important;
                 opacity: 0; /* Initial opacity - completamente invisível */
                 transform: translateY(30px);
                 transition: all 0.8s ease; /* Mais rápido */
               }
               
               /* Quando o badge entra na viewport */
               #automation .animate-badge.animate-in {
                 opacity: 1;
                 transform: translateY(0);
                 /* Removido animation: para evitar re-disparo */
               }

                 /* Título "Tudo automatizado em apenas um clique" inicialmente sem animação no mobile */
               #automation .animate-title {
                 animation: none !important;
                 opacity: 0; /* Initial opacity - completamente invisível */
                 transform: translateY(30px);
                 transition: all 0.8s ease; /* Mais rápido */
               }

               /* Quando o título entra na viewport */
               #automation .animate-title.animate-in {
                 opacity: 1;
                 transform: translateY(0);
                 /* Removido animation: para evitar re-disparo */
               }

               /* Subtítulo "Com a Imobify tudo está em suas mãos" inicialmente sem animação no mobile */
               #automation .animate-subtitle {
                 animation: none !important;
                 opacity: 0; /* Initial opacity - completamente invisível */
                 transform: translateY(30px);
                 transition: all 0.8s ease; /* Mais rápido */
               }

               /* Quando o subtítulo entra na viewport */
               #automation .animate-subtitle.animate-in {
                 opacity: 1;
                 transform: translateY(0);
                 /* Removido animation: para evitar re-disparo */
               }
  
                .automation-card-1.animate-in {
                animation-delay: 0s !important;
              }
              
              .automation-card-2.animate-in {
                animation-delay: 3s !important;
              }
              
              .automation-card-3.animate-in {
                animation-delay: 6s !important;
              }
}

.automation-desc {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
  line-height: 1.5;
  text-align: center;
  margin-top: 1rem;
  padding-top: 1rem;
}

/* Added Floating Elements styles from pasted-text-2 */
.floating-element {
  position: absolute;
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

.floating-1 {
  width: 120px;
  height: 120px;
  top: 15%;
  left: 8%;
  animation-delay: 0s;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.05) 70%);
}

.floating-2 {
  width: 80px;
  height: 80px;
  top: 60%;
  left: 85%;
  animation-delay: 2s;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.03) 70%);
}

.floating-3 {
  width: 150px;
  height: 150px;
  top: 75%;
  left: 12%;
  animation-delay: 4s;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.02) 70%);
}

.floating-4 {
  width: 60px;
  height: 60px;
  top: 25%;
  left: 75%;
  animation-delay: 1s;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.04) 70%);
}

.floating-5 {
  width: 200px;
  height: 200px;
  top: 10%;
  left: 60%;
  animation-delay: 3s;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.01) 70%);
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
  }
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Animação do título - surge de baixo para cima */
@keyframes titleSlideUp {
  0% {
    opacity: 0;
    transform: translateY(50px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Animação do subtítulo - surge de baixo para cima com delay */
@keyframes subtitleSlideUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Classes de animação para título e subtítulo */
.animate-badge {
  animation: titleSlideUp 0.8s ease-out 0.1s forwards;
  opacity: 0; /* Inicialmente invisível */
}

.animate-title {
  animation: titleSlideUp 1s ease-out 0.2s forwards;
  opacity: 0; /* Inicialmente invisível */
}

.animate-subtitle {
  animation: subtitleSlideUp 1s ease-out 0.5s forwards;
  opacity: 0; /* Inicialmente invisível */
}

/* Animação dos botões - surge de baixo para cima com delay */
.animate-button {
  animation: titleSlideUp 0.8s ease-out 0.8s forwards;
  opacity: 0; /* Inicialmente invisível */
}

/* Classes para animações de scroll - elementos inicialmente invisíveis */
.scroll-animate {
  opacity: 0; /* Initial opacity - completamente invisível */
  transform: translateY(30px);
  transition: all 0.8s ease; /* Mais rápido */
}

/* Quando o elemento entra na viewport */
.scroll-animate.animate-in {
  opacity: 1;
  transform: translateY(0);
  /* Removido animation: para evitar re-disparo */
}

/* Added Scroll Indicator styles from pasted-text-2 */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
  color: white;
  text-align: center;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.scroll-indicator:hover {
  opacity: 1;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* Added Tab System styles from pasted-text-2 */
.tab-content {
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.tab-content.active {
  display: block;
  opacity: 1;
}

/* Tab button active state */
.tab-active {
  color: #2563eb !important;
  background-color: rgba(37, 99, 235, 0.1) !important;
  border-bottom: 2px solid #2563eb !important;
}

.tab-inactive {
  color: #6b7280 !important;
}

/* Remover scroll em dispositivos móveis */
@media (max-width: 768px) {
  .table-responsive {
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
  }

  body {
    overflow-x: hidden;
  }

  /* Esconder scrollbars em mobile */
  *::-webkit-scrollbar {
    display: none;
  }

  * {
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  /* Improved hero section mobile spacing */
  .hero-gradient {
    padding-top: 132px !important;
    min-height: 100vh !important;
  }
  
  /* Top header mobile adjustments */
  .top-header {
    padding: 0.375rem 0.75rem !important;
  }
  
  .top-header span {
    font-size: 0.75rem !important;
    text-align: center;
  }
  
  .top-header img {
    width: 1rem !important;
    height: 0.75rem !important;
  }

  .hero-content {
    padding: 0 1rem !important;
    text-align: center !important;
  }

  .hero-content .inline-flex {
    margin-bottom: 2rem !important;
    font-size: 0.9rem !important;
  }

  .hero-title {
    font-size: 2.25rem !important;
    line-height: 1.1 !important;
    margin-bottom: 1.5rem !important;
  }

  .hero-content p {
    font-size: 1.1rem !important;
    margin-bottom: 2rem !important;
    padding: 0 !important;
  }

  .hero-content .flex.items-center.gap-6,
  .hero-content .flex.items-center.gap-3 {
    flex-wrap: nowrap !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    font-size: 0.75rem !important;
  }
  
  .hero-content .bg-white\/10 {
    padding: 0.375rem 0.75rem !important;
    font-size: 0.7rem !important;
  }

  /* Better dashboard preview mobile layout */
  .dashboard-preview {
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg) !important;
    max-width: 100% !important;
    height: auto !important; /* Auto height to fit content */
    min-height: 400px !important; /* Minimum height to maintain visual appeal */
    margin: 0 auto 0 !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12) !important;
    border-radius: 16px !important;
    animation: none !important;
  }

  .dashboard-preview:hover {
    transform: perspective(1000px) rotateY(-3deg) rotateX(3deg) scale(1.02) !important;
  }

  .dashboard-carousel {
    height: auto !important; /* Auto height to fit content */
    min-height: 350px !important; /* Minimum height to maintain visual appeal */
  }

  .carousel-slide {
    padding: 0.75rem !important;
  }

  /* Improved mobile grid layouts */
  .carousel-slide .grid {
    grid-template-columns: 1fr !important;
    gap: 0.25rem !important;
  }

  .carousel-slide .grid.grid-cols-2 {
    grid-template-columns: 1fr 1fr !important;
  }

  .carousel-slide .grid.grid-cols-3 {
    grid-template-columns: 1fr !important;
  }

  .carousel-slide .grid.grid-cols-4 {
    grid-template-columns: 1fr 1fr !important;
  }

  /* Better mobile text sizing */
  .carousel-slide .text-xl {
    font-size: 1rem !important;
  }

  .carousel-slide .text-lg {
    font-size: 0.95rem !important;
  }

  .carousel-slide .text-sm {
    font-size: 0.8rem !important;
  }

  .carousel-slide .text-xs {
    font-size: 0.7rem !important;
  }

  /* Mobile button improvements */
  .carousel-slide button {
    padding: 0.5rem !important;
    font-size: 0.75rem !important;
    min-height: 36px !important;
  }

  /* Mobile card spacing */
  .carousel-slide .bg-white,
  .carousel-slide .bg-green-50,
  .carousel-slide .bg-blue-50,
  .carousel-slide .bg-orange-50,
  .carousel-slide .bg-yellow-50,
  .carousel-slide .bg-red-50,
  .carousel-slide .bg-purple-50 {
    padding: 0.5rem !important;
    margin-bottom: 0.5rem !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }

  /* Specific fix for the problematic white div */
  .carousel-slide .bg-white.rounded-lg.p-2.border.border-gray-200.mb-3,
  .carousel-slide .bg-white {
    padding: 0.375rem !important;
    margin: 0 0 0.5rem 0 !important;
    width: calc(100% - 0.5rem) !important;
    max-width: none !important;
    overflow: hidden !important;
    word-wrap: break-word !important;
  }

  /* Added spacing between sections for mobile */
  section#automation {
    margin-top: 2rem !important;
  }

  /* Added comprehensive mobile optimizations from pasted-text-2 */
  .card {
    padding: 0.75rem !important;
    margin-bottom: 0.75rem !important;
  }

  .card p-4 {
    padding: 0.5rem !important;
  }

  .card p-6 {
    padding: 0.75rem !important;
  }

  /* Textos mais compactos */
  .text-xl {
    font-size: 1rem !important;
  }

  .text-2xl {
    font-size: 1.25rem !important;
  }

  .text-lg {
    font-size: 0.875rem !important;
  }

  /* Gaps e margens reduzidas */
  .gap-6 {
    gap: 0.75rem !important;
  }

  .gap-4 {
    gap: 0.5rem !important;
  }

  .mb-6 {
    margin-bottom: 0.75rem !important;
  }

  .mb-8 {
    margin-bottom: 1rem !important;
  }

  /* Botões mais compactos */
  .btn-primary,
  .btn-secondary,
  .btn-accent {
    padding: 12px 16px !important;
    font-size: 16px !important;
  }

  /* Modais otimizados para mobile */
  .modal-content {
    margin: 0.5rem !important;
    max-height: 95vh !important;
  }
  
  /* Botões dos modais em mobile */
  .modal-content .flex.flex-col.sm\\:flex-row {
    flex-direction: column !important;
    gap: 0.75rem !important;
  }
  
  .modal-content .flex.flex-col.sm\\:flex-row > div {
    order: 1 !important;
  }
  
  .modal-content .flex.flex-col.sm\\:flex-row > button:first-child {
    order: 2 !important;
  }

  /* Headers mais compactos */
  .p-6 {
    padding: 1rem !important;
  }

  /* Inputs mais compactos */
  input,
  select,
  textarea {
    padding: 0.5rem !important;
    font-size: 0.875rem !important;
  }

  /* Tabelas responsivas */
  .table-responsive {
    font-size: 0.75rem !important;
  }

  .table-responsive td,
  .table-responsive th {
    padding: 0.5rem !important;
  }

  /* Stats cards mais compactos */
  .grid.grid-cols-1.lg\\:grid-cols-2.xl\\:grid-cols-4 {
    gap: 0.5rem !important;
  }

  /* Reduzir altura mínima de containers */
  .min-h-screen {
    min-height: auto !important;
  }

  /* Otimizar espaçamento vertical */
  .space-y-4 > * + * {
    margin-top: 0.5rem !important;
  }

  .space-y-6 > * + * {
    margin-top: 0.75rem !important;
  }

  /* Property cards mais compactos */
  .property-image-container {
    height: 120px !important;
  }

  /* Reduzir padding de containers principais */
  .px-3.py-4 {
    padding: 0.5rem !important;
  }

  /* Ajustar altura de elementos para evitar scroll */
  .h-48 {
    height: 8rem !important;
  }

  .h-52 {
    height: 9rem !important;
  }

  /* Menu lateral mobile fix */
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 50;
    width: 280px;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 40;
    display: none;
  }

  .sidebar-overlay.active {
    display: block;
  }

  .nav-text {
    display: block !important;
  }

  /* Touch optimizations */
  .touch-manipulation {
    touch-action: manipulation;
  }

  /* Ensure buttons are at least 44px for better touch */
  button[onclick*="Actions"] {
    min-width: 44px !important;
    min-height: 44px !important;
    padding: 10px !important;
  }

  /* Responsive table improvements */
  .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Evitar scroll horizontal em tabelas mobile */
  .table-responsive table {
    min-width: 100% !important;
  }

  /* Melhorar responsividade de texto */
  .responsive-text {
    font-size: 0.875rem !important;
    line-height: 1.25rem !important;
    word-break: break-word;
    overflow-wrap: break-word;
  }

  /* Better text truncation for property addresses */
  .property-address-mobile {
    max-width: 120px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .property-address-desktop {
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Corrigir overflow de documentos em mobile */
  .overflow-wrap-anywhere {
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
  }

  .break-words {
    word-break: break-word;
    overflow-wrap: break-word;
  }

  /* .floating-element {
    display: none;
  } */

  .automation-steps {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
  }
  
  .automation-steps .text-center {
    flex: 0 0 auto;
    min-width: 80px;
  }
  
  .automation-steps .step-arrow {
    transform: rotate(0deg) !important;
  }
}

/* Additional mobile optimizations for very small screens */
@media (max-width: 480px) {
  .tab-content {
    min-height: 180px;
  }

  .hero-content h1 {
    font-size: 2rem !important;
    line-height: 1.2 !important;
  }

  .hero-content p {
    font-size: 1rem !important;
    padding: 0 1rem;
  }
  
  .hero-content .bg-white\/10 {
    padding: 0.25rem 0.5rem !important;
    font-size: 0.65rem !important;
  }
  
  .hero-content .flex.items-center.gap-3 {
    gap: 0.25rem !important;
    flex-wrap: nowrap !important;
  }

  .btn-primary,
  .btn-secondary {
    padding: 12px 20px !important;
    font-size: 16px;
  }

  .feature-card {
    padding: 1.25rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .automation-card {
    padding: 1.25rem;
  }

  /* Small screen carousel improvements */
  .dashboard-carousel {
    border-radius: 8px;
    overflow: hidden;
  }

  .carousel-indicators {
    margin-top: 12px;
  }

  .carousel-indicator {
    width: 6px;
    height: 6px;
  }

  /* Enhanced small screen hero section */
  .hero-gradient {
    padding-top: 122px !important;
  }
  
  /* Top header very small screens */
  .top-header span {
    font-size: 0.7rem !important;
  }
  
  .top-header img {
    width: 0.875rem !important;
    height: 0.625rem !important;
  }

  .hero-title {
    font-size: 2rem !important;
    line-height: 1.1 !important;
  }

  .hero-content p {
    font-size: 1rem !important;
    max-width: 40rem;
  }

  .carousel-slide .grid {
    gap: 0.25rem !important;
  }

  /* Enhanced mobile responsiveness for white divs */
  .carousel-slide .bg-white {
    padding: 0.25rem !important;
    margin: 0 0 0.375rem 0 !important;
    width: 100% !important;
    font-size: 0.7rem !important;
  }

  .carousel-slide .text-xl {
    font-size: 0.9rem !important;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Social Icons */
.social-icon {
  transition: all 0.3s ease;
}

.social-icon:hover {
  transform: translateY(-2px);
  color: #3b82f6;
}

/* Footer Links */
.footer-link {
  transition: color 0.3s ease;
}

/* Pricing Section - Fundo Animado e Elementos Flutuantes */
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.pricing-floating-element {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  animation: float 6s ease-in-out infinite;
  z-index: 1;
}

.pricing-floating-1 {
  width: 60px;
  height: 60px;
  top: 15%;
  left: 8%;
  animation-delay: 0s;
}

.pricing-floating-2 {
  width: 40px;
  height: 40px;
  top: 70%;
  left: 15%;
  animation-delay: 2s;
}

.pricing-floating-3 {
  width: 80px;
  height: 80px;
  top: 30%;
  right: 12%;
  animation-delay: 4s;
}

.pricing-floating-4 {
  width: 35px;
  height: 35px;
  top: 85%;
  right: 25%;
  animation-delay: 1s;
}

.pricing-floating-5 {
  width: 55px;
  height: 55px;
  top: 8%;
  right: 8%;
  animation-delay: 3s;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(180deg); }
}

/* Pricing Cards Styles for Landing Page */
.pricing-card {
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 30px -5px hsl(220 91% 29% / 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Aumentar altura dos botões em todos os cards de preços */
.pricing-card .btn-primary {
  padding: 16px 20px !important;
  font-size: 18px !important;
  min-height: 56px;
}

/* Reverter apenas o botão "Começar teste grátis" específico da hero section */
.hero-gradient a.animate-button[href*="register"],
.hero-gradient .animate-button[href*="register"],
a.animate-button[href*="register"] {
  padding: 12px 16px !important;
  font-size: 18px !important;
  min-height: auto !important;
  background: #07348D !important;
  background-color: #07348D !important;
  border-radius: 16px !important;
  border: none !important;
  color: #ffffff !important;
  text-decoration: none !important;
}

.hero-gradient a.animate-button[href*="register"]:hover,
.hero-gradient .animate-button[href*="register"]:hover,
a.animate-button[href*="register"]:hover {
  background: #052a6b !important;
  background-color: #052a6b !important;
  color: #ffffff !important;
  text-decoration: none !important;
}

/* Linha superior removida dos cards padrão */

/* Hover effects removidos dos cards de preços */

.pricing-card-popular {
  transform: scale(1.05);
}

/* Garantir que o card Profissional tenha as mesmas animações dos demais */
.pricing-card-popular.scroll-animate {
  transform: translateY(30px);
  opacity: 0;
}

.pricing-card-popular.scroll-animate.animate-in {
  transform: translateY(0);
  opacity: 1;
}

/* Linha superior do card popular removida */

/* Hover do card popular removido */


.pricing-card-premium::before {
  background: linear-gradient(90deg, #8b5cf6 0%, #3b82f6 100%);
}

/* Linha superior do card elite removida */

/* Mobile optimizations for pricing cards */
@media (max-width: 768px) {
  .pricing-card {
    margin-bottom: 1rem;
    padding: 1.5rem !important;
  }
  
  .pricing-card-popular {
    transform: none;
  }
  
  /* Garantir animações do card Profissional em mobile */
  .pricing-card-popular.scroll-animate {
    transform: translateY(30px);
    opacity: 0;
  }
  
  .pricing-card-popular.scroll-animate.animate-in {
    transform: translateY(0);
    opacity: 1;
  }
  
  /* Hover mobile removido */
  
  .pricing-card h3 {
    font-size: 1.125rem;
  }
  
  .pricing-card .text-3xl {
    font-size: 2rem;
  }
  
  .pricing-card .space-y-3 {
    gap: 0.75rem;
  }
  
  .pricing-card .space-y-3 > * + * {
    margin-top: 0.75rem;
  }
}

/* Toggle de Preços */
#billingToggleLanding {
  transition: background-color 0.3s ease;
}

#billingToggleLanding:hover {
  background-color: rgba(255, 255, 255, 0.4);
}

#billingKnobLanding {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Esconder elementos flutuantes em mobile */
@media (max-width: 768px) {
  /* .pricing-floating-element {
    display: none;
  } */
  
  /* Animações scroll-animate habilitadas em mobile */
  .scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
  }
  
  .scroll-animate.animate-in {
    opacity: 1;
    transform: translateY(0);
    /* Removido animation: para evitar re-disparo */
  }
}

/* Menu hambúrguer para resoluções ≤ 1060px */
@media (max-width: 1060px) {
  /* Esconder navegação horizontal - forçar override do md:flex */
  .navigation nav.hidden.md\\:flex {
    display: none !important;
  }
  
  /* Mostrar botão do menu hambúrguer - forçar override do md:hidden */
  .navigation button.md\\:hidden {
    display: block !important;
  }
  
  /* Forçar esconder navegação horizontal */
  .navigation .flex.justify-between nav {
    display: none !important;
  }
  
  /* Forçar mostrar botão hambúrguer */
  .navigation .flex.justify-between button {
    display: block !important;
  }
  
  /* Ajustes do logo para telas menores */
  .navigation img {
    width: 3rem;
    height: 3rem;
  }
  
  .navigation span {
    font-size: 1.5rem;
  }
  
  /* Estilos do menu mobile expandido */
  #mobileMenu {
    background: #f9fafb;
    border-radius: 0;
    box-shadow: none;
    margin-top: 0;
    position: relative;
    z-index: 50;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
  }
  
  /* Override do Tailwind hidden class */
  #mobileMenu.hidden {
    display: none !important;
  }
  
  /* Mostrar o menu quando não estiver hidden */
  #mobileMenu:not(.hidden) {
    display: block !important;
  }
  
  /* Remover qualquer overlay ou backdrop */
  .navigation::after,
  .navigation::before {
    display: none !important;
  }
  
  /* Garantir que não haja fundo escuro */
  body:has(#mobileMenu:not(.hidden)) {
    background: #f9fafb !important;
  }
  
  /* Quando o menu estiver aberto, deixar o header gray-50 também */
  .navigation:has(+ #mobileMenu:not(.hidden)),
  .navigation:has(#mobileMenu:not(.hidden)) {
    background: #f9fafb !important;
  }
  
  /* Forçar header gray-50 quando menu mobile estiver visível */
  body:has(#mobileMenu:not(.hidden)) .navigation {
    background: #f9fafb !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  
  /* Quando menu estiver aberto, deixar tudo gray-50 */
  body.menu-open {
    background: #f9fafb !important;
  }
  
  body.menu-open .navigation {
    background: #f9fafb !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  
  
  #mobileMenu .flex.flex-col.space-y-4 {
    padding: 0;
    gap: 0;
    background: #f9fafb;
  }
  
  #mobileMenu a {
    padding: 0.75rem 1rem;
    border-radius: 0;
    transition: none;
    font-weight: 500;
    color: #374151;
    background: #f9fafb;
  }
  
  #mobileMenu a:hover {
    background-color: #f9fafb;
    color: #374151;
  }
  
  #mobileMenu .btn-primary {
    background: #1e40af !important;
    color: white !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 8px !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    text-align: center !important;
    justify-content: center !important;
    margin-top: 0.5rem !important;
  }
  
  #mobileMenu .btn-primary:hover {
    background: #1e3a8a !important;
    transform: translateY(-1px);
  }
}

/* Responsive Design */
@media (min-width: 1024px) and (max-width: 1366px) {
  html {
    font-size: 15px;
  }

  body {
    line-height: 1.55;
  }

  .navigation {
    backdrop-filter: blur(16px);
  }

  .navigation .btn-primary {
    padding: 12px 16px !important;
    font-size: 18px;
  }

  .navigation a {
    font-size: .95rem;
  }

  .hero-content h1 {
    font-size: 2.75rem !important;
    line-height: 1.15 !important;
  }

  .hero-content p {
    font-size: 1.1rem !important;
    max-width: 40rem;
  }

  .hero-gradient {
    padding-top: 80px !important;
  }

  .btn-primary {
    padding: 12px 16px !important;
    font-size: 18px;
    border-radius: 8px;
  }

  .btn-secondary {
    padding: 10px 20px;
    font-size: 1rem;
    border-radius: 10px;
  }

  .dashboard-preview {
    transform: perspective(900px) rotateY(-10deg) rotateX(6deg);
    box-shadow: 0 16px 48px -12px hsl(220 91% 29% / 0.25);
  }

  .dashboard-preview:hover {
    transform: perspective(900px) rotateY(-8deg) rotateX(4deg) scale(1.03);
  }

  .feature-card {
    padding: 2rem;
    border-radius: 18px;
  }

  .icon-container {
    width: 64px;
    height: 64px;
    border-radius: 18px;
  }

  .stat-card {
    padding: 1.5rem 1.25rem;
  }

  section.py-20 {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  section.py-16 {
    padding-top: 3.25rem;
    padding-bottom: 3.25rem;
  }

  h2.text-4xl,
  h2.md\:text-5xl {
    font-size: 2.25rem !important;
  }

  .text-xl {
    font-size: 1.05rem;
  }

  footer .w-10.h-10 {
    width: 2.25rem;
    height: 2.25rem;
  }

  footer .text-2xl {
    font-size: 1.25rem;
  }
}

@media (min-width: 769px) {
  .dashboard-preview {
    height: 450px !important;
  }

  .dashboard-carousel {
    height: 380px !important;
  }

  /* Fix contracts tab content overflow on desktop */
  .carousel-slide .space-y-2 {
    max-height: 280px;
    overflow-y: auto;
  }

  .carousel-slide .space-y-2::-webkit-scrollbar {
    width: 4px;
  }

  .carousel-slide .space-y-2::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 2px;
  }

  .carousel-slide .space-y-2::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 2px;
  }
}

/* Touch optimizations for mobile */
@media (hover: none) and (pointer: coarse) {
  .btn-primary:hover,
  .btn-secondary:hover,
  .feature-card:hover,
  .stat-card:hover,
  .automation-card:hover {
    transform: none;
  }

  .btn-primary:active,
  .btn-secondary:active {
    transform: scale(0.98);
  }

  .feature-card:active,
  .stat-card:active,
  .automation-card:active {
    transform: translateY(-2px);
  }
}

/* Animação de bounce para o foguete */
@keyframes bounce {
  0%, 20%, 53%, 80%, 100% {
    transform: translate3d(0,0,0);
  }
  40%, 43% {
    transform: translate3d(0, -8px, 0);
  }
  70% {
    transform: translate3d(0, -4px, 0);
  }
  90% {
    transform: translate3d(0, -2px, 0);
  }
}

.animate-bounce {
  animation: bounce 1s infinite;
}

/* Mobile Header Height Reduction */
@media (max-width: 768px) {
  .navigation {
    top: 1.5rem !important;
  }
  
  .navigation .flex.justify-between.items-center {
    padding-top: 0.25rem !important;
    padding-bottom: 0.25rem !important;
    align-items: center !important;
  }
  
  .navigation img {
    width: 2.5rem !important;
    height: 2.5rem !important;
    transform: translateY(0.5rem) !important;
  }
  
  .navigation span {
    font-size: 1.25rem !important;
    transform: translateY(0.5rem) !important;
  }
  
  .navigation button {
    transform: translateY(0.5rem) !important;
  }
}

/* Mobile Menu Animations */
#mobileMenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
  opacity: 0;
  padding-bottom: 1rem;
}

/* Hamburger Animation */
.navigation button.md\:hidden {
  transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

.navigation button.md\:hidden.hide {
  opacity: 0;
  transform: scale(0.8);
}

#mobileMenu.show {
  max-height: 800px;
  opacity: 1;
  transition: max-height 0.3s ease-in, opacity 0.3s ease-in;
}

#mobileMenu .flex.flex-col > a {
  transform: translateX(-20px);
  opacity: 0;
  transition: transform 0.3s ease-out, opacity 0.3s ease-out;
}

#mobileMenu.show .flex.flex-col > a {
  transform: translateX(0);
  opacity: 1;
  transition: transform 0.3s ease-in, opacity 0.3s ease-in;
}

#mobileMenu.show .flex.flex-col > a:nth-child(1) { transition-delay: 0.1s; }
#mobileMenu.show .flex.flex-col > a:nth-child(2) { transition-delay: 0.15s; }
#mobileMenu.show .flex.flex-col > a:nth-child(3) { transition-delay: 0.2s; }
#mobileMenu.show .flex.flex-col > a:nth-child(4) { transition-delay: 0.25s; }
#mobileMenu.show .flex.flex-col > a:nth-child(5) { transition-delay: 0.3s; }
#mobileMenu.show .flex.flex-col > a:nth-child(6) { transition-delay: 0.35s; }
#mobileMenu.show .flex.flex-col > a:nth-child(7) { transition-delay: 0.4s; }
#mobileMenu.show .flex.flex-col > a:nth-child(8) { transition-delay: 0.45s; }

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* Tab buttons styling for dashboard preview */
.tab-active {
  background-color: rgb(239 246 255) !important;
  color: rgb(37 99 235) !important;
  border-bottom: 2px solid rgb(37 99 235) !important;
}

.tab-inactive {
  background-color: transparent;
  color: rgb(107 114 128);
  border-bottom: 2px solid transparent;
}

/* Carousel indicators - prevent scroll */
.carousel-indicator {
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  transition: all 0.3s ease;
  background-color: rgba(255, 255, 255, 0.6);
}

.carousel-indicator.active {
  background-color: rgba(255, 255, 255, 0.9) !important;
  transform: scale(1.1);
}

.carousel-indicator:hover {
  background-color: rgba(255, 255, 255, 0.8);
  transform: scale(1.05);
}

.carousel-indicators {
  pointer-events: auto;
  z-index: 10;
}

/* Added Modal and Status Badge styles from pasted-text-2 */
/* Modal overlay com backdrop semi-transparente */
.modal-overlay {
  background: rgba(0, 0, 0, 0.5) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
}

/* Garantir que o conteúdo do modal tenha fundo sólido */
.modal-content {
  background: white !important;
  border-radius: 0.75rem !important;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* Garantir que modais de recibo tenham fundo sólido */
#notificationModal > div,
#receiptModal > div,
#receiptSuccessModal > div,
#signatureModal > div,
#signatureSuccessModal > div,
#signatureManagementModal > div {
  background: white !important;
  border-radius: 0.75rem !important;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4) !important;
  border: 1px solid rgba(0, 0, 0, 0.05) !important;
}

/* Status Badge Classes - CORREÇÃO FOCADA */
.status-active {
  background-color: #dbeafe;
  color: #1e40af;
  border: 1px solid #93c5fd;
}

.status-pending {
  background-color: #fef3c7;
  color: #d97706;
  border: 1px solid #fed7aa;
}

.status-inactive {
  background-color: #fee2e2;
  color: #dc2626;
  border: 1px solid #fca5a5;
}

/* Garantir que os icons do Lucide funcionem */
[data-lucide] {
  width: 1rem;
  height: 1rem;
  stroke-width: 2;
}

/* Added Document styles from pasted-text-2 */
/* Documentos anexados - corrigir quebra de linha e overflow */
.documents-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  max-width: 100%;
  overflow: hidden;
}

@media (max-width: 768px) {
  .documents-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.document-card {
  border: 1px solid #e5e7eb !important;
  border-radius: 12px;
  padding: 1rem;
  background: #fff !important;
  overflow: hidden;
  word-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  transition: all 0.2s ease;
}

.document-card:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  border-color: #d1d5db !important;
}

.document-card .document-title {
  white-space: normal;
  word-wrap: break-word;
  word-break: break-word;
  overflow-wrap: break-word;
  line-height: 1.4;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #374151;
}

.document-card .document-description {
  white-space: normal;
  word-wrap: break-word;
  word-break: break-word;
  overflow-wrap: break-word;
  line-height: 1.3;
  color: #6b7280;
  font-size: 0.875rem;
}

.document-card .document-actions {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #f3f4f6;
}

.document-card .btn-download {
  background: #3b82f6;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.875rem;
  transition: background-color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.document-card .btn-download:hover {
  background: #2563eb;
}

/* Property Photos Management - Mobile Optimizations */
.photo-item {
  position: relative;
  overflow: hidden;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

.photo-item:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Mobile-specific photo management styles */
@media (max-width: 768px) {
  .photo-item {
    margin-bottom: 1rem;
  }
  
  .photo-item img {
    height: 120px !important;
    width: 100%;
    object-fit: cover;
  }
  
  /* Botões de ação sempre visíveis em mobile */
  .photo-item .group:hover .opacity-0 {
    opacity: 1 !important;
  }
  
  /* Botões maiores para touch */
  .photo-item button {
    min-width: 48px !important;
    min-height: 48px !important;
    padding: 0.75rem !important;
    font-size: 0.875rem !important;
    border-radius: 0.5rem !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
  }
  
  /* Melhor contraste para botões */
  .photo-item button.bg-blue-500 {
    background-color: #2563eb !important;
    border: 2px solid #ffffff !important;
  }
  
  .photo-item button.bg-red-500 {
    background-color: #dc2626 !important;
    border: 2px solid #ffffff !important;
  }
  
  /* Container de botões mais espaçado */
  .photo-item .flex.flex-col {
    gap: 0.75rem !important;
    padding: 0.75rem !important;
  }
  
  /* Indicador de foto principal mais visível */
  .photo-item .absolute.top-1.left-1 {
    top: 0.5rem !important;
    left: 0.5rem !important;
    padding: 0.25rem 0.5rem !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    background-color: #2563eb !important;
    border: 1px solid #ffffff !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
  }
  
  /* Grid de fotos mais espaçado */
  #photosList {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
  
  /* Melhor feedback visual para interações */
  .photo-item:active {
    transform: scale(0.98);
  }
  
  .photo-item button:active {
    transform: scale(0.95);
  }
}

/* Desktop photo management styles */
@media (min-width: 769px) {
  .photo-item img {
    height: 128px !important;
  }
  
  .photo-item .group:hover .opacity-0 {
    opacity: 1;
  }
  
  #photosList {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
  }
}

/* Touch optimizations for photo management */
@media (hover: none) and (pointer: coarse) {
  .photo-item .group:hover .opacity-0 {
    opacity: 0;
  }
  
  .photo-item:active .opacity-0 {
    opacity: 1 !important;
  }
  
  .photo-item button {
    touch-action: manipulation;
  }
}

/* Document Type Selector Styles */
.document-type-selector {
  margin-bottom: 1rem;
  width: 100%;
  display: block;
}

.document-type-selector .document-type-options {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  max-width: 300px;
  margin: 0 auto;
  width: 100%;
  white-space: nowrap;
  overflow: visible;
}

.document-type-selector .document-type-options > * {
  display: inline-block !important;
  float: none !important;
  clear: none !important;
}

.document-type-selector * {
  box-sizing: border-box;
}

.document-type-selector label {
  display: inline-block !important;
  float: none !important;
  clear: none !important;
  width: auto !important;
}

.document-type-label {
  display: block;
  font-weight: 500;
  color: hsl(var(--foreground));
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
}


.document-option {
  position: relative;
  cursor: pointer;
  flex: 1;
  max-width: 140px;
  min-width: 120px;
  display: inline-block !important;
  vertical-align: top;
  float: none !important;
  clear: none !important;
}

.document-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.option-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem 0.5rem;
  border: 2px solid hsl(var(--border));
  border-radius: 12px;
  background: white;
  transition: all 0.3s ease;
  text-align: center;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  min-height: 80px;
  gap: 0.5rem;
  width: 100%;
}

.option-text i {
  color: hsl(var(--muted-foreground));
  transition: color 0.3s ease;
}

.document-option:hover .option-text {
  border-color: hsl(var(--primary));
  background: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
  transform: translateY(-2px);
  box-shadow: 0 4px 12px hsl(var(--primary) / 0.15);
}

.document-option:hover .option-text i {
  color: hsl(var(--primary));
}

.document-option input[type="radio"]:checked + .option-text {
  border-color: hsl(var(--primary));
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  box-shadow: 0 4px 12px hsl(var(--primary) / 0.25);
}

.document-option input[type="radio"]:checked + .option-text i {
  color: hsl(var(--primary-foreground));
}

/* Mobile optimizations for document type selector */
@media (max-width: 768px) {
  .document-type-options {
    gap: 0.75rem;
    max-width: 280px;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
  }
  
  .document-option {
    max-width: 130px;
    min-width: 110px;
    display: inline-block !important;
  }
  
  .option-text {
    padding: 0.75rem 0.25rem;
    min-height: 70px;
    font-size: 0.875rem;
  }
  
  .option-text i {
    width: 1.25rem;
    height: 1.25rem;
  }
}

/* Modal Styles */
.modal-overlay {
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.modal-content {
  background-color: white;
  border-radius: 0.75rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-content input,
.modal-content select,
.modal-content textarea {
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  padding: 0.75rem;
  font-size: 0.875rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.modal-content input:focus,
.modal-content select:focus,
.modal-content textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.modal-content label {
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.5rem;
  display: block;
}
