/**
 * Trader Intelligence - Estilos Customizados
 * 
 * Estilos adicionais e animações que complementam o TailwindCSS
 */

/* ============================================================================
   RESET E BASE
   ============================================================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    background: #0a0a0a;
}

/* ============================================================================
   LOGO TRADER INTELLIGENCE
   ============================================================================ */

.brand-logo {
    display: inline-flex;
    align-items: baseline;
    gap: 0.35rem;
    text-decoration: none;
    letter-spacing: -0.02em;
    line-height: 1;
}

.brand-logo-trader {
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
}

.brand-logo-intelligence {
    font-size: 1.25rem;
    font-weight: 700;
    background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 50%, #93c5fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================================================
   LOGO TRADER INTELLIGENCE (legado)
   ============================================================================ */

.logo-analista-oculto {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.logo-icon {
    width: 80px;
    height: 80px;
    position: relative;
    margin-bottom: 1rem;
}

.logo-icon::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: white;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    transform: rotate(180deg);
}

.logo-text {
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    font-size: 1.5rem;
    letter-spacing: 0.1em;
    text-align: center;
    color: white;
    line-height: 1.2;
}

/* ============================================================================
   ANIMAÇÕES CUSTOMIZADAS
   ============================================================================ */

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(0, 255, 136, 0.6);
    }
}

@keyframes slide-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes rotate-360 {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* ============================================================================
   SCROLLBAR CUSTOMIZADA
   ============================================================================ */

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
    background: #2a2a2a;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #3b82f6;
}

/* ============================================================================
   COMPONENTES
   ============================================================================ */

/* Drop Zone */
#dropZone {
    transition: all 0.3s ease;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#dropZone:hover {
    border-color: #3b82f6 !important;
    background: rgba(59, 130, 246, 0.1) !important;
}

#dropZone.dragging {
    border-color: #3b82f6 !important;
    background-color: rgba(59, 130, 246, 0.1) !important;
}

#dropZone.has-image {
    border-color: #3b82f6 !important;
    background-color: rgba(59, 130, 246, 0.05) !important;
}

/* Preview Image */
#imagePreview {
    animation: fade-in 0.5s ease;
    max-width: 100%;
    object-fit: contain;
}

/* Botões */
button {
    transition: all 0.3s ease;
}

button:not(:disabled):hover {
    transform: translateY(-2px);
}

button:not(:disabled):active {
    transform: translateY(0);
}

/* Botão de Analisar - Estilo Premium */
#analyzeBtn {
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.4), 0 0 0 1px rgba(59, 130, 246, 0.1);
}

#analyzeBtn:not(:disabled):hover {
    box-shadow: 0 12px 48px rgba(59, 130, 246, 0.5), 0 0 0 1px rgba(59, 130, 246, 0.2);
    transform: translateY(-2px);
}

#analyzeBtn:not(:disabled):active {
    transform: translateY(0);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
}

/* Efeito de brilho interno no botão */
#analyzeBtn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

#analyzeBtn:not(:disabled):hover::before {
    left: 100%;
}

/* Loading Spinner - Fullscreen */
#loadingState {
    opacity: 0;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    will-change: opacity;
}

#loadingState:not(.hidden) {
    opacity: 1;
}

/* Animação de entrada do loading */
#loadingState .relative {
    animation: scale-in 0.5s cubic-bezier(0.4, 0, 0.2, 1) backwards;
}

@keyframes scale-in {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

#loadingState .absolute {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-20px) scale(1.1);
    }
}

.animate-spin {
    animation: rotate-360 1s linear infinite;
}

/* Result Area */
#resultArea {
    transform-origin: center;
    will-change: transform, opacity;
}

@keyframes slide-up-fade {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Animações de entrada para cards */
#resultArea .bg-dark-bg {
    animation: fade-in-up 0.6s ease backwards;
}

#resultArea .bg-dark-bg:nth-child(1) { animation-delay: 0.1s; }
#resultArea .bg-dark-bg:nth-child(2) { animation-delay: 0.2s; }
#resultArea .bg-dark-bg:nth-child(3) { animation-delay: 0.3s; }
#resultArea .bg-dark-bg:nth-child(4) { animation-delay: 0.4s; }
#resultArea .bg-dark-bg:nth-child(5) { animation-delay: 0.5s; }
#resultArea .bg-dark-bg:nth-child(6) { animation-delay: 0.6s; }

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Error Area */
#errorArea {
    animation: slide-up 0.4s ease;
}

