/* gestion/static/gestion/css/custom_admin.css */

/* =========================================
   1. FONDO Y ANIMACIONES (EL EFECTO WOW)
   ========================================= */
body {
    /* Degradado Premium (Gris azulado metálico) */
    background: linear-gradient(135deg, #e0eafc 0%, #cfdef3 100%) !important;
    min-height: 100vh;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
}

/* Hace que el contenido principal sea transparente para ver el fondo */
.content-wrapper {
    background: transparent !important;
}

/* Animación de entrada: El contenido "sube" suavemente al cargar */
.content {
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

/* =========================================
   2. TARJETAS "GLASSMORPHISM" (CRISTAL)
   ========================================= */
.card {
    background: rgba(255, 255, 255, 0.85) !important; /* Blanco semitransparente */
    backdrop-filter: blur(12px); /* Efecto borroso detrás del cristal */
    border: 1px solid rgba(255, 255, 255, 0.4) !important; /* Borde sutil brillante */
    border-radius: 20px !important;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1) !important;
    transition: all 0.3s ease;
    margin-bottom: 25px !important;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px); /* Flota al pasar el mouse */
    box-shadow: 0 15px 40px rgba(0,0,0,0.15) !important;
}

.card-header {
    background: linear-gradient(90deg, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0.0) 100%) !important;
    border-bottom: 1px solid rgba(0,0,0,0.05) !important;
    padding: 15px 25px !important;
}

.card-title {
    color: #1e293b;
    font-weight: 800 !important;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.9rem !important;
}

/* =========================================
   3. BOTONES MODERNOS (GRADIENTES)
   ========================================= */
.btn {
    border-radius: 50px !important; /* Redondos */
    padding: 8px 25px !important;
    font-weight: 600 !important;
    border: none !important;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.75rem !important;
    letter-spacing: 1px;
    box-shadow: 0 4px 6px rgba(50, 50, 93, 0.11), 0 1px 3px rgba(0, 0, 0, 0.08);
}

.btn-primary, .btn-success {
    /* Degradado Azul Eléctrico */
    background: linear-gradient(87deg, #5e72e4 0%, #825ee4 100%) !important;
    color: white !important;
}

.btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
    box-shadow: 0 7px 14px rgba(50, 50, 93, 0.1), 0 3px 6px rgba(0, 0, 0, 0.08);
}

/* =========================================
   4. INPUTS FLUIDOS
   ========================================= */
.form-control, .select2-selection {
    background-color: rgba(255, 255, 255, 0.6) !important;
    border: 1px solid rgba(0,0,0,0.1) !important;
    border-radius: 12px !important;
    height: 45px !important;
    transition: all 0.3s ease;
}

.form-control:focus {
    background-color: #fff !important;
    border-color: #5e72e4 !important;
    box-shadow: 0 0 0 4px rgba(94, 114, 228, 0.15) !important;
}

/* =========================================
   5. BARRA LATERAL (SIDEBAR) - OSCURA
   ========================================= */
.main-sidebar {
    background: #0f172a !important; /* Azul Noche Profundo */
    box-shadow: 5px 0 15px rgba(0,0,0,0.05);
}

.brand-link {
    background: #0f172a !important;
    border-bottom: 1px solid rgba(255,255,255,0.1) !important;
    color: #fff !important;
}

/* Enlaces del MENÚ LATERAL (Blancos) */
.nav-sidebar .nav-link {
    color: rgba(255,255,255,0.75) !important;
    margin: 5px 10px !important;
    border-radius: 10px !important;
    transition: all 0.2s;
}

.nav-sidebar .nav-link:hover {
    background: rgba(255,255,255,0.1) !important;
    color: white !important;
    transform: translateX(5px);
}

.nav-sidebar .nav-link.active {
    background: white !important;
    color: #5e72e4 !important; /* Azul al estar activo */
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    font-weight: 700;
}

/* =========================================
   6. BARRA SUPERIOR (NAVBAR) - CORRECCIÓN DE TEXTO
   ========================================= */
.main-header {
    background: rgba(255, 255, 255, 0.8) !important; /* Cristal blanco */
    backdrop-filter: blur(10px); /* Efecto borroso */
    border-bottom: 1px solid rgba(0,0,0,0.05) !important;
}

/* AQUÍ ESTÁ EL ARREGLO: Texto oscuro para el menú de arriba */
.main-header .nav-link {
    color: #344767 !important; /* Gris oscuro elegante */
    font-weight: 600 !important;
}

.main-header .nav-link:hover {
    color: #5e72e4 !important; /* Azul al pasar el mouse */
}

/* Iconos de búsqueda y usuario */
.main-header .btn-navbar {
    color: #344767 !important;
}