/* Estilos generales */
body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.login-body {
    background: linear-gradient(135deg, #1a2a6c, #b21f1f, #fdbb2d);
    height: 100vh;
    display: flex;
    align-items: center;
}

.login-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    background: rgba(255,255,255,0.95);
}

.gold-text {
    color: #FFD700;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.gold-btn {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    border: none;
    font-weight: bold;
    color: #000;
}

.gold-btn:hover {
    background: linear-gradient(45deg, #FFA500, #FFD700);
    color: #000;
}

/* Navbar estilo futurista */
.navbar {
    background: linear-gradient(90deg, #1a2a6c, #2c3e50);
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.navbar-brand {
    font-weight: bold;
    color: #FFD700 !important;
}

.navbar-text {
    color: #FFD700 !important;
    font-weight: 500;
}

/* Estilos para la tabla */
.table th {
    background: linear-gradient(45deg, #2c3e50, #4a6580);
    color: white;
    font-weight: bold;
    border: none;
}

.table-hover tbody tr:hover {
    background-color: rgba(255, 215, 0, 0.1);
    transform: scale(1.01);
    transition: all 0.2s ease;
}

/* Badges de status */
.badge {
    font-size: 0.8em;
    padding: 0.5em 0.8em;
    border-radius: 0.5rem;
    font-weight: 600;
}

.bg-success { 
    background: linear-gradient(45deg, #28a745, #20c997) !important; 
    border: none;
}

.bg-danger { 
    background: linear-gradient(45deg, #dc3545, #fd7e14) !important; 
    border: none;
}

.bg-warning { 
    background: linear-gradient(45deg, #ffc107, #ff6b00) !important; 
    border: none;
    color: #000 !important;
}

.bg-info { 
    background: linear-gradient(45deg, #17a2b8, #2dce89) !important; 
    border: none;
}

.bg-primary { 
    background: linear-gradient(45deg, #007bff, #0056b3) !important; 
    border: none;
}

.bg-secondary { 
    background: linear-gradient(45deg, #6c757d, #495057) !important; 
    border: none;
}

.bg-dark { 
    background: linear-gradient(45deg, #343a40, #212529) !important; 
    border: none;
}

/* Cards con estilo futurista */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    margin-bottom: 24px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.card-header {
    border-radius: 12px 12px 0 0 !important;
    font-weight: bold;
    border-bottom: 2px solid rgba(255, 215, 0, 0.3);
    padding: 1rem 1.5rem;
}

.card-body {
    padding: 1.5rem;
}

/* Botones con estilo dorado */
.btn-warning {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    border: none;
    color: #000;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-warning:hover {
    background: linear-gradient(45deg, #FFA500, #FFD700);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    color: #000;
}

.btn-primary {
    background: linear-gradient(45deg, #007bff, #0056b3);
    border: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(45deg, #0056b3, #007bff);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn-success {
    background: linear-gradient(45deg, #28a745, #20c997);
    border: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-success:hover {
    background: linear-gradient(45deg, #20c997, #28a745);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn-danger {
    background: linear-gradient(45deg, #dc3545, #fd7e14);
    border: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-danger:hover {
    background: linear-gradient(45deg, #fd7e14, #dc3545);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Botones pequeños */
.btn-sm {
    padding: 0.25rem 0.75rem;
    font-size: 0.8rem;
    border-radius: 0.375rem;
}

/* Botones grandes */
.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 0.5rem;
}

/* Footer estilo futurista */
footer {
    background: linear-gradient(90deg, #1a2a6c, #2c3e50) !important;
    margin-top: auto;
    padding: 1.5rem 0 !important;
}

/* Estilos para formularios */
.form-label {
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.form-control, .form-select {
    border: 2px solid #e9ecef;
    border-radius: 0.5rem;
    padding: 0.75rem;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: #FFD700;
    box-shadow: 0 0 0 0.3rem rgba(255, 215, 0, 0.25);
    transform: scale(1.02);
}

.form-text {
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

/* Alertas mejoradas */
.alert {
    border: none;
    border-radius: 0.75rem;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.alert-info {
    background: linear-gradient(45deg, #d1ecf1, #bee5eb);
    color: #0c5460;
}

.alert-success {
    background: linear-gradient(45deg, #d4edda, #c3e6cb);
    color: #155724;
}

.alert-warning {
    background: linear-gradient(45deg, #fff3cd, #ffeaa7);
    color: #856404;
}

.alert-danger {
    background: linear-gradient(45deg, #f8d7da, #f5c6cb);
    color: #721c24;
}

/* Tablas responsivas */
.table-responsive {
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.02);
}

/* Iconos */
.fas, .fab {
    margin-right: 0.5rem;
}

/* Utilidades */
.text-gold {
    color: #FFD700 !important;
}

.bg-gradient-primary {
    background: linear-gradient(45deg, #007bff, #0056b3);
}

.bg-gradient-warning {
    background: linear-gradient(45deg, #ffc107, #ff6b00);
}

.bg-gradient-success {
    background: linear-gradient(45deg, #28a745, #20c997);
}

/* Efectos hover para cards interactivas */
.card-interactive {
    transition: all 0.3s ease;
    cursor: pointer;
}

.card-interactive:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

/* Loaders y animaciones */
.spinner-gold {
    color: #FFD700;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.pulse {
    animation: pulse 2s infinite;
}

/* Responsividad */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .btn-lg {
        padding: 0.5rem 1rem;
        font-size: 1rem;
    }
    
    .table-responsive {
        font-size: 0.9rem;
    }
}

/* =========================================================
   LEGION – fondo neuronal a pantalla completa (canvas fijo)
   ========================================================= */
.net-bg{
    position: fixed;             /* permanece al fondo mientras haces scroll */
    inset: 0;                    /* top/right/bottom/left: 0 */
    width: 100vw;
    height: 100vh;
    z-index: 0;                  /* por detrás del contenido */
    opacity: .55;                /* ajusta intensidad del efecto */
    pointer-events: none;        /* no bloquea clics */
    filter: drop-shadow(0 0 4px rgba(0,229,255,.35));
}

/* Útil para cualquier contenedor que deba quedar por encima del canvas */
.legion-layer{
    position: relative;
    z-index: 1;
}