/* ============================================================================
   BOTTOM NAVIGATION
   ============================================================================ */

nav {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

nav a[href],
nav div[class*="cursor-pointer"] {
    transition: all 0.2s ease;
}

nav a[href]:hover,
nav div[class*="cursor-pointer"]:hover {
    opacity: 1;
}

nav a[href]:hover > div,
nav div[class*="cursor-pointer"]:hover > div {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

nav a[href]:active,
nav div[class*="cursor-pointer"]:active {
    transform: scale(0.95);
}

/* ============================================================================
   MOBILE RESPONSIVE
   ============================================================================ */

@media (max-width: 640px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    #dropZone {
        min-height: 180px;
        padding: 2rem 1rem;
    }
}

/* ============================================================================
   GRADIENTE ANIMADO
   ============================================================================ */

@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.bg-gradient-animated {
    background-size: 200% 200%;
    animation: gradient-shift 3s ease infinite;
}

/* ============================================================================
   RANKING PAGE
   ============================================================================ */

.tab-button {
    color: #9ca3af;
    background: transparent;
}

.tab-button.active {
    background: #3b82f6;
    color: #0a0a0a;
}

.tab-button:not(.active):hover {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

/* Cards do Top 3 com efeitos de brilho */
.ranking-card-top {
    position: relative;
    overflow: hidden;
}

.ranking-card-top::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate-glow 10s linear infinite;
}

@keyframes rotate-glow {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Ranking Desktop Layout */
.ranking-column {
    min-height: 600px;
}

.ranking-content {
    max-height: calc(100vh - 300px);
    overflow-y: auto;
    padding-right: 4px;
}

.ranking-content::-webkit-scrollbar {
    width: 4px;
}

.ranking-content::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 2px;
}

.ranking-content::-webkit-scrollbar-thumb {
    background: #3b82f6;
    border-radius: 2px;
}

.ranking-content::-webkit-scrollbar-thumb:hover {
    background: #00cc6a;
}

/* Animações suaves para cards */
.ranking-column .ranking-card-top {
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Efeito hover nos cards do ranking */
.ranking-column .bg-dark-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 255, 136, 0.1);
    transition: all 0.3s ease;
}

/* ============================================================================
   MODERN BACKGROUND ANIMATIONS
   ============================================================================ */

@keyframes orb-float {
    0%, 100% { 
        transform: translate(0, 0) scale(1); 
    }
    33% { 
        transform: translate(50px, -50px) scale(1.1); 
    }
    66% { 
        transform: translate(-30px, 30px) scale(0.95); 
    }
}

.animate-orb-1 {
    animation: orb-float 20s ease-in-out infinite;
}

.animate-orb-2 {
    animation: orb-float 25s ease-in-out infinite reverse;
}

.animate-orb-3 {
    animation: orb-float 18s ease-in-out infinite;
    animation-delay: -5s;
}

/* Modern Background Component */
.modern-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

/* ============================================================================
   LOADING STATE - ULTRA MODERN ANIMATIONS
   ============================================================================ */

/* Pulse Slow */
@keyframes pulse-slow {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.1);
    }
}

.animate-pulse-slow {
    animation: pulse-slow 4s ease-in-out infinite;
}

/* Fast Pulse */
@keyframes pulse-fast {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 15px rgba(0,255,136,0.4));
    }
    50% {
        transform: scale(1.1);
        filter: drop-shadow(0 0 25px rgba(0,255,136,0.8));
    }
}

.animate-pulse-fast {
    animation: pulse-fast 1.5s ease-in-out infinite;
}

/* Scan Down */
@keyframes scan-down {
    0% {
        top: -100%;
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        top: 200%;
        opacity: 0;
    }
}

.animate-scan-down {
    animation: scan-down 2s linear infinite;
}

/* Slide Up */
@keyframes slide-up {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-slide-up {
    animation: slide-up 0.5s ease-out forwards;
}

/* Fade In Up */
@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fade-in-up 0.8s ease-out forwards;
}

/* Spin Animations */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes spin-reverse {
    to {
        transform: rotate(-360deg);
    }
}

/* Progress Bar Transition */
#progressBar {
    transition: width 0.3s ease-out, box-shadow 0.3s ease;
}

/* Text Transition */
#progressText {
    transition: color 0.3s ease;
}

