/* ============================================
   LOHMIA HEADER DROPDOWNS v2.0
   Estilos adicionales para dropdowns en header
   ============================================ */

/* === DROPDOWN ARROW === */
.dropdown-arrow {
    font-size: 0.65rem;
    margin-left: 4px;
    opacity: 0.7;
    transition: transform 0.2s;
}

.nav-item-with-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

/* === USER DROPDOWN === */
.user-dropdown {
    position: relative;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.user-info:hover {
    background: rgba(255, 255, 255, 0.1);
}

.user-avatar {
    font-size: 1.1rem;
}

.user-email {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.8rem;
    color: var(--text-secondary, #94a3b8);
}

/* === USER DROPDOWN MENU === */
.user-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 220px;
    background: var(--bg-secondary, #1e293b);
    border: 1px solid var(--border-color, #475569);
    border-radius: 12px;
    padding: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    z-index: 300;
    overflow: hidden;
}

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

.user-dropdown-info {
    padding: 1rem;
    background: rgba(59, 130, 246, 0.05);
    border-bottom: 1px solid var(--border-color, #475569);
}

.user-dropdown-info .user-name {
    font-weight: 600;
    color: var(--text-primary, #f1f5f9);
    font-size: 0.95rem;
}

.user-dropdown-info .user-email-full {
    font-size: 0.8rem;
    color: var(--text-secondary, #94a3b8);
    margin-top: 2px;
}

.user-dropdown-info .user-plan {
    margin-top: 0.5rem;
}

.plan-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem 0.6rem;
    background: linear-gradient(135deg, var(--accent-blue, #3b82f6), var(--accent-purple, #8b5cf6));
    color: white;
    border-radius: 12px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.plan-badge.free {
    background: var(--text-secondary, #94a3b8);
}

.plan-badge.basic {
    background: linear-gradient(135deg, #10b981, #059669);
}

.plan-badge.pro {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
}

.plan-badge.enterprise {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.dropdown-divider {
    height: 1px;
    background: var(--border-color, #475569);
    margin: 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-secondary, #94a3b8);
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}

.dropdown-item:hover {
    background: rgba(59, 130, 246, 0.1);
    color: var(--text-primary, #f1f5f9);
}

.dropdown-item.danger {
    color: var(--accent-red, #ef4444);
}

.dropdown-item.danger:hover {
    background: rgba(239, 68, 68, 0.1);
}

/* === NOTIFICATION BELL === */
.notification-bell {
    position: relative;
    padding: 0.5rem;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.2s;
}

.notification-bell:hover {
    background: rgba(255, 255, 255, 0.1);
}

.bell-icon {
    font-size: 1.1rem;
}

.notification-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 16px;
    height: 16px;
    background: var(--accent-red, #ef4444);
    color: white;
    font-size: 0.6rem;
    font-weight: 700;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

.notification-badge:empty,
.notification-badge[data-count="0"] {
    display: none;
}

/* === BREADCRUMBS === */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.2);
    font-size: 0.8rem;
    border-bottom: 1px solid var(--border-color, #475569);
}

.breadcrumb-item {
    color: var(--text-secondary, #94a3b8);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb-item:hover {
    color: var(--accent-blue, #3b82f6);
}

.breadcrumb-separator {
    color: var(--text-muted, #64748b);
}

.breadcrumb-current {
    color: var(--text-primary, #f1f5f9);
    font-weight: 500;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .user-email {
        display: none;
    }

    .dropdown-arrow {
        display: none;
    }

    .breadcrumbs {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
    }

    .user-dropdown-menu {
        right: -10px;
        min-width: 200px;
    }
}

@media (max-width: 480px) {
    .notification-bell {
        padding: 0.35rem;
    }

    .user-info {
        padding: 0.35rem 0.5rem;
    }
}
