/* ═══════════════════════════════════════════════════════════════════════════════
   19. DROPDOWN MENU DEL CHAT
   Menú contextual del header del chat
   ═══════════════════════════════════════════════════════════════════════════════ */

/* Container del menú */
.menu-dropdown-container {
    position: relative;
}

/* Dropdown */
.chat-menu-dropdown {
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
    min-width: 220px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    overflow: hidden;
}

.chat-menu-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Items del menú */
.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.2s ease;
    color: #3b4a54;
    font-size: 14px;
}

.menu-item:hover {
    background: #f5f6f6;
}

.menu-item:active {
    background: #e9edef;
}

.menu-item i {
    width: 20px;
    text-align: center;
    color: #54656f;
    font-size: 16px;
}

.menu-item span {
    flex: 1;
}

/* Item destacado */
#menuViewStarred i {
    color: #ffd700;
}

#menuViewStarred:hover {
    background: #fffbea;
}

/* Item peligroso */
#menuClearChat {
    color: #d32f2f;
}

#menuClearChat i {
    color: #d32f2f;
}

#menuClearChat:hover {
    background: #ffeaea;
}

/* Separador */
.menu-separator {
    height: 1px;
    background: #e9edef;
    margin: 4px 0;
}

/* Backdrop para cerrar el menú */
.menu-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    display: none;
}

.menu-backdrop.show {
    display: block;
}

/* Animación del botón cuando el menú está abierto */
#menuBtn.active {
    background: #e9edef;
}

/* Responsive */
@media (max-width: 768px) {
    .chat-menu-dropdown {
        min-width: 200px;
        right: -10px;
    }
    
    .menu-item {
        padding: 14px 16px;
        font-size: 15px;
    }
}