/* Brain Pulse - Enhanced */
@keyframes brain-pulse {
    0%, 100% { 
        transform: scale(1);
        opacity: 1;
        filter: drop-shadow(0 0 10px #3b82f6);
    }
    50% { 
        transform: scale(1.15);
        opacity: 0.85;
        filter: drop-shadow(0 0 20px #3b82f6);
    }
}

.brain-pulse {
    animation: brain-pulse 2.5s ease-in-out infinite;
}

/* Brain Glow - Enhanced */
@keyframes brain-glow {
    0%, 100% {
        opacity: 0.4;
        transform: scale(1);
    }
    25% {
        opacity: 0.7;
        transform: scale(1.3);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.1);
    }
    75% {
        opacity: 0.7;
        transform: scale(1.3);
    }
}

.brain-glow {
    animation: brain-glow 3s ease-in-out infinite;
}

/* Loading State Entrance */
@keyframes loading-entrance {
    0% {
        opacity: 0;
        transform: scale(0.9);
        filter: blur(10px);
    }
    100% {
        opacity: 1;
        transform: scale(1);
        filter: blur(0px);
    }
}

#loadingState:not(.hidden) {
    animation: loading-entrance 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Content Fade In Sequence */
@keyframes content-fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#loadingState .relative.z-10 > * {
    animation: content-fade-in 0.6s ease-out backwards;
}

#loadingState .relative.z-10 > *:nth-child(1) {
    animation-delay: 0.2s;
}

#loadingState .relative.z-10 > *:nth-child(2) {
    animation-delay: 0.3s;
}

#loadingState .relative.z-10 > *:nth-child(3) {
    animation-delay: 0.4s;
}

#loadingState .relative.z-10 > *:nth-child(4) {
    animation-delay: 0.5s;
}

#loadingState .relative.z-10 > *:nth-child(5) {
    animation-delay: 0.6s;
}

/* Progress Text Animation */
#progressText {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), 
                color 0.3s ease-out;
}

/* Loading Status Text Transitions */
#loadingStatus {
    transition: all 0.3s ease-out;
}

/* Premium Exit Animation */
@keyframes loading-exit {
    0% {
        opacity: 1;
        transform: scale(1);
        filter: blur(0px);
    }
    100% {
        opacity: 0;
        transform: scale(0.95);
        filter: blur(10px);
    }
}

/* Success Checkmark Animation */
@keyframes check-bounce {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

/* Completion Flash Effect */
@keyframes completion-flash {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.7);
    }
    50% {
        box-shadow: 0 0 0 30px rgba(0, 255, 136, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 255, 136, 0);
    }
}

/* Spinner Container Transitions */
.relative.w-48.h-48 {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Smooth All Animations */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Enhanced Backdrop Blur for Premium Feel */
#loadingState {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Binary Code Rain Effect */
.binary-rain {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    opacity: 0.08;
}

.binary-column {
    position: absolute;
    top: -100%;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: #3b82f6;
    white-space: pre;
    line-height: 1.2;
    animation: binary-fall 8s linear infinite;
    text-shadow: 0 0 5px #3b82f6;
}

@keyframes binary-fall {
    0% {
        top: -100%;
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        top: 100%;
        opacity: 0;
    }
}

.binary-column::before {
    content: '01010101\A10101010\A01010101\A10101010\A01010101\A10101010\A01010101\A10101010\A01010101\A10101010';
    white-space: pre;
}

/* Matrix-style Glow Effect */
@keyframes matrix-glow {
    0%, 100% {
        text-shadow: 
            0 0 5px #3b82f6,
            0 0 10px #3b82f6;
    }
    50% {
        text-shadow: 
            0 0 10px #3b82f6,
            0 0 20px #3b82f6,
            0 0 30px #3b82f6;
    }
}

.binary-column {
    animation: binary-fall 8s linear infinite, matrix-glow 2s ease-in-out infinite;
}

/* Data Stream Lines */
.data-stream {
    position: absolute;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, transparent, #3b82f6, transparent);
    opacity: 0.3;
    animation: data-flow 2s ease-in-out infinite;
}

@keyframes data-flow {
    0%, 100% {
        transform: translateY(-100%);
        opacity: 0;
    }
    50% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(100%);
    }
}

.stream-1 {
    left: 25%;
    animation-delay: 0s;
}

