/* ============================================= */
/* LOGIN MODERNO 2026 - GLASSMORPHISM EDITION */
/* Cristalería Altea - Colores: #000066, #2AB9AD, #00FFBF */
/* ============================================= */

/* Importar fuentes modernas */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* ============================================= */
/* FONDOS Y ESTRUCTURA PRINCIPAL */
/* ============================================= */

body.login_admin {
    background: linear-gradient(135deg,
        #f0f4f8 0%,
        #e8f4f8 25%,
        #f5f7fa 50%,
        #eef2f7 75%,
        #f8fafc 100%) !important;
    min-height: 100vh !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif !important;
    position: relative !important;
    overflow: hidden !important;
}

/* Formas decorativas de fondo */
body.login_admin::before {
    content: "" !important;
    position: fixed !important;
    top: -30% !important;
    right: -20% !important;
    width: 70vw !important;
    height: 70vw !important;
    max-width: 900px !important;
    max-height: 900px !important;
    background: linear-gradient(135deg,
        rgba(42, 185, 173, 0.15) 0%,
        rgba(0, 255, 191, 0.1) 50%,
        rgba(0, 0, 102, 0.08) 100%) !important;
    border-radius: 50% !important;
    filter: blur(60px) !important;
    z-index: 0 !important;
    animation: floatBubble 20s ease-in-out infinite !important;
}

body.login_admin::after {
    content: "" !important;
    position: fixed !important;
    bottom: -40% !important;
    left: -25% !important;
    width: 60vw !important;
    height: 60vw !important;
    max-width: 800px !important;
    max-height: 800px !important;
    background: linear-gradient(135deg,
        rgba(0, 0, 102, 0.12) 0%,
        rgba(42, 185, 173, 0.08) 100%) !important;
    border-radius: 50% !important;
    filter: blur(80px) !important;
    z-index: 0 !important;
    animation: floatBubble 25s ease-in-out infinite reverse !important;
}

@keyframes floatBubble {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(3%, -3%) scale(1.02); }
    50% { transform: translate(-2%, 2%) scale(0.98); }
    75% { transform: translate(2%, 1%) scale(1.01); }
}

/* Body general */
body {
    line-height: 1.5;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #1e293b;
    background: #f8fafc;
    padding: 0;
    display: flex;
    flex-direction: column;
    font-size: 15px;
    position: relative;
    margin: 0;
    min-height: 100vh;
}

/* ============================================= */
/* CONTENEDOR DEL FORMULARIO */
/* ============================================= */

body.login_admin .authentication-form-wrapper {
    position: relative !important;
    z-index: 10 !important;
    width: 100% !important;
    max-width: 440px !important;
    margin: 0 auto !important;
    padding: 20px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

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

/* ============================================= */
/* TARJETA GLASSMORPHISM */
/* ============================================= */

body.login_admin .tw-bg-white {
    background: rgba(255, 255, 255, 0.75) !important;
    border-radius: 28px !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    position: relative !important;
    overflow: visible !important;
    padding: 48px 40px !important;
    box-shadow:
        0 4px 6px rgba(0, 0, 0, 0.02),
        0 12px 24px rgba(0, 0, 0, 0.04),
        0 24px 48px rgba(0, 0, 102, 0.06),
        inset 0 1px 1px rgba(255, 255, 255, 0.9) !important;
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    min-height: auto !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

body.login_admin .tw-bg-white:hover {
    box-shadow:
        0 4px 6px rgba(0, 0, 0, 0.02),
        0 16px 32px rgba(0, 0, 0, 0.06),
        0 32px 64px rgba(0, 0, 102, 0.08),
        inset 0 1px 1px rgba(255, 255, 255, 0.9) !important;
    transform: translateY(-2px) !important;
}

/* Línea decorativa superior con gradiente */
body.login_admin .tw-bg-white::before {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 60% !important;
    height: 4px !important;
    background: linear-gradient(90deg,
        transparent 0%,
        #2AB9AD 20%,
        #000066 50%,
        #2AB9AD 80%,
        transparent 100%) !important;
    border-radius: 0 0 4px 4px !important;
}

/* Punto decorativo luminoso */
body.login_admin .tw-bg-white::after {
    content: "" !important;
    position: absolute !important;
    top: -6px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 12px !important;
    height: 12px !important;
    background: linear-gradient(135deg, #00FFBF, #2AB9AD) !important;
    border-radius: 50% !important;
    box-shadow: 0 0 20px rgba(0, 255, 191, 0.6) !important;
    animation: pulse 2s ease-in-out infinite !important;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0, 255, 191, 0.6);
        transform: translateX(-50%) scale(1);
    }
    50% {
        box-shadow: 0 0 30px rgba(0, 255, 191, 0.8);
        transform: translateX(-50%) scale(1.1);
    }
}

/* ============================================= */
/* LOGO Y TÍTULOS */
/* ============================================= */

body.login_admin .company-logo {
    margin-bottom: 8px !important;
}

body.login_admin .company-logo img {
    width: 200px !important;
    height: auto !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    display: block !important;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.08)) !important;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

