/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0f172a;
}

::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

/* Autocomplete Styles */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px #0f172a inset !important;
    -webkit-text-fill-color: white !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* Utilidades del Neon Glow */
.neon-text-blue {
    text-shadow: 0 0 5px #00f3ff, 0 0 10px #00f3ff;
}

.neon-box-blue {
    box-shadow: 0 0 5px #00f3ff, 0 0 10px #00f3ff, inset 0 0 5px #00f3ff;
}

.bg-grid-pattern {
    background-image: linear-gradient(to right, rgba(0, 243, 255, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 243, 255, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
}

.loader-ring {
    border: 2px solid transparent;
    border-top: 2px solid #00f3ff;
    border-right: 2px solid #bc13fe;
    border-radius: 50%;
    animation: spin 2s linear infinite;
}

.loader-ring-reverse {
    border: 2px solid transparent;
    border-bottom: 2px solid #ff0055;
    border-left: 2px solid #00f3ff;
    border-radius: 50%;
    animation: spin 3s linear infinite reverse;
}

/* Pantalla completa con el Loader Overlay */
.loader-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(15, 23, 42, 0.6);
    /* Slate-900 con opacidad */
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease-in-out;
}

.loader-overlay.active {
    opacity: 1;
    pointer-events: all;
    user-select: none;
    -webkit-user-select: none;
}

.loader-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: scale(0.8);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.loader-overlay.active .loader-content {
    transform: scale(1);
}

.loader-logo-container {
    width: 120px;
    height: 120px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.2);
    margin-bottom: 20px;
    position: relative;
}

.loader-logo-container::before {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: #00f3ff;
    border-right-color: #bc13fe;
    animation: spin 2s linear infinite;
}

.loader-logo-container img {
    width: 60px;
    height: auto;
    filter: drop-shadow(0 0 10px rgba(0, 243, 255, 0.5));
    animation: pulse 2s infinite;
}

.loader-text {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: #fff;
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.5s ease 0.2s;
}

.loader-overlay.active .loader-text {
    opacity: 1;
    transform: translateY(0);
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse {
    50% {
        opacity: .5;
    }
}