.stream-2 {
    left: 50%;
    animation-delay: 0.3s;
    background: linear-gradient(180deg, transparent, #6b46c1, transparent);
}

.stream-3 {
    left: 75%;
    animation-delay: 0.6s;
}

.stream-4 {
    left: 40%;
    animation-delay: 0.9s;
    background: linear-gradient(180deg, transparent, #00ccff, transparent);
}

/* Radar Sweep Effect */
@keyframes radar-sweep {
    0% {
        transform: rotate(0deg);
        opacity: 0.8;
    }
    100% {
        transform: rotate(360deg);
        opacity: 0.3;
    }
}

.radar-sweep {
    position: absolute;
    width: 100%;
    height: 100%;
    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        rgba(0, 255, 136, 0.3) 30deg,
        transparent 60deg
    );
    animation: radar-sweep 4s linear infinite;
}

/* Corner Brackets */
.corner-bracket {
    position: absolute;
    width: 20px;
    height: 20px;
    border-color: #3b82f6;
    opacity: 0.5;
    animation: bracket-pulse 2s ease-in-out infinite;
}

@keyframes bracket-pulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

.top-left {
    top: -5px;
    left: -5px;
    border-top: 2px solid;
    border-left: 2px solid;
}

.top-right {
    top: -5px;
    right: -5px;
    border-top: 2px solid;
    border-right: 2px solid;
    animation-delay: 0.5s;
}

.bottom-left {
    bottom: -5px;
    left: -5px;
    border-bottom: 2px solid;
    border-left: 2px solid;
    animation-delay: 1s;
}

.bottom-right {
    bottom: -5px;
    right: -5px;
    border-bottom: 2px solid;
    border-right: 2px solid;
    animation-delay: 1.5s;
}

/* Loading Orbs */
@keyframes loading-orb {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.1;
    }
    50% {
        transform: translate(-30px, -30px) scale(1.3);
        opacity: 0.15;
    }
}

.loading-orb-1 {
    animation: loading-orb 8s ease-in-out infinite;
}

.loading-orb-2 {
    animation: loading-orb 10s ease-in-out infinite;
    animation-delay: -2s;
}

.loading-orb-3 {
    animation: loading-orb 12s ease-in-out infinite;
    animation-delay: -4s;
}

/* Enhanced Floating Particles */
@keyframes particle-float {
    0% {
        transform: translate(0, 0) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translate(var(--tx), var(--ty)) scale(1);
        opacity: 0;
    }
}

@keyframes particle-trail {
    0% {
        transform: translate(0, 0);
        opacity: 0;
    }
    50% {
        opacity: 0.8;
    }
    100% {
        transform: translate(var(--tx), var(--ty));
        opacity: 0;
    }
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: #3b82f6;
    border-radius: 50%;
    animation: particle-trail 8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    box-shadow: 0 0 12px rgba(0, 255, 136, 0.8), 0 0 20px rgba(0, 255, 136, 0.4);
}

.particle::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: inherit;
    border-radius: 50%;
    animation: particle-glow 2s ease-in-out infinite;
}

@keyframes particle-glow {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(2);
        opacity: 0;
    }
}

.particle-1 { 
    top: 15%; 
    left: 8%; 
    --tx: 250px; 
    --ty: -350px;
    animation-delay: 0s;
}

.particle-2 { 
    top: 85%; 
    left: 85%; 
    --tx: -200px; 
    --ty: -250px;
    animation-delay: 1.2s;
    background: #6b46c1;
    box-shadow: 0 0 12px rgba(107, 70, 193, 0.8), 0 0 20px rgba(107, 70, 193, 0.4);
}

.particle-3 { 
    top: 35%; 
    right: 8%; 
    --tx: -300px; 
    --ty: 250px;
    animation-delay: 2.4s;
    background: #00ccff;
    box-shadow: 0 0 12px rgba(0, 204, 255, 0.8), 0 0 20px rgba(0, 204, 255, 0.4);
}

.particle-4 { 
    bottom: 25%; 
    left: 25%; 
    --tx: 220px; 
    --ty: -300px;
    animation-delay: 3.6s;
}

.particle-5 { 
    top: 55%; 
    left: 65%; 
    --tx: -250px; 
    --ty: 180px;
    animation-delay: 4.8s;
    background: #6b46c1;
    box-shadow: 0 0 12px rgba(107, 70, 193, 0.8), 0 0 20px rgba(107, 70, 193, 0.4);
}

.particle-6 { 
    top: 12%; 
    right: 22%; 
    --tx: -120px; 
    --ty: 350px;
    animation-delay: 6s;
}

.particle-7 { 
    top: 70%; 
    left: 15%; 
    --tx: 180px; 
    --ty: -200px;
    animation-delay: 7.2s;
    background: #00ccff;
    box-shadow: 0 0 12px rgba(0, 204, 255, 0.8), 0 0 20px rgba(0, 204, 255, 0.4);
}

