/* ============================================
   HEADER PREMIUM - Softland ERP v8
   Diseño Moderno con Cards Glassmorphism
   ============================================ */

/* Header Principal - Altura Optimizada 68px */
.content-headear {
    height: 68px !important;
    min-height: 68px !important;
    max-height: 68px !important;
    padding: 0 24px !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    display: flex !important;
    align-items: center !important;
    gap: 24px;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 2000;
    background: #2B78E4 !important;
    transition: all 0.18s ease;
}

/* Logo Container - Estilos originales restaurados */
.content-companylogo {
    display: flex !important;
    align-items: center !important;
    height: 100% !important;
}

.content-companylogo img {
    /* Sin override de tamaño, usa el original del tema */
}

/* Container Principal de Opciones */
.content-options_inf {
    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 16px;
    flex: 1;
    height: 100%;
    padding: 10px 0;
    overflow-x: auto;
    overflow-y: hidden;
}

/* ============================================
   CARDS MODERNAS CON GLASSMORPHISM
   ============================================ */

/* Base para todas las cards de información */
.content-infoBox,
.content-infoBoxTC {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 6px 10px 6px 34px;
    min-width: max-content;
    width: auto;
    height: 100%;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 10px;
    transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
    box-sizing: border-box;
}

.content-infoBox:hover,
.content-infoBoxTC:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    cursor: default;
}

/* Estado active (cuando se hace click) - Sin movimiento */
.content-infoBox:active,
.content-infoBoxTC:active {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    transform: none;
}

.content-infoBox:active::before,
.content-infoBoxTC:active::before {
    transform: translateY(-50%);
    opacity: 1;
}

/* Iconos SVG en las cards */
.content-infoBox::before,
.content-infoBoxTC::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.95;
    transition: opacity 0.18s ease;
    will-change: opacity;
}

.content-infoBox:hover::before,
.content-infoBoxTC:hover::before {
    opacity: 1;
    transform: translateY(-50%);
}

/* Iconos específicos con diseño moderno */
.option-inf:nth-child(1) .content-infoBox::before {
    /* Base de datos - Database icon */
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cellipse cx='12' cy='5' rx='9' ry='3'/%3E%3Cpath d='M21 12c0 1.66-4 3-9 3s-9-1.34-9-3'/%3E%3Cpath d='M3 5v14c0 1.66 4 3 9 3s9-1.34 9-3V5'/%3E%3C/svg%3E");
}

.option-inf:nth-child(2) .content-infoBox::before {
    /* Compañía - Building icon */
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='2' width='16' height='20' rx='2'/%3E%3Cpath d='M9 22v-4h6v4'/%3E%3Cpath d='M8 6h.01'/%3E%3Cpath d='M16 6h.01'/%3E%3Cpath d='M12 6h.01'/%3E%3Cpath d='M12 10h.01'/%3E%3Cpath d='M12 14h.01'/%3E%3Cpath d='M16 10h.01'/%3E%3Cpath d='M16 14h.01'/%3E%3Cpath d='M8 10h.01'/%3E%3Cpath d='M8 14h.01'/%3E%3C/svg%3E");
}

.option-inf:nth-child(3) .content-infoBox::before,
.content-infoBoxTC::before {
    /* Tipo de Cambio - Dollar icon */
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M16 8h-6a2 2 0 1 0 0 4h4a2 2 0 1 1 0 4H8'/%3E%3Cpath d='M12 18V6'/%3E%3C/svg%3E");
}

.option-inf:nth-child(4) .content-infoBox::before {
    /* Usuario - User icon */
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");
}

/* Dropdown indicator eliminado - las cards no son clicables */

/* Títulos de las cards */
.option-title,
.option-titleTC {
    margin: 0 0 2px 0 !important;
    font-size: 8px !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85) !important;
    line-height: 1.2;
    white-space: nowrap;
}

/* Información de las cards */
.option-information,
.option-informationTC {
    margin: 0 !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    color: white !important;
    line-height: 1.3;
    white-space: nowrap;
}

/* ============================================
   BOTONES DE ACCIÓN - Modernos
   ============================================ */

/* Sobrescribir cualquier estilo de botón del tema */
.option-but button,
.option-but a {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    height: 100% !important;
}

/* Forzar estilos del contenedor de iconos dentro de botones */
.option-but .content-icon_user {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.10) !important;
}

.option-but .content-icon_user:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.20) !important;
}

/* Agrupar botones a la derecha */
.option-inf:last-of-type ~ .option-but:first-of-type {
    margin-left: auto;
}

/* Alinear todos los botones verticalmente */
.option-but {
    display: flex !important;
    align-items: center !important;
    height: 100% !important;
}