body.login_admin .company-logo img:hover {
    transform: scale(1.03) !important;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.12)) !important;
}

/* Ocultar el título original y texto de bienvenida */
body.login_admin .text-center.tw-mb-5 {
    margin-bottom: 24px !important;
}

body.login_admin .text-center h1 {
    color: #0f172a !important;
    font-size: 26px !important;
    font-weight: 700 !important;
    margin-bottom: 6px !important;
    letter-spacing: -0.5px !important;
    background: none !important;
    -webkit-text-fill-color: #0f172a !important;
}

body.login_admin .text-center p {
    color: #64748b !important;
    font-size: 15px !important;
    font-weight: 400 !important;
}

/* ============================================= */
/* CAMPOS DE FORMULARIO */
/* ============================================= */

body.login_admin .form-group {
    margin-bottom: 20px !important;
}

body.login_admin .form-control {
    border-radius: 14px !important;
    border: 1.5px solid #e2e8f0 !important;
    padding: 14px 18px !important;
    font-size: 15px !important;
    background: rgba(255, 255, 255, 0.8) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
    font-weight: 500 !important;
    color: #1e293b !important;
    height: auto !important;
}

body.login_admin .form-control:hover {
    border-color: #cbd5e1 !important;
    background: rgba(255, 255, 255, 0.95) !important;
}

body.login_admin .form-control:focus {
    outline: none !important;
    border-color: #2AB9AD !important;
    background: #ffffff !important;
    box-shadow:
        0 0 0 3px rgba(42, 185, 173, 0.15),
        0 1px 2px rgba(0, 0, 0, 0.04) !important;
}

body.login_admin .form-control::placeholder {
    color: #94a3b8 !important;
    font-weight: 400 !important;
}

body.login_admin .form-label,
body.login_admin .control-label {
    color: #334155 !important;
    font-weight: 600 !important;
    margin-bottom: 8px !important;
    font-size: 13px !important;
    letter-spacing: 0.01em !important;
    text-transform: none !important;
    display: block !important;
}

/* ============================================= */
/* BOTÓN DROPDOWN */
/* ============================================= */

.btn.dropdown-toggle.btn-default {
    background: rgba(255, 255, 255, 0.8) !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 14px !important;
    padding: 14px 18px !important;
    color: #334155 !important;
    font-weight: 500 !important;
    font-size: 15px !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
    transition: all 0.3s ease !important;
}

/* ============================================= */
/* BOTÓN DE INICIAR SESIÓN */
/* ============================================= */