.particle-8 { 
    bottom: 40%; 
    right: 18%; 
    --tx: -160px; 
    --ty: 220px;
    animation-delay: 8.4s;
}

/* Loading Dots */
@keyframes loading-dot-bounce {
    0%, 80%, 100% {
        transform: scale(0.8) translateY(0);
        opacity: 0.5;
    }
    40% {
        transform: scale(1.2) translateY(-10px);
        opacity: 1;
    }
}

.loading-dot {
    animation: loading-dot-bounce 1.4s ease-in-out infinite;
}

/* Gradient Text Animation */
@keyframes gradient-text-flow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.gradient-text-animated {
    background-size: 200% auto;
    animation: gradient-text-flow 3s linear infinite;
}

/* Progress Glow - Enhanced */
@keyframes progress-glow {
    0%, 100% {
        box-shadow: 
            0 0 10px rgba(0, 255, 136, 0.6),
            0 0 20px rgba(0, 255, 136, 0.3),
            inset 0 0 10px rgba(0, 255, 136, 0.2);
    }
    50% {
        box-shadow: 
            0 0 20px rgba(0, 255, 136, 0.9),
            0 0 40px rgba(0, 255, 136, 0.5),
            inset 0 0 20px rgba(0, 255, 136, 0.4);
    }
}

.progress-glow {
    animation: progress-glow 2s ease-in-out infinite;
    position: relative;
}

.progress-glow::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 20px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6));
    filter: blur(5px);
    animation: progress-spark 2s ease-in-out infinite;
}

@keyframes progress-spark {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
}

/* Shimmer Overlay - Enhanced */
@keyframes shimmer-slide {
    0% {
        transform: translateX(-100%) skewX(-20deg);
    }
    100% {
        transform: translateX(200%) skewX(-20deg);
    }
}

.shimmer-overlay {
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.05) 45%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0.05) 55%,
        transparent 100%
    );
    animation: shimmer-slide 3s ease-in-out infinite;
    width: 100%;
}

/* Progress Bar Container Enhancement */
#progressBar {
    position: relative;
    overflow: visible !important;
}

/* Scanning Grid Overlay */
@keyframes grid-scan {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 20px 20px;
    }
}

.hexagon-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(0, 255, 136, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 136, 0.02) 1px, transparent 1px);
    background-size: 20px 20px;
    animation: grid-scan 2s linear infinite;
    pointer-events: none;
}

/* Fade In Animation */
@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fade-in-up 0.6s ease-out;
}

/* Status Text Fade */
@keyframes status-fade {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.status-fade {
    animation: status-fade 2s ease-in-out infinite;
}

/* ============================================================================
   UTILITÁRIOS
   ============================================================================ */

.text-shadow {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.backdrop-blur-custom {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Focus visível para navegação por teclado */
button:focus-visible,
input:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* ============================================================================
   CUSTOM UTILITIES
   ============================================================================ */

.gradient-text {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.border-glow {
    position: relative;
}

.border-glow::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: linear-gradient(45deg, #3b82f6, transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.border-glow:hover::before {
    opacity: 1;
}

/* ============================================================================
   SIGNAL COUNTER
   ============================================================================ */

#signalCount {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* ============================================================================
   CONFIDENCE BAR ANIMATION
   ============================================================================ */

#confidenceBar {
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
}

/* ============================================================================
   COUNTDOWN BAR
   ============================================================================ */

#countdownBar {
    transition: width 1s linear;
    box-shadow: 0 0 10px rgba(234, 179, 8, 0.5);
}

/* Countdown quando expira - "ENTRE AGORA" */
#countdown.text-green-500 {
    text-shadow: 0 0 15px rgba(34, 197, 94, 0.6);
    letter-spacing: 0.5px;
}

#countdown.animate-pulse {
    animation: pulse-green 1.5s infinite;
}

@keyframes pulse-green {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.85;
        transform: scale(1.03);
    }
}

/* Garantir que não quebre */
#countdown {
    white-space: nowrap;
    overflow: visible;
    word-break: keep-all;
}

/* ============================================================================
   ACTION BUTTON GRADIENT
   ============================================================================ */

#actionBtn {
    position: relative;
    overflow: hidden;
}

#actionBtn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

#actionBtn:hover::before {
    left: 100%;
}

/* ============================================================================
   ANALYSIS TOGGLE
   ============================================================================ */