.content-icon_user {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    min-height: 38px !important;
    border-radius: 10px !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.10) !important;
    transition: all 0.18s ease !important;
    cursor: pointer !important;
    position: relative !important;
    flex-shrink: 0 !important;
}

.content-icon_user:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.20) !important;
    transform: translateY(-1px) !important;
}

.content-icon_user:active {
    transform: translateY(0);
}

/* Iconos de los botones - Forzar centrado perfecto */
.option-but img {
    width: 20px !important;
    height: 20px !important;
    filter: brightness(0) invert(1) !important;
    opacity: 0.9 !important;
    transition: all 0.18s ease !important;
    display: block !important;
    margin: 0 auto !important;
}

/* Asegurar que el enlace/botón dentro también esté centrado */
.option-but a,
.option-but button {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.content-icon_user:hover img {
    opacity: 1 !important;
    transform: scale(1.05) !important;
}
}
    opacity: 1;
    transform: scale(1.05);
}

/* Badge de notificaciones (contador) */
.option-but button[id*="btnNotificaciones"] .content-icon_user::after {
    content: '3';
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: #EF4444;
    color: white;
    font-size: 10px;
    font-weight: 700;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #2B78E4;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
    animation: badge-pulse 2s ease-in-out infinite;
}

@keyframes badge-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Estado deshabilitado */
.content-icon_user.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1400px) {
    .content-options_inf {
        gap: 14px;
    }

    .content-infoBox,
    .content-infoBoxTC {
        min-width: 140px;
        padding: 6px 10px 6px 34px;
    }

    .content-infoBox::before,
    .content-infoBoxTC::before {
        left: 10px;
    }

    .option-information,
    .option-informationTC {
        font-size: 12px !important;
        overflow: visible;
    }
}

@media (max-width: 1200px) {
    .content-headear {
        gap: 16px;
        padding: 0 16px !important;
    }

    .content-options_inf {
        gap: 12px;
    }

    .content-infoBox,
    .content-infoBoxTC {
        min-width: 128px;
        padding: 6px 9px 6px 30px;
    }

    .content-infoBox::before,
    .content-infoBoxTC::before {
        width: 16px;
        height: 16px;
        left: 8px;
    }

    .option-title,
    .option-titleTC {
        font-size: 8px !important;
    }

    .option-information,
    .option-informationTC {
        font-size: 9px !important;
        max-width: 84px;
    }

    .content-icon_user {
        width: 36px;
        height: 36px;
    }

    .option-but img {
        width: 18px !important;
        height: 18px !important;
    }
}

@media (max-width: 992px) {
    .content-headear {
        height: 60px !important;
        gap: 12px;
    }

    /* Ocultar títulos en móvil, solo mostrar valores */
    .option-title,
    .option-titleTC {
        display: none;
    }

    .content-infoBox,
    .content-infoBoxTC {
        min-width: 96px;
        padding: 6px 7px 6px 26px;
        flex-direction: column;
    }

    .option-information,
    .option-informationTC {
        font-size: 12px !important;
    }
}

/* ============================================
   ANIMACIONES Y EFECTOS
   ============================================ */

/* Entrada suave de las cards */
@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-infoBox,
.content-infoBoxTC,
.content-icon_user {
    animation: slideInFromTop 0.4s ease-out backwards;
}

.option-inf:nth-child(1) .content-infoBox { animation-delay: 0.05s; }
.option-inf:nth-child(2) .content-infoBox { animation-delay: 0.1s; }
.option-inf:nth-child(3) .content-infoBox { animation-delay: 0.15s; }
.option-inf:nth-child(4) .content-infoBox { animation-delay: 0.2s; }
.content-infoBoxTC { animation-delay: 0.15s; }

/* Efecto ripple DESHABILITADO para las cards (causaba que los iconos desaparezcan) */
/* Solo aplicado a botones */
.content-icon_user:active::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    border-radius: inherit;
    transform: translate(-50%, -50%);
    animation: ripple 0.6s ease-out;
    z-index: 0;
    pointer-events: none;
}

/* ============================================
   ACCESIBILIDAD
   ============================================ */

.content-infoBox:focus-visible,
.content-infoBoxTC:focus-visible,
.content-icon_user:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 2px;
}

/* Preferencia de movimiento reducido */
@media (prefers-reduced-motion: reduce) {
    .content-infoBox,
    .content-infoBoxTC,
    .content-icon_user,
    .option-but img {
        animation: none !important;
        transition: none !important;
    }
}

/* Alto contraste */
@media (prefers-contrast: high) {
    .content-infoBox,
    .content-infoBoxTC {
        border-width: 2px;
        background: rgba(255, 255, 255, 0.12);
    }

    .content-icon_user {
        border-width: 2px;
    }
}
