/*
Theme Name: KeyWe Intranet
Theme URI: https://keywe.com
Author: Equipo KeyWe
Description: Tema corporativo completo para la Intranet KeyWe construido con Tailwind CSS.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: keywe-theme
*/

/* ==========================================================================
   APP LAUNCHER (DROPDOWN DEBAJO DEL BOTÓN SUPERIOR)
   ========================================================================== */
#header-launcher-wrapper {
    position: relative;
    display: inline-block;
}

#header-launcher-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 1000;
    width: 90px;
    background-color: #3b3f46;
    background-color: rgba(48, 52, 60, 0.95);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.4);
    padding: 14px 4px;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}

#header-launcher-dropdown.active {
    display: block;
    animation: launcherSlideDown 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes launcherSlideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#header-launcher-dropdown::-webkit-scrollbar {
    width: 4px;
}
#header-launcher-dropdown::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.25);
    border-radius: 4px;
}

#header-launcher-dropdown ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

#header-launcher-dropdown li {
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
    display: flex;
    justify-content: center;
}

#header-launcher-dropdown li a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    width: 100%;
    padding: 4px 2px;
    border-radius: 12px;
    transition: background-color 0.18s ease, transform 0.15s ease;
    box-sizing: border-box;
}

#header-launcher-dropdown li a:hover {
    background-color: rgba(255, 255, 255, 0.12);
    transform: scale(1.05);
}

#header-launcher-dropdown li a img {
    max-height: 44px;
    max-width: 44px;
    height: auto;
    width: auto;
    margin-bottom: 4px;
    object-fit: contain;
}

#header-launcher-dropdown li a span {
    font-size: 11px;
    color: #ffffff !important;
    font-weight: 500;
    text-align: center;
    line-height: 1.2;
    max-width: 78px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Ocultar el botón flotante amarillo inferior si existiese */
#launcher-widget,
.top-launcher-widget {
    display: none !important;
}