body.login_admin .btn-primary {
    background: linear-gradient(135deg, #000066 0%, #1a1a80 100%) !important;
    border: none !important;
    border-radius: 14px !important;
    padding: 16px 24px !important;
    width: 100% !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 14px rgba(0, 0, 102, 0.25) !important;
    margin-top: 8px !important;
    letter-spacing: 0.02em !important;
    position: relative !important;
    overflow: hidden !important;
    color: white !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    text-transform: none !important;
}

body.login_admin .btn-primary::before {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(90deg,
        transparent,
        rgba(255,255,255,0.2),
        transparent) !important;
    transition: left 0.5s ease !important;
}

body.login_admin .btn-primary:hover::before {
    left: 100% !important;
}

body.login_admin .btn-primary:hover {
    background: linear-gradient(135deg, #000066 0%, #2AB9AD 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 102, 0.35) !important;
}

body.login_admin .btn-primary:active {
    transform: translateY(0) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 102, 0.25) !important;
}

/* ============================================= */
/* ENLACES Y CHECKBOX */
/* ============================================= */

body.login_admin a {
    color: #2AB9AD !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
    font-size: 13px !important;
}

body.login_admin a:hover {
    color: #000066 !important;
    text-decoration: underline !important;
}

/* Quitar pseudo-elementos de enlaces */
body.login_admin a::after {
    display: none !important;
}

/* Checkbox moderno */
body.login_admin .checkbox,
body.login_admin .checkbox-inline {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

body.login_admin .checkbox input[type="checkbox"],
body.login_admin input[type="checkbox"] {
    width: 18px !important;
    height: 18px !important;
    border-radius: 5px !important;
    border: 1.5px solid #cbd5e1 !important;
    cursor: pointer !important;
    background: #ffffff !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    transition: all 0.2s ease !important;
    position: relative !important;
    flex-shrink: 0 !important;
}

body.login_admin input[type="checkbox"]:checked {
    background: #2AB9AD !important;
    border-color: #2AB9AD !important;
}

body.login_admin input[type="checkbox"]:checked::after {
    content: "" !important;
    position: absolute !important;
    left: 5px !important;
    top: 2px !important;
    width: 5px !important;
    height: 9px !important;
    border: solid white !important;
    border-width: 0 2px 2px 0 !important;
    transform: rotate(45deg) !important;
}

body.login_admin .checkbox label,
body.login_admin .checkbox-inline label {
    color: #64748b !important;
    font-weight: 400 !important;
    cursor: pointer !important;
    font-size: 13px !important;
    margin: 0 !important;
}

/* ============================================= */
/* BOTONES GENERALES - MEJORADOS */
/* ============================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 44px;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 14px;
    position: relative;
    overflow: hidden;
    line-height: 1.3;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.7s ease-in-out;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #000066 0%, #2AB9AD 50%, #00FFBF 100%);
    color: white;
    box-shadow: 0 8px 25px rgba(0, 0, 102, 0.35);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 102, 0.5);
    border-radius: 22px; /* MÁS REDONDEADO EN HOVER */
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.95);
    color: #000066;
    border: 2px solid #000066;
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 15px rgba(0, 0, 102, 0.15);
    border-radius: 18px; /* MÁS REDONDEADO */
}

.btn-secondary:hover {
    background: #000066;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 102, 0.3);
}

/* Tamaños de botones unificados */
.btn-xs {
    min-height: 28px !important;
    padding: 4px 10px !important;
    font-size: 12px !important;
}

.btn-sm {
    min-height: 36px !important;
    padding: 6px 14px !important;
    font-size: 13px !important;
}

.btn-lg {
    min-height: 52px !important;
    padding: 14px 28px !important;
    font-size: 16px !important;
}

/* Botones de Bootstrap */
.btn-default,
.btn-info,
.btn-success,
.btn-warning,
.btn-danger {
    min-height: 44px;
    padding: 10px 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1.3;
    border-radius: 8px;
}

/* ============================================= */
/* CAMPOS DE FORMULARIO - TEXTO VISIBLE */
/* ============================================= */

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="url"],
input[type="search"],
input[type="date"],
select,
textarea,
.form-control {
    min-height: 44px !important;
    height: auto !important;
    padding: 10px 14px !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    box-sizing: border-box !important;
}

/* Dropdowns y selects */
select,
select.form-control {
    padding-right: 35px !important;
    text-overflow: ellipsis !important;
    overflow: hidden !important;
}

/* Select2 */
.select2-container .select2-selection--single {
    min-height: 44px !important;
    height: auto !important;
    display: flex !important;
    align-items: center !important;
    padding: 0 14px !important;
}

.select2-container .select2-selection--single .select2-selection__rendered {
    line-height: 1.5 !important;
    padding: 0 !important;
    font-size: 14px !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100% !important;
    top: 0 !important;
    right: 10px !important;
}

/* Selectpicker Bootstrap */
.bootstrap-select > .dropdown-toggle {
    min-height: 44px !important;
    padding: 10px 14px !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    display: flex !important;
    align-items: center !important;
}

.bootstrap-select .filter-option-inner-inner {
    overflow: visible !important;
    text-overflow: ellipsis !important;
}

/* Dropdown menus */
.dropdown-menu > li > a,
.select2-results__option {
    padding: 10px 14px !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
}

/* ============================================= */
/* RESPONSIVE DESIGN */
/* ============================================= */

