﻿:root {
    --neon-purple: #d946ef;
    --neon-glow: 0 0 15px rgba(217, 70, 239, 0.6);
    --bg-dark: #000000;
    --border-light: rgba(217, 70, 239, 0.6); /* Más visible */
    --text-main: #ffffff;
    --text-muted: #e4e4e7; /* GRIS MUCHO MÁS CLARO (Casi blanco) */
    --sidebar-width: 260px;
}

body {
    background-color: var(--bg-dark);
    background-image: radial-gradient(circle at 50% 0%, #2a0a36 0%, #000000 80%);
    color: var(--text-main);
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Tipografía y Neon */
.text-neon {
    color: var(--neon-purple);
    text-shadow: var(--neon-glow);
}

.text-secondary {
    color: var(--text-muted) !important; /* Override de Bootstrap */
    opacity: 0.9; /* Menos transparencia para que se lea bien */
    font-weight: 400;
}

/* Botones */
.btn-neon {
    background-color: var(--neon-purple);
    border: none;
    color: white;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 15px rgba(217, 70, 239, 0.4);
    transition: all 0.3s ease;
}

    .btn-neon:hover {
        background-color: #c026d3;
        box-shadow: 0 0 25px rgba(217, 70, 239, 0.8);
        color: white;
        transform: translateY(-2px);
    }

/* Paneles (Cards) */
.card-panel {
    background: linear-gradient(145deg, rgba(80, 20, 100, 0.7) 0%, rgba(20, 5, 30, 0.9) 100%);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(147, 51, 234, 0.15);
    color: white;
}

/* Inputs Mejorados */
.form-control {
    background-color: rgba(0, 0, 0, 0.6) !important;
    border: 1px solid rgba(217, 70, 239, 0.5) !important;
    color: white !important;
    font-size: 1rem;
}

    .form-control:focus {
        box-shadow: 0 0 0 0.25rem rgba(217, 70, 239, 0.25);
        border-color: var(--neon-purple) !important;
    }

    .form-control::placeholder {
        color: rgba(255, 255, 255, 0.7) !important; /* Placeholder más brillante */
    }

/* SweetAlert Custom Theme (Para que combine) */
div.swal2-popup {
    background: #1a0520 !important;
    border: 1px solid var(--neon-purple) !important;
}

div.swal2-title {
    color: white !important;
}

div.swal2-html-container {
    color: #e4e4e7 !important;
}

#site-preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999; /* Por encima de todo */
    background-color: #000000;
    background-image: radial-gradient(circle at 50% 0%, #2a0a36 0%, #000000 80%); /* Tu fondo original */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease-out, visibility 0.5s;
}

.preloader-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.preloader-logo {
    width: 120px; /* Ajusta según tamaño de logo_sm.png */
    height: auto;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px rgba(217, 70, 239, 0.4));
}

.brand-text {
    color: #e4e4e7;
    font-size: 0.9rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 600;
}

.neon-title {
    color: #d946ef; /* Tu variable --neon-purple */
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: 4px;
    margin: 0;
    text-shadow: 0 0 20px rgba(217, 70, 239, 0.6); /* Glow efecto */
    font-family: 'Segoe UI', sans-serif;
}

.loading-wrapper {
    margin-top: 30px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.loading-text {
    color: #e4e4e7;
    font-size: 0.7rem;
    letter-spacing: 3px;
    margin-bottom: 10px;
    opacity: 0.8;
}

/* Barra de carga estilo Cyberpunk */
.progress-container {
    width: 200px;
    height: 4px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.progress-bar {
    width: 0%;
    height: 100%;
    background: #d946ef;
    box-shadow: 0 0 10px #d946ef;
    animation: loadEmpire 2.5s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

/* Animación de carga */
@keyframes loadEmpire {
    0% { width: 0%; }
    40% { width: 40%; }
    70% { width: 60%; }
    100% { width: 100%; }
}

/* Clase para ocultar */
.preloader-hidden {
    opacity: 0;
    visibility: hidden;
}