#analysisChevron {
    transition: transform 0.3s ease;
}

#toggleAnalysisBtn:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

/* ============================================================================
   RESULT AREA STYLES
   ============================================================================ */

#resultArea {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: slide-up-fade 0.5s ease-out;
}

@keyframes slide-up-fade {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Purple gradient for signal icon */
.bg-purple-gradient {
    background: linear-gradient(135deg, #6b46c1 0%, #9333ea 100%);
}

#actionBtn .entry-countdown-now {
    animation: entry-pulse 1s ease-in-out infinite;
    color: #fef08a;
}

/* ============================================================================
   CRONÔMETRO + BOTÃO DE SINAL (layout referência)
   ============================================================================ */

.entry-timer-box {
    border-radius: 1rem;
    border: 1px solid #22c55e;
    background: rgba(10, 10, 10, 0.85);
    padding: 1.25rem 1rem 1rem;
    text-align: center;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.entry-timer-box--compra {
    border-color: #22c55e;
    box-shadow: 0 0 24px rgba(34, 197, 94, 0.12);
}

.entry-timer-box--venda {
    border-color: #ef4444;
    box-shadow: 0 0 24px rgba(239, 68, 68, 0.12);
}

.entry-timer-box--compra .entry-timer-dot {
    background: #22c55e;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.8);
}

.entry-timer-box--venda .entry-timer-dot {
    background: #ef4444;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.8);
}

.entry-timer-countdown-row,
.entry-timer-ready-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    margin-bottom: 0.5rem;
}

.entry-timer-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    animation: entry-dot-pulse 1.5s ease-in-out infinite;
}

.entry-timer-countdown {
    font-size: 2.25rem;
    font-weight: 800;
    color: #ffffff;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.04em;
    line-height: 1;
}

.entry-timer-enter-at {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.4;
}

.entry-timer-enter-label {
    color: #9ca3af;
    margin-right: 0.35rem;
}

.entry-timer-enter-time {
    color: #ffffff;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.entry-timer-ready-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.06em;
}

.entry-timer-ready-sub {
    margin: 0;
    color: #d1d5db;
    font-size: 0.9rem;
}

.entry-timer-box.is-ready {
    animation: entry-ready-box-pulse 1.2s ease-in-out infinite;
}

@keyframes entry-dot-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.65; transform: scale(0.92); }
}

@keyframes entry-ready-box-pulse {
    0%, 100% { box-shadow: 0 0 20px rgba(34, 197, 94, 0.15); }
    50% { box-shadow: 0 0 28px rgba(34, 197, 94, 0.35); }
}

.entry-timer-box--venda.is-ready {
    animation-name: entry-ready-box-pulse-venda;
}

@keyframes entry-ready-box-pulse-venda {
    0%, 100% { box-shadow: 0 0 20px rgba(239, 68, 68, 0.15); }
    50% { box-shadow: 0 0 28px rgba(239, 68, 68, 0.35); }
}

.signal-action-btn {
    border: none;
    min-height: 3.75rem;
}

.signal-action-btn-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.22);
    flex-shrink: 0;
}

.signal-action-btn.compra,
#actionBtn.signal-action-btn.compra {
    background: #22c55e !important;
    box-shadow: 0 10px 32px rgba(34, 197, 94, 0.45);
}

.signal-action-btn.venda,
#actionBtn.signal-action-btn.venda {
    background: #ef4444 !important;
    box-shadow: 0 10px 32px rgba(239, 68, 68, 0.45);
}

.signal-action-btn.compra:hover,
#actionBtn.signal-action-btn.compra:hover {
    background: #16a34a !important;
    box-shadow: 0 12px 36px rgba(34, 197, 94, 0.55);
}

.signal-action-btn.venda:hover,
#actionBtn.signal-action-btn.venda:hover {
    background: #dc2626 !important;
    box-shadow: 0 12px 36px rgba(239, 68, 68, 0.55);
}

.signal-action-btn.entry-ready {
    animation: signal-btn-ready-pulse 0.9s ease-in-out infinite;
}

@keyframes signal-btn-ready-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

#actionBtn.entry-ready {
    animation: entry-ready-pulse 0.9s ease-in-out infinite;
    transform: scale(1.01);
}

#actionBtn.entry-ready #actionText {
    font-size: 1.35rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

@keyframes entry-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.85; transform: scale(1.05); }
}