@media (max-width: 480px) {
    body.login_admin {
        padding: 16px !important;
    }

    body.login_admin .authentication-form-wrapper {
        padding: 12px !important;
        max-width: 100% !important;
    }

    body.login_admin .tw-bg-white {
        padding: 32px 24px !important;
        border-radius: 24px !important;
    }

    body.login_admin .company-logo img {
        width: 160px !important;
    }

    body.login_admin .text-center h1 {
        font-size: 22px !important;
    }

    body.login_admin .form-control {
        padding: 12px 16px !important;
        font-size: 16px !important; /* Evita zoom en iOS */
    }

    body.login_admin .btn-primary {
        padding: 14px 20px !important;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    body.login_admin .authentication-form-wrapper {
        max-width: 400px !important;
    }

    body.login_admin .tw-bg-white {
        padding: 40px 32px !important;
    }
}

/* ============================================= */
/* ESTADOS DE CARGA */
/* ============================================= */

body.login_admin .btn-loading {
    opacity: 0.85 !important;
    pointer-events: none !important;
    position: relative !important;
}

body.login_admin .btn-loading::after {
    content: "" !important;
    position: absolute !important;
    width: 18px !important;
    height: 18px !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    border-top-color: #ffffff !important;
    border-radius: 50% !important;
    animation: spin 0.7s linear infinite !important;
    right: 18px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
}

@keyframes spin {
    to { transform: translateY(-50%) rotate(360deg); }
}

/* ============================================= */
/* ACCESIBILIDAD */
/* ============================================= */

body.login_admin .form-control:focus-visible {
    outline: 2px solid #2AB9AD !important;
    outline-offset: 2px !important;
}

/* ============================================= */
/* UTILIDADES Y ESTILOS GENERALES MEJORADOS */
/* ============================================= */

.text-center { text-align: center; }
.mt-2 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 2rem; }

button:focus-visible,
a:focus-visible,
input:focus-visible {
    outline: 3px solid rgba(0, 255, 191, 0.5);
    outline-offset: 3px;
    border-radius: 8px; /* MÁS REDONDEADO */
}

/* Mejora de scroll suave */
html {
    scroll-behavior: smooth;
}

/* Selección de texto mejorada */
::selection {
    background: rgba(0, 255, 191, 0.3);
    color: #000066;
}

::-moz-selection {
    background: rgba(0, 255, 191, 0.3);
    color: #000066;
}

/* ============================================= */
/* ICONOS EN CAMPOS (SIMPLIFICADO) */
/* ============================================= */

/* Icono de email */
body.login_admin input[type="email"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z'%3E%3C/path%3E%3Cpolyline points='22,6 12,13 2,6'%3E%3C/polyline%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 16px center !important;
    background-size: 18px !important;
    padding-right: 48px !important;
}

/* Icono de contraseña */
body.login_admin input[type="password"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='11' width='18' height='11' rx='2' ry='2'%3E%3C/rect%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'%3E%3C/path%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 16px center !important;
    background-size: 18px !important;
    padding-right: 48px !important;
}

/* Iconos en focus - color más oscuro */
body.login_admin input[type="email"]:focus {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%232AB9AD' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z'%3E%3C/path%3E%3Cpolyline points='22,6 12,13 2,6'%3E%3C/polyline%3E%3C/svg%3E") !important;
}

body.login_admin input[type="password"]:focus {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%232AB9AD' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='11' width='18' height='11' rx='2' ry='2'%3E%3C/rect%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'%3E%3C/path%3E%3C/svg%3E") !important;
}

/* ============================================= */
/* ESTILOS DEL MENÚ LATERAL (SIDEBAR) */
/* ============================================= */

/* Contenedor principal del menú */
aside#menu.sidebar {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px) saturate(180%) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.4) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
    padding-top: 20px !important; /* Añade espacio superior */
}

/* Elimina el fondo por defecto de perfex */
.sidebar {
    background: transparent !important;
}

/* Tarjeta de perfil de usuario */
.sidebar-user-profile {
    margin-top: 0 !important; /* Resetea el margen de poly utilities */
}

.sidebar-user-profile a.profile {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid rgba(0, 0, 102, 0.1) !important;
    border-radius: 20px !important; /* Bordes redondeados */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06) !important;
    transition: all 0.3s ease !important;
    padding: 15px !important;
}

.sidebar-user-profile a.profile:hover {
    border-color: rgba(0, 0, 102, 0.3) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08) !important;
    transform: translateY(-2px) !important;
}

/* Nombre de usuario y email */
.sidebar-user-profile a.profile .tw-font-semibold {
    color: #000066 !important;
}
.sidebar-user-profile a.profile .tw-text-neutral-500 {
    color: #334155 !important;
    opacity: 0.8;
}

/* ============================================= */
/* ENLACES DEL MENÚ PRINCIPAL */
/* ============================================= */

/* Enlaces del menú (estado normal) */
#side-menu > li > a {
    border-radius: 18px !important;
    font-weight: 600 !important;
    color: #334155 !important;
    margin: 4px 0 !important;
    padding: 10px 15px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border: 2px solid transparent !important;
}

