/* ============================================
   NayraBot - MINIMAL PROFESSIONAL PRELOADER
   Modern & Elegant Design
   ============================================ */

/* Preloader Container */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a1612 0%, #0d1f1c 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    transition: opacity 0.6s ease, transform 0.6s ease;
    overflow: hidden;
}

#preloader::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(45, 150, 135, 0.03) 0%, transparent 70%);
}

#preloader.fade-out {
    opacity: 0;
    transform: scale(1.05);
    pointer-events: none;
}

/* Content Container */
.preloader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 60px;
    animation: fadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

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

/* Logo Container */
.preloader-logo {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Animated Circle Background */
.preloader-logo::before {
    content: '';
    position: absolute;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(45, 150, 135, 0.1), rgba(45, 150, 135, 0.05));
    animation: pulseGlow 3s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        transform: scale(1);
        opacity: 0.4;
    }
    50% {
        transform: scale(1.15);
        opacity: 0.7;
    }
}

/* Logo Icon */
.preloader-logo i {
    font-size: 64px;
    background: linear-gradient(135deg, #2dd4bf 0%, #14b8a6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    z-index: 1;
    animation: gentlePulse 2.5s ease-in-out infinite;
}

@keyframes gentlePulse {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 12px rgba(45, 212, 191, 0.3));
    }
    50% {
        transform: scale(1.06);
        filter: drop-shadow(0 0 20px rgba(45, 212, 191, 0.5));
    }
}

/* Minimal Progress Bar */
.preloader-spinner {
    width: 200px;
    height: 3px;
    background: rgba(45, 150, 135, 0.15);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.preloader-spinner::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, #2dd4bf, transparent);
    animation: loadingBar 1.5s ease-in-out infinite;
}

@keyframes loadingBar {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Security Badge - Professional */
.security-badge {
    position: absolute;
    bottom: 60px;
    font-size: 14px;
    color: rgba(45, 212, 191, 0.7);
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(14, 42, 39, 0.5);
    padding: 12px 24px;
    border-radius: 50px;
    border: 1px solid rgba(45, 212, 191, 0.2);
    backdrop-filter: blur(10px);
    font-weight: 500;
    animation: fadeIn 1s ease-out 0.6s both;
}

.security-badge i {
    font-size: 16px;
    color: #2dd4bf;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .preloader-logo::before {
        width: 120px;
        height: 120px;
    }
    
    .preloader-logo i {
        font-size: 56px;
    }
    
    .preloader-spinner {
        width: 180px;
    }
    
    .preloader-content {
        gap: 50px;
    }
    
    .security-badge {
        bottom: 50px;
        font-size: 13px;
        padding: 10px 20px;
    }
}

@media (max-width: 480px) {
    .preloader-logo::before {
        width: 100px;
        height: 100px;
    }
    
    .preloader-logo i {
        font-size: 48px;
    }
    
    .preloader-spinner {
        width: 160px;
    }
    
    .preloader-content {
        gap: 45px;
    }
    
    .security-badge {
        font-size: 12px;
        bottom: 40px;
        padding: 8px 16px;
    }
}

/* Smooth Performance */
#preloader * {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
