/* =========================================
   USER PROFILE TOPBAR - Estilos modernos
   ========================================= */

/* Link do perfil na topbar */
.user-profile-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.user-profile-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

/* Avatar na topbar */
.top-bar-right .user-profile {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fff 0%, #f0f0f0 100%);
    color: #00897B;  /* Verde Teal */
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    overflow: hidden;
    flex-shrink: 0;
}

.top-bar-right .user-profile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Nome do usuário na topbar */
.top-bar-right .user-name {
    color: white;
    font-size: 14px;
    font-weight: 500;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Botão de logout */
.btn-logout {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 12px;
}

.btn-logout:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Top bar right layout */
.top-bar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Responsivo */
@media (max-width: 768px) {
    .user-profile-link .user-name {
        display: none;
    }

    .user-profile-link {
        padding: 6px;
        border-radius: 50%;
    }

    .btn-logout {
        padding: 6px 10px;
        font-size: 12px;
    }
}

/* Dropdown do perfil (futuro) */
.profile-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.profile-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.profile-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: #333;
    text-decoration: none;
    transition: background 0.2s ease;
}

.profile-dropdown-item:hover {
    background: #f5f5f5;
}

.profile-dropdown-item:first-child {
    border-radius: 12px 12px 0 0;
}

.profile-dropdown-item:last-child {
    border-radius: 0 0 12px 12px;
}

.profile-dropdown-divider {
    height: 1px;
    background: #e0e0e0;
    margin: 4px 0;
}