/* Iconos del menú */
#side-menu > li > a .menu-icon {
    color: #000066 !important;
    transition: all 0.3s ease !important;
    width: 22px !important; /* Alineación */
}

/* Estado Hover (no activo) */
#side-menu > li:not(.active) > a:hover {
    background: rgba(0, 0, 102, 0.05) !important; /* Fondo azul claro */
    color: #000066 !important;
    border-color: rgba(0, 0, 102, 0.1) !important;
}

#side-menu > li:not(.active) > a:hover .menu-icon {
    color: #2AB9AD !important; /* Icono verde-azulado */
}

/* Estado Activo (Elemento seleccionado) */
#side-menu > li.active > a {
    background: linear-gradient(135deg, #000066 0%, #2AB9AD 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 8px 20px rgba(0, 0, 102, 0.3) !important;
    transform: translateY(-1px);
    border-color: transparent !important;
}

/* Texto, icono y flecha en estado activo */
#side-menu > li.active > a .menu-icon,
#side-menu > li.active > a .menu-text,
#side-menu > li.active > a .arrow {
    color: #ffffff !important;
}

/* ============================================= */
/* SUB-MENÚ (SEGUNDO NIVEL) */
/* ============================================= */

/* Contenedor del sub-menú */
#side-menu ul.nav-second-level {
    padding-left: 20px !important;
    background: rgba(245, 248, 255, 0.8) !important; /* Fondo ligeramente azulado */
    border-radius: 0 0 18px 18px;
    margin-top: -5px; /* Sube el sub-menú */
    padding-bottom: 10px;
    padding-top: 5px;
}

/* Enlaces del sub-menú */
#side-menu ul.nav-second-level li a {
    color: #334155 !important;
    font-weight: 500 !important;
    padding: 8px 15px 8px 30px !important;
    border-radius: 14px !important;
    transition: all 0.2s ease !important;
}

/* Hover y Activo en sub-menú */
#side-menu ul.nav-second-level li a:hover,
#side-menu ul.nav-second-level li.active > a {
    background: rgba(255, 255, 255, 0.9) !important;
    color: #000066 !important;
    font-weight: 600 !important;
    transform: translateX(5px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Dropdown de perfil de usuario */
.dropdown-menu {
    border-radius: 18px !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(5px) !important;
}

.dropdown-menu > li > a {
    color: #334155 !important;
    font-weight: 500 !important;
    padding: 8px 15px !important;
    border-radius: 10px !important;
    margin: 2px 5px !important;
}

.dropdown-menu > li > a:hover {
    background: #000066 !important;
    color: #ffffff !important;
}
/* ============================================= */
/* BOTÓN DE GOOGLE SIGN-IN - ESTILO OFICIAL */
/* ============================================= */

/* Contenedor del botón de Google */
.panel_s .panel-body a[href*="google_login"],
a.btn[href*="google_login"] {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: #ffffff !important;
    border: 1px solid #dadce0 !important;
    border-radius: 4px !important;
    padding: 0 12px !important;
    height: 40px !important;
    min-width: 200px !important;
    font-family: 'Google Sans', Roboto, Arial, sans-serif !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #3c4043 !important;
    letter-spacing: 0.25px !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: background-color 0.218s, border-color 0.218s, box-shadow 0.218s !important;
    box-shadow: none !important;
}

.panel_s .panel-body a[href*="google_login"]:hover,
a.btn[href*="google_login"]:hover {
    background-color: #f7f8f8 !important;
    border-color: #dadce0 !important;
    box-shadow: 0 1px 2px 0 rgba(60,64,67,0.30), 0 1px 3px 1px rgba(60,64,67,0.15) !important;
}

.panel_s .panel-body a[href*="google_login"]:active,
a.btn[href*="google_login"]:active {
    background-color: #eee !important;
}

/* Logo de Google */
.panel_s .panel-body a[href*="google_login"] img,
a.btn[href*="google_login"] img {
    height: 18px !important;
    width: 18px !important;
    margin-right: 12px !important;
    vertical-align: middle !important;
}

/* Texto separador "o iniciar sesión con" */
.panel_s .panel-body p.text-muted {
    color: #5f6368 !important;
    font-size: 12px !important;
    margin: 16px 0 !important;
    position: relative !important;
}

/* Panel del botón Google - sin fondo extra */
.login-form + .panel_s,
.panel_s.mtop15:last-of-type {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.login-form + .panel_s .panel-body,
.panel_s.mtop15:last-of-type .panel-body {
    background: transparent !important;
    padding: 10px 0 !important;
}