@keyframes entry-ready-pulse {
    0%, 100% { box-shadow: 0 8px 32px rgba(255, 255, 255, 0.15); }
    50% { box-shadow: 0 12px 40px rgba(255, 255, 255, 0.35); }
}

/* Action button - Estilo Premium (neutro e legado) */
#actionBtn:not(.signal-action-btn) {
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(239, 68, 68, 0.4), 0 0 0 1px rgba(239, 68, 68, 0.1);
}

#actionBtn.compra:not(.signal-action-btn) {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 8px 32px rgba(16, 185, 129, 0.4), 0 0 0 1px rgba(16, 185, 129, 0.1);
}

#actionBtn.venda:not(.signal-action-btn) {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    box-shadow: 0 8px 32px rgba(239, 68, 68, 0.4), 0 0 0 1px rgba(239, 68, 68, 0.1);
}

#actionBtn.neutro {
    background: linear-gradient(135deg, #eab308, #ca8a04);
    box-shadow: 0 8px 32px rgba(234, 179, 8, 0.4), 0 0 0 1px rgba(234, 179, 8, 0.1);
}

#actionBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 48px rgba(239, 68, 68, 0.5), 0 0 0 1px rgba(239, 68, 68, 0.2);
}

#actionBtn.compra:hover {
    box-shadow: 0 12px 48px rgba(16, 185, 129, 0.5), 0 0 0 1px rgba(16, 185, 129, 0.2);
}

#actionBtn.neutro:hover {
    box-shadow: 0 12px 48px rgba(234, 179, 8, 0.5), 0 0 0 1px rgba(234, 179, 8, 0.2);
}

#actionBtn:active {
    transform: translateY(0);
}

/* Efeito de brilho interno no botão de ação */
#actionBtn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

#actionBtn:hover::before {
    left: 100%;
}

/* Action button icon circle */
#actionBtn .w-12 {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Botão Nova Análise - Estilo Premium */
#newAnalysisBtn {
    position: relative;
    overflow: hidden;
}

#newAnalysisBtn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

#newAnalysisBtn:hover::before {
    left: 100%;
}

/* Cards de métricas com hover suave */
.grid.grid-cols-2 > div > div {
    transition: all 0.3s ease;
}

.grid.grid-cols-2 > div > div:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* ============================================================================
   INPUT STYLES
   ============================================================================ */

#ativoInput {
    transition: all 0.3s ease;
}

#ativoInput:focus {
    box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.1);
}

/* ============================================================================
   PROFESSIONAL ANIMATIONS
   ============================================================================ */

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.shimmer-effect {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

/* Pulse animation for loading dots */
@keyframes pulse-dot {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

.loading-dot {
    animation: pulse-dot 1.4s ease-in-out infinite;
}

.loading-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.loading-dot:nth-child(3) {
    animation-delay: 0.4s;
}

/* Gradient text animation */
@keyframes gradient-text {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.gradient-text-animated {
    background: linear-gradient(90deg, #3b82f6, #2563eb, #3b82f6);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-text 3s linear infinite;
}

/* ============================================================================
   WIN RATE CIRCLE ANIMATION
   ============================================================================ */

#winRateCircleWin,
#winRateCircleLoss {
    transform-origin: center;
    opacity: 1;
    stroke-linecap: round;
}

/* Garantir que círculos zerados não apareçam */
#winRateCircleWin.hidden,
#winRateCircleLoss.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Animação suave para o SVG */
svg[viewBox="0 0 36 36"] {
    transition: transform 0.3s ease;
    will-change: transform;
}

/* ============================================================================
   CALENDÁRIO MOBILE
   ============================================================================ */

.dia-calendario {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.dia-calendario:active {
    transform: scale(0.95);
}

/* Melhorar legibilidade dos valores no mobile */
@media (max-width: 640px) {
    .dia-calendario {
        min-width: 0;
    }
    
    #calendarioDias {
        gap: 0.25rem;
    }
}

/* ============================================================================
   GLASSMORPHISM PARA MENUS
   ============================================================================ */

.menu-glass {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: -webkit-linear-gradient(bottom, rgba(0, 0, 0, .75), rgba(21, 23, 28, .4));
    box-shadow: inset 5px 5px 20px #ffffff08;
}

/* Garantir que headers sticky mantenham o background */
header.sticky,
header[class*="sticky"] {
    background-color: #0a0a0a !important;
}

/* Garantir que menus fixos mantenham o background */
nav.fixed,
nav[class*="fixed"] {
    background-color: #0a0a0a !important;
}

/* ============================================================================
   LOADING ANIMATION - CÍRCULOS CONCÊNTRICOS E ROBÔ
   ============================================================================ */

.loading-animation {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
}

.loading-circle {
    position: absolute;
    inset: 0;
    border: 4px solid rgba(255, 255, 255, 0.08);
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-circle:nth-child(2) {
    inset: 10px;
    border-top-color: #8b5cf6;
    animation-duration: 1.5s;
    animation-direction: reverse;
}

.loading-circle:nth-child(3) {
    inset: 20px;
    border-top-color: #3b82f6;
    animation-duration: 2s;
}

.loading-icon {
    position: absolute;
    inset: 25px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse-glow 1.5s ease-in-out infinite;
}

.loading-icon i {
    font-size: 18px;
    color: white;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
    }
    50% {
        box-shadow: 0 0 40px rgba(59, 130, 246, 0.5), 0 0 60px rgba(59, 130, 246, 0.5);
    }
}

/* ============================================================================
   LOADING STATE - 4 BARRAS ANIMADAS
   ============================================================================ */

/* Animação sutil de pulse para o ícone principal */
@keyframes pulse-subtle {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

.animate-pulse-subtle {
    animation: pulse-subtle 2s ease-in-out infinite;
}

/* Efeito de brilho nas barras quando completam */
.loading-bar {
    position: relative;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
    will-change: width;
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    -webkit-perspective: 1000;
    perspective: 1000;
    transition: width 1000ms cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-transition: width 1000ms cubic-bezier(0.4, 0, 0.2, 1);
}

.loading-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 2s infinite;
    pointer-events: none;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Fade in das barras */
.loading-bar-container {
    opacity: 0;
    transform: translateY(10px);
    animation: fadeInUp 0.4s ease-out forwards;
}

.loading-bar-container[data-step="1"] {
    animation-delay: 0.1s;
}

.loading-bar-container[data-step="2"] {
    animation-delay: 0.2s;
}

.loading-bar-container[data-step="3"] {
    animation-delay: 0.3s;
}

.loading-bar-container[data-step="4"] {
    animation-delay: 0.4s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animação dos ícones das barras */
.loading-bar-icon {
    transition: all 0.3s ease;
}

.loading-bar-container.active .loading-bar-icon {
    animation: iconPulse 0.6s ease-in-out;
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.3);
    }
}

/* Transição do loading state */
#loadingState {
    transition: opacity 0.5s ease, visibility 0.5s ease;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 99999 !important;
    background: rgba(0, 0, 0, 0.98) !important;
    pointer-events: auto !important;
}

#loadingState:not(.hidden) {
    opacity: 1;
    visibility: visible;
    display: flex !important;
}

#loadingState.hidden {
    opacity: 0;
    visibility: hidden;
    display: none !important;
}

/* Otimizações para Mobile */
@media (max-width: 768px) {
    .loading-bar {
        /* Forçar aceleração de hardware no mobile */
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        -webkit-perspective: 1000;
        perspective: 1000;
    }
    
    .loading-bar-container {
        /* Garantir que animações sejam processadas */
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
        will-change: transform, opacity;
    }
    
    #loadingState {
        /* Garantir cobertura total no mobile */
        position: fixed;
        min-height: 100vh;
        min-height: -webkit-fill-available;
    }
}

/* Fix específico para iOS Safari */
@supports (-webkit-overflow-scrolling: touch) {
    .loading-bar {
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }
    
    /* Garantir que container não interfira */
    .w-full.h-2.bg-gray-800.rounded-full {
        overflow: hidden;
        position: relative;
    }
}

/* Bloquear scroll quando loading está ativo */
body.loading-active {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
    height: 100% !important;
}

/* Garantir que o loading fique acima de tudo */
#loadingState * {
    z-index: inherit;
}

/* Reduzir z-index de outros elementos quando loading está ativo */
body.loading-active header,
body.loading-active nav,
body.loading-active .bottom-nav,
body.loading-active [class*="fixed"],
body.loading-active [class*="sticky"],
body.loading-active [class*="z-"] {
    z-index: 1 !important;
}

/* Força o loading state a estar sempre no topo */
body.loading-active #loadingState {
    z-index: 99999 !important;
    isolation: isolate;
}

/* Garantir que menu inferior fique abaixo do loading */
body.loading-active nav[class*="bottom"] {
    z-index: 0 !important;
}

body.loading-active .fixed.bottom-0 {
    z-index: 0 !important;
}
